IRC logs

20141119

Logs from channel #fedext on freenode - our official support channel.

IRC log range: 20141119*

20141119

  • 06:41:14 <rosieres> if anybody is awake -> https://github.com/FluidTYPO3/vhs/issues/723
  • 07:09:14 <Momodedf> hello
  • 07:10:13 <Momodedf> if I get it right you want to render a tt_content from his Uid
  • 07:10:46 <rosieres> nope. I want a field out of a tt_content record
  • 07:10:52 <Momodedf> oh
  • 07:11:10 <Momodedf> v:content.info ?
  • 07:12:08 <Momodedf> https://fluidtypo3.org/viewhelpers/vhs/master/Content/InfoViewHelper.html
  • 07:12:19 <Momodedf> I think it shld do the job
  • 07:12:24 <rosieres> not
  • 07:13:54 <Momodedf> <v:content.info contentUid="{settings.footerContentUid}" field="bodytext" as="ce"> </v:content.info>
  • 07:15:47 <Momodedf> does {settings.footerContentUid} contains a tt_content Uid or a page Uid ?
  • 07:16:16 <rosieres> pageUid. Naming is not the best. ..
  • 07:18:03 <Momodedf> ok
  • 07:18:33 <Momodedf> then maybe you should use content.get instead of content.render
  • 07:18:51 <rosieres> content.get gets out of bounds . . .
  • 07:19:31 <rosieres> ne output
  • 07:19:48 <rosieres> Described in AP3 in the github issue
  • 07:19:55 <Momodedf> because content.render purpose is rendering, so it should juste output HTML
  • 07:20:08 <Momodedf> juste*
  • 07:20:38 <rosieres> AP3
  • 07:20:43 <rosieres> <v:content.get limit="8" pageUid="{settings.footerContentUid}">
  • 07:20:45 <rosieres> <v:variable.set name="content"/>
  • 07:20:47 <rosieres> <f:debug title="ap3">{content}</f:debug>
  • 07:20:49 <rosieres> </v:content.get>
  • 07:20:51 <rosieres> Output
  • 07:20:55 <rosieres> Nothing. No NULL array in {_all} no Output for "ap3"
  • 07:27:37 <Momodedf> I think content.info is the right solution
  • 07:27:40 <Momodedf> https://fluidtypo3.org/community/irc-logs.html?tx_fluidtypo3org_content%5Bdate%5D=20140702&cHash=51ea9cb8ba855ecbc4a97c003939e27a
  • 07:27:58 <Momodedf> there is a small discussion here
  • 07:30:25 <Momodedf> oops content.get i mean at 14:57
  • 07:37:38 <rosieres> Momodedf: Not in my case. Record is in my case the page object although it's unwanted. Even if I do {v:content.get(pageUid:'{settings.footerContentUid}') -> v:variable.set(name: 'foo') -> f:else() -> f:if(condition: foo)}
  • 07:37:40 <rosieres>
  • 07:37:42 <rosieres> {foo.title}
  • 07:37:54 <rosieres> The Debug output is foo => array(1 item)
  • 07:37:56 <rosieres> 0 => '<section id="c950" class="csc-default"><p>&l
  • 07:37:58 <rosieres> t;a href="http://www.google.de" title="Öffnet externen Link
  • 07:38:00 <rosieres> in neuem Fenster" target="_blank" class="button">
  • 07:38:02 <rosieres> ;Link 1</a> </p> <p>Link 2 </p> <p>Link 3</
  • 07:38:04 <rosieres> p></section>' (205 chars)
  • 07:38:09 <rosieres> but should be an array
  • 07:38:22 <rosieres> of the record foo
  • 07:39:45 <Momodedf> maybe render propery is TRUE by default
  • 07:40:25 <jmverges> good morning mates
  • 07:40:31 <Momodedf> hi
  • 07:40:34 <rosieres> morning
  • 07:40:53 <jmverges> how is going?
  • 07:41:36 <rosieres> Momodedf FUCK MAN - you are right !! it's render !! .... Thank you !
  • 07:43:41 <Momodedf> you're welcome :)
  • 08:06:13 <rosieres> Momodedf: last question on this -> Whats the correct syntax on this as inline? -> {v:content.get(pageUid:'{settings.footerContentUid}',render:0) -> v:variable.set(name: 'foo') ->f:for(each:foo, as:'bar')}
  • 08:06:15 <rosieres> {bar.header}
  • 08:13:33 <jmverges> hey mates, I just want to render 1 random element
  • 08:14:01 <jmverges> any idea?
  • 08:14:39 <jmverges> I see
  • 08:14:54 <rosieres> content random render limit 1
  • 08:15:13 <jmverges> https://fluidtypo3.org/viewhelpers/flux/master/Content/RenderViewHelper.html
  • 08:15:22 <jmverges> I don't understand the RAND()
  • 08:15:38 <rosieres> jmverges -> https://fluidtypo3.org/viewhelpers/vhs/master/Content/Random/RenderViewHelper.html
  • 08:18:07 <jmverges> let's see
  • 08:23:25 <jmverges> is not working for me
  • 08:24:11 <jmverges> <v:content.random.render column="m8thelements" limit="1"></v:content.random.render>
  • 08:25:57 <jmverges> that is not rendering anything
  • 08:29:14 <rosieres> jmverges: <v:content.random.render column="m8thelements" limit="1" as="foo"><f:for each="{foo}" as="element">
  • 08:29:16 <rosieres> <f:format.html>{element}</f:format.html>
  • 08:29:18 <rosieres> </f:for></v:content.random.render>
  • 08:30:00 <jmverges> ah, it is necessary
  • 08:30:03 <jmverges> okey
  • 08:30:31 <jmverges> thank you rosieres
  • 08:30:56 <rosieres> in manual it says -> "as" : If specified, adds template variable and assumes you manually iterate through {contentRecords}
  • 08:31:13 <jmverges> if specified
  • 08:31:21 <jmverges> what if not specified?
  • 08:31:58 <rosieres> <f:debug>{_all}</debug> and see if there's a std. array to access?
  • 08:32:27 <jmverges> ahmmm
  • 08:33:12 <jmverges> let's see, I'm curious
  • 08:34:19 <jmverges> nothing
  • 08:34:26 <jmverges> with that returns nothing
  • 08:35:32 <jmverges> I'm getting an error. Argument as was not registered :)
  • 08:36:06 <rosieres> you see in the reference if you have as present
  • 08:36:21 <Momodedf> <f:debug>{_all}</debug> ==> <f:debug>{_all}</f:debug>
  • 08:36:29 <jmverges> I have it infront of me
  • 08:36:40 <jmverges> Momodedf, sure, I saw it
  • 08:36:48 <Momodedf> :)
  • 08:37:44 <jmverges> rosieres, is not working that
  • 08:37:55 <jmverges> let's debug
  • 08:38:25 <rosieres> Momodedf: a tip for correct inline usage at my one ? -> {v:content.get(pageUid:'{settings.footerContentUid}',render:0) -> v:variable.set(name: 'foo') ->f:for(each:foo, as:'bar')}
  • 08:38:28 <rosieres> {bar.header}
  • 08:38:59 <rosieres> I think the laswt for is not the brightest aproach
  • 08:40:54 <jmverges> rosieres, that vhs was thought for pages, I think
  • 08:40:58 <jmverges> not for FCES
  • 08:42:45 <rosieres> content.random?
  • 08:42:51 <jmverges> yes
  • 08:42:58 <jmverges> v:content.random
  • 08:45:34 <rosieres> -> get: ViewHelper for fetching a random content element in Fluid page templates -> should work for FE output - no matter inf FCE or not
  • 08:46:36 <jmverges> uhm
  • 08:46:45 <jmverges> I'm doing a FCE
  • 08:46:46 <jmverges> Random
  • 08:46:54 <jmverges> that has a column called random
  • 08:46:57 <jmverges> is a grid
  • 08:48:43 <jmverges> I got it with flux render and order RAND()
  • 08:50:07 <rosieres> are you talking about BE stuff? Why should you do some random there?
  • 08:50:15 <jmverges> is FE
  • 08:50:26 <jmverges> let me copy paste code
  • 08:50:57 <jmverges> http://pastebin.com/5QT64Ht4
  • 08:54:05 <rosieres> <v:content.random.render column="0"/> doesn't work?
  • 08:54:16 <jmverges> is not column=0
  • 08:54:24 <jmverges> is column="elements"
  • 08:54:30 <jmverges> take a look into the code
  • 08:54:46 <jmverges> looks like was thought for page columns
  • 08:55:09 <jmverges> not the pastebin code, the vhs code
  • 08:56:58 <rosieres> https://fluidtypo3.org/viewhelpers/flux/master/Grid/ColumnViewHelper.html -> you can push any grid column to a colPos . . . if wanted. 0-4 is quite taken from CMS ... rest nearly free
  • 08:57:24 <jmverges> <v:content.random.render column="0"/>
  • 08:57:55 <rosieres> is this context colPos and coumn is the lame AFAIK
  • 08:58:06 <rosieres> same - not lame
  • 08:58:32 <jmverges> copy paste the pastebin and try your self
  • 08:59:17 <jmverges> https://github.com/FluidTYPO3/vhs/blob/master/Classes/ViewHelpers/Content/Random/RenderViewHelper.php
  • 08:59:28 <jmverges> https://github.com/FluidTYPO3/vhs/blob/master/Classes/ViewHelpers/Content/Random/GetViewHelper.php
  • 08:59:52 <jmverges> https://github.com/FluidTYPO3/vhs/blob/master/Classes/ViewHelpers/Content/AbstractContentViewHelper.php
  • 09:02:19 <rosieres> The point is that the content elements that you place into the grid column can do have a colpos. So was my thought you can use the v:content.random.render
  • 09:03:30 <jmverges> I understand, sounds logical, however I had a similar problem the other day
  • 09:03:46 <jmverges> was with other vhs
  • 09:50:08 <vizArt> is there a known issue by using flux with extbase command controller?
  • 09:50:26 <vizArt> it seem that flux return the wrong pageId
  • 09:50:33 <vizArt> ... from root page
  • 09:52:10 <vizArt> Im unable to get the "settings" parameter from module configuration ... only if i place a template with this settings at page with uid 1
  • 09:54:12 <vizArt> ... ok there are differences between TYPO3 getCurrentPageId to the flux getCurrentPageId ... TYPO3 returns: $this->currentPageId and flux $this->currentPageUid
  • 09:56:11 <Akii> ah yes
  • 09:56:13 <Akii> fixed
  • 09:56:19 <Akii> in dev
  • 09:56:30 <Akii> @vizArt
  • 09:56:48 <vizArt> thanks
  • 09:57:12 <Akii> https://github.com/FluidTYPO3/flux/pull/706
  • 09:57:45 <Akii> as a workaround you can inject the other manager by not using the interface
  • 09:59:07 <vizArt> cool ... thanks
  • 09:59:43 <jmverges> hey mates, is there something like no_cache just for a part of code?
  • 10:02:38 <Akii> not that I know of
  • 10:02:47 <Akii> what do you mean by "code"
  • 10:03:51 <jmverges> looks like v.render.uncache
  • 10:03:58 <jmverges> is the one that I'm looking for
  • 10:04:10 <jmverges> a section, for example
  • 10:05:13 <Akii> TS objects rendered with f:cObject can be uncached
  • 10:05:23 <Akii> or whatever that VH is called
  • 10:06:18 <jmverges> let's try if it works
  • 10:06:52 <jmverges> so, you are saying that a CE is always cached?
  • 10:08:27 <Akii> no idea
  • 10:30:16 <bjo3rn> morning y'all
  • 10:30:26 <bjo3rn> is there something like inheritance mapping in extbase?
  • 10:30:55 <bjo3rn> read: mapped superclass or sti?
  • 10:31:01 <bjo3rn> as in Doctrine
  • 10:33:03 <Akii> STI
  • 10:33:51 <Akii> naddy got something for ya
  • 10:34:02 <Akii> http://naddy.schattenhandel.de/?p=50
  • 10:34:08 <jmverges> is there some way to hide options tab in FluidCE where there are no options?
  • 10:34:21 <bjo3rn> hehe, I just found that myself. thanks Akii
  • 10:34:33 <Akii> ^^
  • 10:34:41 <jmverges> bjo3rn, spain loosed
  • 10:34:55 <bjo3rn> yep, goalie's fault
  • 10:35:00 <bjo3rn> and the rain.
  • 10:35:08 <bjo3rn> I mean: rain? in Spain?
  • 10:35:20 <bjo3rn> (rhymemonster ^^)
  • 10:35:25 <jmverges> more often than you think XD
  • 10:37:00 <bjo3rn> oh, Akii, there's a dedicated chapter in 'Future proof extensions with extbase' ^^
  • 10:37:17 <bjo3rn> future proof. lol.
  • 10:37:26 <Akii> hihi
  • 10:37:54 <Akii> like when migrating to phoenix? eeh neos eeh .. whatever it's called in the future ^^
  • 10:39:30 <bjo3rn> doesn't matter. just wrap another extension around it.
  • 10:39:41 <Akii> and an adapter
  • 10:40:07 <bjo3rn> servers are powerful enough these days
  • 10:40:20 <Akii> and if not, cache
  • 10:40:37 <bjo3rn> ^^
  • 10:41:20 <Akii> and if that doesn't help: distribute. if that fails distribute cache
  • 10:43:50 <bjo3rn> yeah, a guestbook should be performant.
  • 10:45:14 <Akii> and that contact form, don't forget about that one
  • 11:12:12 <jmverges> Hey mates, I need advice
  • 11:13:46 <jmverges> Do you know about News extension? It has a fancy Tag selection where you can create a new one on the fly. So, I would like to implement the same for tt_content section_frame
  • 11:14:00 <jmverges> what do you think?
  • 14:49:00 <Xatenev> Is anybody familiar wiuth the typo3 cache?
  • 14:50:09 <Xatenev> Got some huge trouble with this error: https://forge.typo3.org/issues/60760
  • 14:55:44 <Xatenev> Maybe u got an idea NamelessCoder? :p
  • 15:09:08 <drlimbo> good afternoon
  • 15:10:44 <drlimbo> is there a viewhelper to show the "filesize" with variable Units like 150KB, 3MB, 1.4GB?
  • 15:19:36 <drlimbo> on single-lines this is working, but i cant figure out how to correctly nest this inline tags =(
  • 15:19:36 <drlimbo> {v:math.round(a: {v:math.division(a: "{v:media.size(path: 'uploads/pdf/{downloadItem.downloadItem.downloadItemFile}')}", fail: 1, b: "1000")}, fail: 1, decimals: 0)}
  • 15:19:44 <drlimbo> someone an idea?
  • 15:23:27 <Guest|95024> Hi, i'm using fluidcontent and fluidbackend to provide some quite simple modules. Now i have the problem that for some elements typo3 backend takes up to 500+MB of RAM on client, as soon as in backend a page with some of those elements are loaded. I did not find any obvious problem in template. Are there any known things regarding those extension w
  • 15:23:27 <Guest|95024> hich could cause that? (extensions: develop versions from git, typo3: 6.2.5)
  • 15:50:08 <xaver> drlimbo: {variable/function -> nextfunction}
  • 15:51:21 <xaver> maybe a profiler xhprof can you tell more. normally it works just fine
  • 15:51:29 <xaver> Guest|95024:
  • 16:06:32 <NamelessCoder> drlimbo https://fluidtypo3.org/viewhelpers/fluid/6.2.0/Format/BytesViewHelper.html
  • 16:07:17 <NamelessCoder> Xatenev I don't reply to private queries for support, much less those not related to ft3.
  • 16:07:27 <Xatenev> Yea okay :)
  • 16:07:35 <Xatenev> I was like: "Lets try it!" :D
  • 16:07:48 <Xatenev> Well yeah, Ive just been asking if u know a solution to this problem: https://forge.typo3.org/issues/60760
  • 16:08:00 <Xatenev> something like a quickfix, until there is an official solution :p
  • 16:08:18 <NamelessCoder> I don't - it's a bug and you already reported it.
  • 16:08:28 <Xatenev> Nope, somebody else .p but yeah
  • 16:21:46 <xaver> why should you flush the system cache
  • 16:24:45 <Guest|95024> @xaver: thanks, i'll try.
  • 17:39:55 <Guest|1812> Hi, i have a problem using the actual version of fluidcontent. BE mask of new created fce ignores flux configuration, only shows one input field "the title"
  • 17:46:10 <Guest|1812> here is my fce_test.html: https://gist.github.com/semuc/4686b9f6ac090e967dbc
  • 17:50:49 <bjo3rn> Guest|1812 I'm not sure about the underscore in the form's id
  • 17:51:50 <bjo3rn> and please set flux' debug mode to '2'. maybe this will reveal something.
  • 17:54:11 <Guest|1812> removed the underscore in id, set debug mode to 2 (was already 1), uploaded file and cleared all cache ... no difference, only got one input field labled with "The Title:"
  • 17:54:51 <bjo3rn> where does 'the title' come from?
  • 17:55:11 <bjo3rn> ah, please use self closing tags <flux:field.input ... />
  • 17:55:46 <bjo3rn> didn't spot that on first sight
  • 17:55:53 <bjo3rn> *at
  • 17:56:42 <Guest|1812> think i allready tried before, but i'll give it one more try
  • 17:59:13 <Guest|1812> nope, BE mask still has just this one input field as you can see at http://preview.staging.saint-elmos.com/debug/fcetest.png
  • 18:00:03 <bjo3rn> ok, the 'DEF' label indicates that there's some other syntactical error. let's have a look
  • 18:00:18 <bjo3rn> can you update your gist please?
  • 18:01:34 <bjo3rn> oh, and the debug level should be '1' in this case. sorry about that. I always mix that up :S
  • 18:01:36 <Guest|1812> updated right now
  • 18:02:26 <bjo3rn> fluidcontent and flux both current ter versions?
  • 18:03:13 <Guest|1812> installed vhs, flux, fluidpages and fluidcontent yesterday on an empty TYPO3 6.2.6
  • 18:03:20 <Guest|1812> from TER
  • 18:04:09 <Guest|1812> configured fluidpages, so i can choose from different templates with e.g. different grids -> working fine
  • 18:04:32 <bjo3rn> well, your code works for me (just tested it). cleared all caches via install tool?
  • 18:04:41 <Guest|1812> yes
  • 18:05:02 <Guest|1812> important actions -> clear all cahe
  • 18:05:20 <bjo3rn> https://www.dropbox.com/s/tk7ilr0t1n82nsu/Screenshot%202014-11-19%2018.05.12.png?dl=0
  • 18:06:09 <Guest|1812> short description what i did (maybe somethin is missing?):
  • 18:09:32 <bjo3rn> the changes won't be applied to existing content elements btw. did you add a new one?
  • 18:09:54 <bjo3rn> the flexform structure of a saved fce might be corrupt
  • 18:09:57 <bjo3rn> *ed
  • 18:10:31 <Guest|1812> always deleted old/wrong fce and added new one
  • 18:11:16 <bjo3rn> added the static ts?
  • 18:11:17 <Guest|1812> i just updated gist, so you can see setup.txt, ext_tables.php / ext_localconf.php and ContentControlle.php
  • 18:11:22 <bjo3rn> yes, I saw that
  • 18:13:03 <Guest|1812> i added the static ts of my own extension, i don't get ts listet for any fluidcontent/pages, vhs or flux
  • 18:13:36 <bjo3rn> that's what I meant, yes
  • 18:14:06 <bjo3rn> well, then I'm out of ideas here. your template code works for me, sorry.
  • 18:16:05 <Guest|1812> flux 7.1.2 and fluid 4.1.1 are the latest? should i try with previous version?
  • 18:16:28 <bjo3rn> that's what I have here.
  • 18:17:06 <ilCerchiari> Hi, i've just updated a website to TYPO3 6.2.6 with all the latest TER version of fluidtypo3 stack (flux, vhs, fluidcontent, fluidpages). I now encounter an error only if I'm not logged into backend. Th error is:#1225709595: Template could not be loaded. I tried "[...]/typo3conf/ext/fluidpages/Resources/Private/Templates/Page/Default.html" . Any cl
  • 18:17:06 <ilCerchiari> ues?
  • 18:18:33 <ilCerchiari> Of course I checked and that template seems not to be calle anywhere I could think of
  • 18:18:55 <Guest|1812> got similar error yesterday, included ts template path correctly?
  • 18:19:18 <ilCerchiari> ts template of which ext?
  • 18:19:38 <bjo3rn> what's the extension key of your ext ilCerchiari?
  • 18:20:20 <ilCerchiari> yes RootPaths from my template ext are correct
  • 18:20:33 <Guest|1812> Thanks @bjo3rn.
  • 18:20:48 <bjo3rn> sorry I couldn't help :/
  • 18:27:27 <ilCerchiari> Anyone knows why fluidpages seems to try calling fluidpages/Resources/Private/Templates/Page/Default.html only when not logged into backend?
  • 20:02:06 <jmverges> good night mates, how is going?