IRC logs

20141203

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

IRC log range: 20141203*

20141203

  • 08:54:07 <jmverges> good morning mates
  • 08:54:41 <jmverges> NamelessCoder, I tried that method, to assign plugin to module and it didn't work for my behaviour
  • 10:14:35 <jmverges> had anyone some problem with fluidpages configuration of subpages?
  • 10:27:32 <vizArt> Maybe somebody can tell: Is flux compatible with TYPO3 v.7.0 ?
  • 11:04:23 <jmverges> nice question!
  • 11:31:40 <soee> it works i think but fluidpages and or fluidcontent needs somell changes wioth one array cunction used
  • 12:20:44 <bjo3rn> vizArt it will work. the required changes are already in the current dev branches.
  • 13:05:04 <vizArt> @bj03rn: thanks for this info
  • 13:05:32 <bjo3rn> unfortunately I just found out that it doesn't work with current dev either. stay tuned.
  • 13:06:17 <vizArt> ok
  • 14:08:05 <bjo3rn> peeps, ca I use php constants in a fluid template?
  • 14:08:08 <bjo3rn> *can
  • 15:28:01 <pRiMUS> hey everybody.
  • 15:29:00 <pRiMUS> can any1 tell me, why my fluid content elements appear in the tab "plugins" and the view of the tab seems broken. in another typo3 instance its working fine in an own tab.
  • 15:29:03 <pRiMUS> any suggestions?
  • 15:29:48 <Denyerec> In before "Clear caches"
  • 15:29:51 <Denyerec> ;)
  • 15:30:54 <pRiMUS> http://imgur.com/lNpNm52
  • 15:31:00 <pRiMUS> i already did
  • 15:31:11 <Akii> pRiMUS: migrate your templates accordingly
  • 15:31:24 <pRiMUS> i just used that example template
  • 15:31:27 <Akii> if it's new, check for syntax errors especially missing NS imports
  • 15:33:29 <jmverges> hey, I have a question, where are stored flux values?
  • 15:33:40 <jmverges> name="setting.whatever"
  • 15:47:18 <batjony> hello guys
  • 15:48:44 <batjony> if i have a flux form and inside it flux fields with attribute required="1", i could still save the fce without filling anything in these fields
  • 15:49:14 <batjony> how can I set some kind of "not-empty" validation in a flux forms ?
  • 15:54:46 <artisticMink> It might sound silly, but did you try 'true' as string value?
  • 15:55:36 <pRiMUS> sorry. i had a meeting
  • 15:56:07 <batjony> ya
  • 15:56:25 <batjony> still I am not able to set any fields like required!
  • 15:57:39 <pRiMUS> Akii: do you have any example for me? i used this one
  • 15:57:39 <pRiMUS> https://fluidtypo3.org/documentation/templating-manual/templating/creating-templates/content-element.html
  • 15:57:47 <pRiMUS> the teaser
  • 15:58:05 <pRiMUS> i placed it in my own extension, the path is correct and i can use the element.
  • 15:58:15 <pRiMUS> only the backend is kinde fckd.
  • 15:58:16 <pRiMUS> ;)
  • 16:01:12 <artisticMink> batjony: I just checked AbstractFieldViewHelper, required is registered as a boolean, so 1 or true should work. Try clearing the cache after making changes or use uncache. If the problem persists, you probably have to debug it.
  • 16:02:01 <pRiMUS> as soon as i add the configuration it break my backen
  • 16:02:18 <batjony> actually not sure what should happens if something is set to required
  • 16:02:27 <batjony> should some errror message appear ?
  • 16:03:06 <artisticMink> batjony: At least, there should be a field prefix * by default.
  • 16:03:21 <artisticMink> It would be a good thing to upload your flexform to pastebin and poste the link here.
  • 16:05:04 <artisticMink> On another note, i've got a problem of myself: I need to pass some arguments down to an content element. Currently i'm using <v:content.render /> Do i have another option similair to <f:render arguments="{_all}" /> or do i need to create a view helper myself to handle this?
  • 16:11:02 <NamelessCoder> artisticMink what is the purpose of the variables?
  • 16:12:52 <pRiMUS> interessting. with the flux 7.1.0 everything works fine
  • 16:12:59 <pRiMUS> with the 7.1.1 not
  • 16:13:03 <artisticMink> artisticMink: it's a flag. If set, i'll have to assemble some opengraph data inside the content element context. Currently digging trough your documentation, i should be able to register it as a variable.
  • 16:13:12 <artisticMink> NamelessCoder: Gah, above.
  • 16:15:50 <NamelessCoder> you could use v:variable.register.set / .get
  • 16:16:40 <NamelessCoder> or if your child elements are always direct descendants of your parent, the child element can load the parent's details by {record.pid} + v:content.get / flux:form.values
  • 16:18:20 <artisticMink> NamelessCoder: Yes, thanks. That should come in handy.
  • 16:19:18 <jmverges> Claus, where is stored flux data?
  • 16:20:36 <NamelessCoder> jmverges depends on the context, but always in a "flex" type field on the table you're editing
  • 16:20:52 <jmverges> so, if is a fluidcontent
  • 16:20:55 <jmverges> in tt_content?
  • 16:22:15 <batjony> another question guys, lets say i have a flux form where the first field is a select box and when the user choose something from this selectbox - some other logic in the flux form based on the selected value should appear
  • 16:22:21 <batjony> for just an example I use this http://pastebin.com/JACeRbgE
  • 16:22:49 <batjony> where the text field is populated with the selected value
  • 16:23:07 <NamelessCoder> jmverges fluidcontent_core stores its settings in tt_content.content_options. Fluidcontent stores them in tt_content.pi_flexform. Fluidpages stores them in pages.tx_fed_page_flexform and custom plugin implementations usually store them in tt_content.pi_flexform.
  • 16:23:14 <batjony> is it possibile to implement such "dynamic" flux logic ?
  • 16:23:17 <NamelessCoder> this is flexform data still
  • 16:24:15 <jmverges> NamelessCoder, it is nice
  • 16:27:23 <bjo3rn> hi. is there only a 'inline' field for fal? I'd like to select only one single file.
  • 16:27:48 <bjo3rn> I'm still not getting friends with fal :S
  • 16:27:55 <bjo3rn> *becoming
  • 16:28:22 <NamelessCoder> bjo3rn how about input+linkwizard?
  • 16:28:36 <bjo3rn> to select an image?
  • 16:28:41 <NamelessCoder> iirc that one creates sys_file:123 type references that an go into f:image et al
  • 16:28:55 <bjo3rn> hm.
  • 16:29:01 <NamelessCoder> yeah, set activeTab="file" I think it is
  • 16:29:16 <bjo3rn> true, but bad for editors
  • 16:29:36 <bjo3rn> I'd rather drop fal then
  • 16:30:04 <bjo3rn> the images won't be reused in other places of the site in this case anyway
  • 16:30:10 <NamelessCoder> you could do a flux:field.file but that does add a lot more buttons and options
  • 16:30:31 <bjo3rn> this is how I'm used to do it.
  • 16:32:03 <bjo3rn> plus 'create new relation' is not the best label for a button that lets you choose a file :S
  • 16:32:47 <bjo3rn> or can I hide that one?
  • 16:33:19 <bjo3rn> ah, seems so, yes
  • 16:33:27 <bjo3rn> 'enabledControls'
  • 16:37:42 <bjo3rn> hm, not really
  • 16:38:56 <NamelessCoder> maybe EXT:easyfal can be of service?
  • 16:39:50 <bjo3rn> easyfal? let me check.
  • 16:42:07 <bjo3rn> meh, 2 out of 2 hits in 'When not to use' ^^
  • 16:42:14 <NamelessCoder> :/
  • 16:42:37 <bjo3rn> anywho
  • 16:42:52 <bjo3rn> I'll stick to ye olde file field
  • 16:43:47 <NamelessCoder> batjony your logic example is already using exactly the dynamic logic Flux allows
  • 16:52:27 <cbleicker> hi there
  • 16:52:41 <cbleicker> doing my first steps with flux
  • 16:53:08 <cbleicker> what should i do with this one? AdditionalConfiguration.1414852807.php
  • 16:53:40 <NamelessCoder> cbleicker nothing, ideally. It's a migration file used by the EM script of fluidcontent_core
  • 16:54:53 <NamelessCoder> purpose is to allow fluidcontent_core to detect back in history all the versions of AdditionalConfiguration.php which it has written so that it can overwrite any version it wrote but leave any modified files intact (leaving it up to the admin to include any changes in that file)
  • 16:55:32 <cbleicker> so on a totaly fresh installation nothing to do?
  • 16:56:15 <NamelessCoder> except running the EM update script for fluidcontent_core or manually copying the current version of AdditionalConfiguration.php to typo3conf/ ? No, nothing required.
  • 16:56:45 <NamelessCoder> all the EM script does is copy the file if it detects the file can safely be replaced or does not already exist
  • 16:57:03 <cbleicker> ok
  • 16:59:00 <cbleicker> i want to use dev-master of fluidcontent_core
  • 16:59:34 <NamelessCoder> should be safe to do but look out for unannounced changes since it's beta
  • 16:59:36 <cbleicker> currently it marked in ext_emconf as 2.1.99 it seems and i end up in:
  • 16:59:39 <cbleicker> The extension vhs is needed in version 2.1.0 - 2.1.99, but could not be fetched from TER
  • 17:00:30 <NamelessCoder> that's quite odd. Plenty 2.1.* versions exist but of course, the most recent one is 2.2.0 from today
  • 17:00:32 <cbleicker> erm, sorry. master says its 2.2.0 in ext_emconf
  • 17:01:01 <NamelessCoder> no risk in ignoring that constraint
  • 17:01:07 <cbleicker> okay
  • 17:01:12 <cbleicker> thank you
  • 17:01:20 <NamelessCoder> 2.2.0 is merely a formality to switch on 7.0 support ;)
  • 17:11:45 <jmverges> hey guys, how could I get the uid of a CE made with flux?
  • 17:11:50 <jmverges> in fluid
  • 17:17:10 <jmverges> {record.uid}
  • 17:17:12 <jmverges> ?
  • 17:30:58 <qnic> NamelessCoder, hi, do you have a few minutes? I'd like to discuss your proposal for implementing page.resources.fal record sliding in vhs from issue #679.
  • 18:48:54 <cbleicker> need initial help to understand page templating with fluidpages
  • 18:49:22 <cbleicker> page record shows: Data Structure ERROR: No proper configuration!
  • 18:49:44 <cbleicker> is this a fluidpage setting or is this some core stuff?
  • 18:49:57 <cbleicker> i am totaly out of t3 ^^ did to much neos ^^
  • 18:51:27 <cbleicker> frontend ends up in exception that typo3conf/ext/fluidpages/Resources/Private/Templates/Page/Default.html is not found. how to tell fluidpages that the templates are located in my personal site package?
  • 18:54:03 <cbleicker> or do i still need backend layouts?
  • 18:57:42 <qnic> cbleicker, you need to set the backend layout to fluidpages on your root page
  • 18:57:47 <qnic> and then select a page template
  • 18:59:06 <cbleicker> how to set it to fluidpages? where is the relation done?
  • 19:00:25 <cbleicker> i am confused. is this still valid? http://docs.typo3.org/typo3cms/extensions/fluidpages/ because i see classnames without namespacing everywhere
  • 19:02:36 <qnic> https://fluidtypo3.org/documentation/templating-manual/templating/provider-extension/generating-extensions.html
  • 19:02:39 <qnic> this is probably a beter resource
  • 19:03:02 <qnic> https://fluidtypo3.org/documentation/templating-manual/templating/using-templates/selecting-page-templates.html
  • 19:03:24 <cbleicker> okay. am i right that i need my own provider do be able to render my page templates?
  • 19:03:29 <qnic> yes
  • 19:03:33 <qnic> you need a provider extension
  • 19:03:37 <cbleicker> okay
  • 19:03:57 <cbleicker> so for what is fluidpages in this case? just to deliver the abstracts?
  • 19:04:09 <qnic> recent fluidpages versions also require you to set the 'backend-layout' field on the appearances tab of your root page properties to 'Fluidpages'
  • 19:04:25 <qnic> it provides all required infrastructure
  • 19:04:44 <qnic> you only have to provide the concrete site-specific templates in your own extension
  • 19:06:51 <cbleicker> arrr, got it
  • 19:07:31 <cbleicker> so simply disable the default fluidpage ts config in extmgn setup and copy this stuff to my own extension ts wich assigns then my own provider?
  • 19:08:57 <qnic> you shouldn't need any ts for using fluidpages
  • 19:09:37 <qnic> FluidTYPO3\Flux\Core::registerProviderExtensionKey($_EXTKEY, 'Page'); should take care of everything you need for basic pages
  • 19:09:45 <qnic> (in ext_tables.php)
  • 19:11:02 <NamelessCoder> qnic sorry, don't expect I'll have time today
  • 19:11:34 <qnic> NamelessCoder, I'll bug you some other time then
  • 19:12:01 <NamelessCoder> cbleicker if you still use 6.2 you might want to try installing the EXT:site distribution - it creates a basic setup that renders out of the box. We're still not quite ready for 7.x though
  • 19:13:02 <cbleicker> using 6.2 but i want to understand and study it instead of autobuilding stuff ;)
  • 19:13:26 <cbleicker> i will just give builder a try and will take a look what it generates for —pages
  • 19:13:30 <qnic> cbleicker, then you should probably read the complete guide on fluidtypo3.org
  • 19:14:21 <NamelessCoder> oh that's not autobuilding in the common sense of the word ;) it uses EXT:builder to generate the extension - we recommend you do that anyway. All EXT:site really does is load dependencies and insert a working setup (all the stuff you normally do in fresh sites - top page, three sub pages, a TS template, select which FE template to use, etc)
  • 19:14:35 <NamelessCoder> but understanding is always a good thing, no doubt
  • 19:18:08 <cbleicker> uuuuh. now i have the mistake i make :) this one tells the flux core to look for templates in my extension, right?
  • 19:18:10 <cbleicker> \FluidTYPO3\Flux\Core::registerProviderExtensionKey('foo', 'Page');
  • 19:18:50 <NamelessCoder> yep, that tells any feature using Flux to enable the "Page" controller type that your extension has templates for it
  • 19:19:37 <cbleicker> what i thought what it does ist: "register a new provider found in package 'foo' and is called class PageProvider{}"
  • 19:19:52 <cbleicker> something similar like a plugin controller registration
  • 19:20:38 <NamelessCoder> it's similar to registering a plugin - I see the confusion in the method name; the intention was to make it read "register provider-extension key"
  • 19:20:55 <cbleicker> yep :) got it now
  • 19:21:00 <NamelessCoder> because we use the term Provider Extension for "the extension that contains your templates and controllers for ft3 features"
  • 19:21:11 <cbleicker> yes
  • 19:21:19 <cbleicker> now its clear :)
  • 19:21:34 <cbleicker> it was the naming wich confuses me
  • 19:22:43 <NamelessCoder> very valid point - we want to change that by using more naming conventions and detection of classes/files
  • 19:22:59 <cbleicker> registerExtensionKeyForFluxProvider() and i think i would not struggle about this :)
  • 19:23:00 <NamelessCoder> ideally flux et al would "just know" those templates can be used
  • 19:23:45 <cbleicker> :)
  • 19:24:13 <cbleicker> thank you for clearing this and unknot my brain ^^
  • 19:24:47 <NamelessCoder> anytime :)
  • 19:25:33 <NamelessCoder> I have to go but if you run into similar things don't hesitate to make a list of your pitfalls - we can use that info
  • 19:37:15 <cbleicker> ^^ Could not analyse class:vhs\ViewHelpers\Content\RenderViewHelper maybe not loaded or no autoloader
  • 19:41:54 <cbleicker> solution: never copy & paste template code from documentation without a review ;)
  • 19:42:20 <cbleicker> where to report bugs/stories etc?