IRC logs

20140505

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

IRC log range: 20140505*

20140505

  • 08:08:08 <jlumpe> morning!
  • 09:57:00 <bjo3rn> yay!
  • 09:58:51 <cedricziel> Denyerec: most functions dont support chaining as you'd need a object returned. in php, you could mock this for plain functions via closures
  • 10:06:43 <jlumpe> bjo3rn: everythign works now as expected :)
  • 10:07:13 <bjo3rn> nice to hear, jlumpe.
  • 10:07:45 <jlumpe> yeah, thanks for you help :)
  • 10:07:52 <bjo3rn> np :P
  • 10:08:14 <jlumpe> btw: in general all articles state that you cannot change your page structure when you use a single page tree
  • 10:08:26 <jlumpe> but that isn't true is it?
  • 10:08:35 <jlumpe> since you can activate "hide page if not translated"
  • 10:08:39 <jlumpe> wouldn't that hide the page from the menu aswell?
  • 10:08:52 <jlumpe> thus allowing different structures for different languages in a single tree?
  • 10:09:04 <bjo3rn> sure, that's possible.
  • 10:09:43 <jlumpe> so from my point of view a single tree seems much more logical now :D
  • 10:09:50 <jlumpe> since you helped me a lot :9
  • 10:10:41 <bjo3rn> well, I think there are valid use cases for chosing a multitree setup but I haven't come across one yet in my work.
  • 10:11:00 <bjo3rn> my projects are to tiny obviously :S
  • 10:11:03 <bjo3rn> *too
  • 10:15:03 <jlumpe> haha
  • 10:15:24 <jlumpe> we might have a project coming up, approx. 200 pages 8+ languages
  • 10:15:40 <jlumpe> if i'd use a multi-setup that would mean the tree would contain 1600 nodes +
  • 10:15:48 <jlumpe> single tree: ~ 200 nodes
  • 10:15:55 <jlumpe> feels much more performant
  • 11:12:32 <Guest|89010> I tried to add the xsd-schemas to my flux-templates. The problem is as soon as I add a <div> or <html>-structure around my fluid-tags (as suggested) the template seems corrupted.
  • 11:13:56 <Guest|89010> The template still shows up in the page-settings, but with no label and when i select it the template the configuration-tab gives some errors like "Data Structure ERROR: No proper configuration!"
  • 11:18:31 <Guest|89010> Typo3 6.2.0, flux 7.0.0, fluidpages 3.0.0
  • 11:23:38 <BrianJ> Short question :) Typo 4.7 - Setting up real URL for tt-news ? Anything would really help me :D
  • 11:26:24 <jlumpe> http://wiki.typo3.org/Realurl/examples
  • 11:26:41 <jlumpe> this is actually an example for ttnews :)
  • 11:37:27 <pedda> hi there
  • 11:43:09 <BrianJ> jlumpe - Thank you I'm comparing with my script now
  • 11:43:14 <BrianJ> Hi :)
  • 11:48:40 <BrianJ> jlumpe If 'postVarSets' is 'fixedPostVars' then my URL works but throws an error: Reason: Segment "golf-i-dyrehaven" was not a keyword for a postVarSet as expected on page with id=9220.
  • 11:48:57 <BrianJ> http://jsbin.com/UFoRIYex/562
  • 13:01:27 <benjamin_654> hi, is there a way to get information about the column/grid a flux-ce is inside? (eg. for different width) I see there is a variable {_all.grid} - what´s this for?
  • 13:13:03 <danilobuerger> hey jlumpe
  • 13:13:19 <jlumpe> hey danilobuerger
  • 13:13:21 <jlumpe> what's up? :)
  • 13:13:25 <jlumpe> BrianJ: sorry was away
  • 13:13:34 <danilobuerger> nothing ;-) jsut seeing that you are around here often ;-)
  • 13:13:45 <jlumpe> haha yeah
  • 13:14:05 <jlumpe> on my standard join list ;9
  • 13:16:40 <danilobuerger> nice ;-)
  • 13:17:03 <danilobuerger> so i read your 200pages ,8+ languages... i have somethign similar right now... its fantastic with flux
  • 13:17:12 <jlumpe> yeah i can imagine :)
  • 13:17:21 <jlumpe> and you're also going with a single tree, right?
  • 13:17:47 <jlumpe> i recently had this issue with multi tree + multi language, where i had to translate extbase records
  • 13:18:07 <jlumpe> i switched to a single tree setup now, since i didn't find any way to get realurl to display the correctly translated slugs
  • 13:18:14 <jlumpe> since there is no L var present
  • 13:18:42 <jlumpe> and you cannot set it like $_GET['L']= x since realurl gets the url directly from a typo3 function and parses it on its own
  • 13:19:02 <jlumpe> So it seems like that multi tree with extbase extension + real url is a pita
  • 13:19:40 <jlumpe> and yeah, with 200+ pages i'd imagine that the pagetree gets convoluted really fast
  • 13:22:30 <jlumpe> I'm starting to value flux/fluidpages/fluidcontent in general
  • 13:22:33 <jlumpe> oh
  • 13:22:40 <jlumpe> danilobuerger: what about the copy/past bug?
  • 13:24:36 <pedda> i copied, and pasted successfully this morning a few times
  • 13:24:42 <pedda> flux development branch
  • 13:32:38 <danilobuerger> jlumpe a combination... most of them in a single tree since same content... north america on its own tree... but yeah there are some issues with that ...... about c&p we did a lots of fixes (> 20 bugfixes) for all commands (new / localize / d&d / etc) already and c&p is the only one left
  • 14:48:34 <gencha^> I'm currently building a site with fluidbootstraptheme and fbtcustomiser. When I add a new template to my extension, it doesn't show up when I create a new content element
  • 14:48:51 <jlumpe> gencha
  • 14:48:52 <gencha^> Yet, when I copy the template into the fluidbootstraptheme folder, the template does show up
  • 14:48:55 <jlumpe> #actionscript gencha?
  • 14:49:03 <gencha^> yessir
  • 14:49:05 <jlumpe> haha
  • 14:49:15 <jlumpe> you're everywhere :P
  • 14:49:23 <gencha^> i try my best ;)
  • 14:49:40 <jlumpe> haha
  • 14:52:07 <gencha^> Erm, yeah, so my question is, is there some sort of common mistake people make that results in this behavior or is fbtcustomiser really only able to override but not add functionality
  • 14:52:33 <jlumpe> i didn't use fbtcustomiser yet :(
  • 14:53:51 <jlumpe> but i assume it is used to override existing templates
  • 14:53:54 <jlumpe> (just guessing)
  • 14:55:02 <gencha^> yeah, it is. that part works fine. i would have assumed that i can also add new templates though. and i'm pretty sure i can, i'm just not doing it right
  • 14:57:22 <jlumpe> hmmm
  • 14:57:31 <jlumpe> I should clone that bootstrap repo
  • 14:57:39 <jlumpe> and convert it to foundation
  • 14:57:40 <jlumpe> :D
  • 14:59:23 <jlumpe> well in general you should be able to just add templates through any extension
  • 14:59:23 <jlumpe> like
  • 14:59:29 <jlumpe> in general you create a provider extension, right?
  • 14:59:47 <jlumpe> if you can add templates through that, you should be able to add templates through the customiser aswell
  • 15:02:13 <gencha^> that's what i'm thinking :P
  • 15:03:31 <jlumpe> is the extension registered as a provider extesion?
  • 15:03:35 <jlumpe> *extension
  • 15:05:31 <gencha^> i don't know. i'll look into that. i kinda skipped that part of the docs given that the fbtcustomiser did what i needed
  • 15:05:36 <jlumpe> no it's not
  • 15:05:47 <jlumpe> i'm not 100% sure but that might be the issue
  • 15:05:49 <jlumpe> https://github.com/bootstraptheme-for-typo3/fbtcustomiser/blob/master/ext_tables.php
  • 15:06:02 <jlumpe> try adding
  • 15:06:03 <jlumpe> Tx_Flux_Core::registerProviderExtensionKey($_EXTKEY, 'Page');
  • 15:06:03 <jlumpe> Tx_Flux_Core::registerProviderExtensionKey($_EXTKEY, 'Content');
  • 15:06:47 <jlumpe> and then you'll have to create the folders of course
  • 15:06:57 <jlumpe> Resources/Private/Templates/Content
  • 15:07:01 <jlumpe> Resources/Private/Templates/Page
  • 15:07:41 <jlumpe> plus you'll need the Layouts folder where you'll have your base layouts for your pages/CEs
  • 15:07:52 <gencha^> I got the folders, but not the registration calls
  • 15:08:09 <jlumpe> ah ok
  • 15:08:11 <jlumpe> i think that is he issue
  • 15:08:21 <jlumpe> because fluidbootstraptheme registers itself as a provider
  • 15:08:32 <jlumpe> that's why your templates show up when you put them inside that extension
  • 15:08:54 <jlumpe> if the ext isn't registered as a provider flux does not know that it should look for templates there i assume
  • 15:09:00 <gencha^> yeah, makes sense
  • 15:09:14 <jlumpe> i'm still just guessing here though :)
  • 15:10:25 <gencha^> works perfectly now :)
  • 15:10:38 <gencha^> i kinda assumed fbtcustomiser already had that in place
  • 15:11:03 <jlumpe> ha
  • 15:11:08 <jlumpe> guessing ftw
  • 15:11:22 <jlumpe> thinking about it, it seems a bit odd that it isn't in there
  • 15:11:24 <gencha^> http://www.fluidbootstraptheme.net/customise/ kinda suggests that it would work out of the box
  • 15:11:32 <gencha^> yeah
  • 15:12:44 <jlumpe> "For extending fluidbootstraptheme simply add elements or pages to yourextension like it is done in FedExt-Provider-Extensions."
  • 15:13:09 <jlumpe> yeah, this sounds like the call to registerProviderExtension should be in there
  • 15:14:09 <gencha^> i opened an issue for now
  • 15:14:42 <jlumpe> ok
  • 15:14:47 <jlumpe> maybe we're wrong, who knows
  • 15:15:03 <gencha^> what also always confuses the hell out of me is that i usually forget to create the locallang.xlf
  • 15:15:15 <jlumpe> ha
  • 15:15:32 <jlumpe> there is an extension called "builder"
  • 15:15:44 <jlumpe> which is able to create an extension skeleton
  • 15:15:52 <jlumpe> for use with fluidtypo3
  • 15:16:01 <jlumpe> not sure, but it might create a default lang file as well
  • 15:17:50 <gencha^> yeah, when i started this site, builder wasn't compatible with 6.2 :(
  • 15:21:41 <jlumpe> ah ok
  • 15:27:06 <floxx1> i want to switch between 2 values, based on current language.
  • 15:27:23 <floxx1> <v:page.header.meta name="description" content="{settings.'{page._PAGES_OVERLAY_LANGUAGE}'.description}" />
  • 15:27:48 <floxx1> {page._PAGES_OVERLAY_LANGUAGE} isn't replaced. how is the correct syntax?
  • 15:29:22 <jlumpe> I think that isn't possible
  • 15:30:04 <jlumpe> at least if you check http://fluidtypo3.org/viewhelpers/vhs/master/Var/SetViewHelper.html it reads:
  • 15:30:17 <jlumpe> --
  • 15:30:17 <jlumpe> Note that {arrayVariable.{offset}.name} is not possible due to the way Fluid parses nodes; the above piece of code would try reading arrayVariable.{offset}.name as a variable actually called "arrayVariable.{offset}.name" rather than the correct arrayVariable[offset][name].
  • 15:30:21 <jlumpe> --
  • 15:31:02 <jlumpe> floxx1: maybe you can use this one
  • 15:31:02 <jlumpe> http://fluidtypo3.org/viewhelpers/vhs/master/Var/GetViewHelper.html
  • 15:44:30 <floxx1> i mean, how can i use a variable inside a variable?
  • 15:44:43 <floxx1> {variable.{variable2}}
  • 15:46:24 <jlumpe> i think you can not
  • 15:46:38 <jlumpe> i just quoted something up tehre
  • 15:46:43 <jlumpe> Note that {arrayVariable.{offset}.name} is not possible due to the way Fluid parses nodes
  • 15:46:50 <jlumpe> :)
  • 15:51:35 <pedda> jlumpe you have an issue with template file recognition?
  • 15:51:49 <jlumpe> me? no
  • 15:51:57 <pedda> hmm kay
  • 15:52:08 <jlumpe> gencha had an issue regarding templates not being picked up in the bootstrap customizer extension
  • 15:52:09 <pedda> ah it was gencha
  • 15:52:19 <jlumpe> but that was due to the fact that it doesn#t register itself as provider
  • 15:52:23 <pedda> did he figured it out ?
  • 15:52:26 <jlumpe> yeah
  • 15:52:28 <pedda> kk
  • 15:52:30 <jlumpe> i told him to register it as a provider
  • 15:52:39 <jlumpe> without being a provider you can only use it for overlays
  • 15:52:57 <jlumpe> but flux will not recognize new templates, since it isn#t instructed to look there
  • 15:53:01 <pedda> exactly
  • 15:53:12 <jlumpe> i think he opened up an issue on github
  • 15:53:29 <jlumpe> because, and he#s right about that, the documentation reads like you can just do that and it should work
  • 15:53:43 <pedda> no it does not read like this
  • 15:53:45 <jlumpe> so maybe the customizer should register itself as provider by fdefault
  • 15:53:48 <jlumpe> it does not?
  • 15:54:06 <pedda> cinte fedext tools exist it's common to use a custom provider extension
  • 15:54:07 <jlumpe> "For extending fluidbootstraptheme simply add elements or pages to yourextension like it is done in FedExt-Provider-Extensions."
  • 15:54:17 <jlumpe> ok yeah
  • 15:54:28 <jlumpe> if you know that you have to register a provider then it works
  • 15:54:32 <pedda> it's like the tut's have been advising you to do so for the past 2 years
  • 15:54:33 <jlumpe> but he didn't know
  • 15:54:33 <jlumpe> :9
  • 15:54:46 <pedda> well the point is
  • 15:54:48 <jlumpe> the issue is:
  • 15:54:58 <jlumpe> he got the extension from the master branch
  • 15:55:02 <jlumpe> like the docs suggest
  • 15:55:19 <jlumpe> and then he added templates, but didn't have the register calls in his conf
  • 15:55:19 <pedda> one should always start with a provider extension after he finished setting up fedext tools
  • 15:55:41 <pedda> this is not really fedext related..
  • 15:55:50 <jlumpe> nono
  • 15:55:54 <jlumpe> i didn't say that :9
  • 15:56:00 <jlumpe> it's related to fluidbootstrap
  • 15:56:04 <pedda> i know .. just wanted to point out
  • 15:56:07 <jlumpe> yeah i know
  • 15:56:21 <jlumpe> but i do think fluidbootstrap should register as provider by default
  • 15:56:27 <jlumpe> but you are right, this is not fedext related
  • 15:57:54 <pedda> afaik ft3 main goal was to collect a buch of "snippets" in that extension, as they apeared to be used amon several projects
  • 15:58:02 <pedda> +n
  • 15:58:54 <pedda> assuming you already use a provider extension, fluidbootstrap can be seen as a template-swiss-tool providing you with some bootstrap components
  • 15:59:10 <jlumpe> yeah i don't use it
  • 15:59:26 <jlumpe> what i just said is just related to the instructions on http://www.fluidbootstraptheme.net/customise/
  • 15:59:39 <jlumpe> and only to fbtcustomiser
  • 15:59:40 <pedda> unlike vhs being a swiss knife for creating custom themes with some logic
  • 16:03:17 <jlumpe> pedda: if you read the docs, they state that you can use fbtcustomiser to excent fluidbootstrap easily (including adding new components)
  • 16:03:50 <jlumpe> all i'm saying is that the wording feels wrong, because you cannot just download the extension and add a new template. it won't work since it doesn't register itself as a provider
  • 16:03:56 <jlumpe> so that step is just missign on the docs
  • 16:03:59 <jlumpe> that's all i mean haha
  • 16:04:58 <pedda> but it actually provides some basic ts settings for template paths
  • 16:04:59 <pedda> https://github.com/bootstraptheme-for-typo3/fbtcustomiser/blob/master/Configuration/TypoScript/setup.txt
  • 16:05:42 <jlumpe> yes, but only for overlays
  • 16:05:42 <pedda> in fact a MyCustomPageTemplate.html file should be parsed and appear in the backaend
  • 16:05:45 <pedda> backend
  • 16:06:01 <jlumpe> that only works if the extension registers itself as provider, no?
  • 16:06:03 <pedda> if placed within ftbcustomiser
  • 16:06:26 <jlumpe> correct me if i'm wrong but i think it's missing these calls:
  • 16:06:27 <jlumpe> Tx_Flux_Core::registerProviderExtensionKey($_EXTKEY, 'Page');
  • 16:06:31 <jlumpe> Tx_Flux_Core::registerProviderExtensionKey($_EXTKEY, 'Content');
  • 16:06:51 <jlumpe> how would flux know that it should check the extension for templates (which are something else than overlays)
  • 16:07:07 <jlumpe> overlays will work, adding more stuff won't
  • 16:07:12 <pedda> hmm you're right
  • 16:07:23 <jlumpe> but of course, it is for customizing, so you could argue "only customize, do not add"
  • 16:07:37 <jlumpe> but since the docs explicitly state that you can add things, those calls are missing
  • 16:07:49 <pedda> tbh it's been a while since i launched a project without those two lines
  • 16:08:11 <jlumpe> :D
  • 16:19:35 <bjo3rn> why are my 6.2 logs empty? hm... .oO
  • 16:19:56 <bjo3rn> empty as in no workee
  • 16:22:16 <pedda> general question: if a customer asks you to fix some css issue on an android 2.3.x device, what do you do?
  • 16:22:18 <BenjaminR> randomresult: pm me for bootstraptheme-for-typo3/fbtcustomiser#5 if you like
  • 16:22:19 <FT3BOT> Issue 5: Should register itself as a provider extension https://github.com/bootstraptheme-for-typo3/fbtcustomiser/issues/5
  • 16:23:24 <jlumpe> BenjaminR: the issue was just that the docs specifically state that you can add content, and the steps do not involve registering the extension as provider extension
  • 16:23:37 <jlumpe> but of course, updating the docs would also resolve the 'issue'
  • 16:24:36 <BenjaminR> jlumpe i will ask randomresult for his opinion but i think we demonstrate ext:view here and its not meant as skeleton for fluidcontent/fluidpages
  • 16:24:52 <BenjaminR> what wouldnt be needed anyway because of ext:builder
  • 16:24:54 <BenjaminR> :)
  • 16:26:59 <jlumpe> yeah :)
  • 20:01:55 <xaver__> lol
  • 20:01:56 <xaver__> PHP peak memory usage
  • 20:01:58 <xaver__> 5.6%
  • 20:01:59 <xaver__> During a request 5.6% of the memory limit was used. On 09-08-12 a request to ...../index.html used 58 M of 1.0 G. Clear this flag.
  • 20:03:08 <jlumpe> you set your memory limit for a single php thread to 1gig? O_o
  • 20:31:34 <danilobuerger> jlumpe why not ^^
  • 20:31:43 <danilobuerger> if you have enough :)