IRC logs

20140724

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

IRC log range: 20140724*

20140724

  • 08:58:20 <JohnDi> Good morning
  • 09:18:53 <JohnDi> I am getting "The selected page template does not contain a grid but the template is itself valid.
  • 09:18:53 <JohnDi> " That does refer to this code,is that right?:
  • 09:18:55 <JohnDi> <flux:form id="foo">
  • 09:18:55 <JohnDi> <!-- Input field for Fluid variable 'pageClass' -->
  • 09:18:55 <JohnDi> <flux:field.input name="settings.pageClass" default="some-css-class"/>
  • 09:18:55 <JohnDi> <!-- Backend layout grid (TYPO3 6.x and greater only) -->
  • 09:18:55 <JohnDi> <flux:grid>
  • 09:18:55 <JohnDi> <flux:grid.row>
  • 09:18:55 <JohnDi> <flux:grid.column colPos="0" name="Sidebar" style="width: 25%"/>
  • 09:18:56 <JohnDi> <flux:grid.column colPos="1" name="Content" style="width: 75%"/>
  • 09:18:56 <JohnDi> </flux:grid.row>
  • 09:18:57 <JohnDi> </flux:grid>
  • 09:18:57 <JohnDi> </flux:form>
  • 09:19:18 <JohnDi> sorry, for the big code, but dont know how I could show it differently
  • 09:33:03 <JohnnyDalmore> Hey there
  • 09:33:27 <JohnnyDalmore> A question... should flexform still be used in conjunction with fluid/flux?
  • 09:43:16 <bjo3rn> JohnDi has left?
  • 09:43:20 <bjo3rn> :/
  • 09:43:35 <bjo3rn> or did he change his name?
  • 09:44:05 <bjo3rn> JohnnyDalmore flux is a subsitution for flexforms.
  • 09:44:10 <bjo3rn> awww, come on!
  • 09:44:22 <bjo3rn> :/
  • 09:44:33 * bjo3rn is too slow
  • 10:41:59 <beo6> hello everyone
  • 10:43:16 <gencha_> morning guys. could anyone help me trying to figure out how to properly format the code as mentioned by @NamelessCoder here: https://github.com/FluidTYPO3/fluidcontent_core/pull/56/files#r15304275
  • 10:46:15 <gencha_> because even when i put the <a> on a new line, it's still longer than 130chars and i don't know how to properly shorten it or break it into multiple lines
  • 10:47:47 <beo6> i hope i have only one more problem. I get a PHP warning for one frontend page template: "PHP Warning: filemtime(): stat failed for .../Resources/Private/Templates/Page/HomePage.html in typo3/sysext/fluid/Classes/View/TemplateView.php line 619
  • 10:48:18 <beo6> page templates for another page in the same pagetree do work. They use another extension however
  • 10:51:19 <beo6> ah i see. the other company has used lowercase filenames.
  • 10:54:16 <erredeco> hello there
  • 10:54:43 <erredeco> a question about usage of FAL media field (I mean the field on the pages table)
  • 10:55:14 <erredeco> I've seen that it is possible to retrieve the FAL image set on a page with:
  • 10:55:28 <erredeco> {v:resource.record.fal(record: page, field: 'media', table: 'pages') -> v:iterator.extract(key: 'id') -> v:iterator.first() -> v:var.set(name: 'pageMedia')}
  • 10:55:58 <erredeco> <v:resource.image identifier="{pageMedia}" alt="{pageMedia.alternative}" title="{pageMedia.title}" />
  • 10:55:58 <erredeco> <v:resource.image identifier="{pageMedia}" alt="{pageMedia.alternative}" title="{pageMedia.title}" />
  • 10:55:58 <erredeco> <v:resource.image identifier="{pageMedia}" alt="{pageMedia.alternative}" title="{pageMedia.title}" />
  • 10:56:05 <erredeco> sorry
  • 10:56:48 <erredeco> well, then... question: is it possible to add the "slide" logic? I mean, if the image is not set, use the image of the first parent which has it?
  • 10:58:46 <fger> hiho
  • 10:59:02 <fger> glad to see , that the localize-bug of flux is fixed in latest core version 6.2.4 and flux-dev branch
  • 10:59:03 <fger> works fine
  • 10:59:38 <beo6> glad that the multiple page templates bug is fixed in the dev branch
  • 10:59:43 <beo6> or i would have gone crazy
  • 11:00:36 <fger> multiple page templates ?
  • 11:00:56 <beo6> yes. i use more than one page template using fluidpages
  • 11:01:30 <beo6> and with the update to the current typo3 extension repository it broke
  • 11:02:20 <erredeco> @beo6 could you give us an example about how you use multiple page templates?
  • 11:03:22 <beo6> i guess like normal. not sure what example you need. i have copied the bootstrap extension, modified it and put multiple fluid page templates into it
  • 11:04:03 <beo6> i was able to select them in the backend but it changed nothing
  • 11:04:15 <erredeco> ah ok
  • 11:04:28 <erredeco> you mean with the usual radiobuttons
  • 11:04:35 <beo6> yes
  • 11:04:57 <beo6> its selected, even correctly saved to the database but it still shows the default template
  • 11:05:08 <beo6> now with the dev branch it works
  • 11:05:16 <beo6> but it made me nearly crazy
  • 11:05:19 <beo6> ;)
  • 11:05:54 <erredeco> :S I started using v. 7.0.0 from TER and it worked
  • 11:06:30 <erredeco> the only complain I have is that in nested grids the drag and drop or cut and paste still don't work well
  • 11:06:40 <erredeco> even using the dev branch from git
  • 11:16:36 <Guest|21790> Hi
  • 11:17:01 <Guest|21790> In this code example from the documentation.. could it be that things are messed up? http://pastebin.com/TxYFfCic
  • 11:17:05 <mrboel> @erredeco its a flux bug
  • 11:17:06 <Guest|21790> Example:
  • 11:17:13 <Guest|21790> <flux:grid.column colPos="0" name="Sidebar" style="width: 25%" />
  • 11:17:14 <Guest|21790> <flux:grid.column colPos="1" name="Content" style="width: 75%" />
  • 11:17:18 <Guest|21790> and then below it says:
  • 11:17:25 <Guest|21790> <f:section name="Content">
  • 11:17:25 <Guest|21790> <!-- Render colPos=0 in this section -->
  • 11:17:26 <Guest|21790> <v:content.render column="0" />
  • 11:17:26 <Guest|21790> </f:section>
  • 11:17:26 <soee> !pastebin
  • 11:17:54 <soee> wtf
  • 11:17:57 <Guest|21790> in the upper part colPos="0" refers to Sidebar and then below it refers to Content
  • 11:17:59 <soee> whers the bot ? :D
  • 11:18:17 <xaver> zoildberg
  • 11:19:40 <Guest|21790> soee you find the pastebin link right in the message from 11:17:02
  • 11:20:32 <batjony> guys, my site uses a backend layout, currently its stored in the db something like http://pastebin.com/BZuQARaB, I want somehow to migrate the backend layouts storing from db to files; as I see there is one extension which I can use https://github.com/georgringer/belayout_fileprovider, but its not so clear how to use it
  • 11:20:48 <batjony> soee wrote me that this can be also done with fluid pages
  • 11:20:56 <batjony> any idea how to do it ?
  • 11:21:52 <BenjaminR> batjony: http://fluidtypo3.org/documentation/templating-manual/templating/creating-templates/page-template.html
  • 11:21:59 <BenjaminR> have a look at flux:grid
  • 11:22:47 <BenjaminR> Guest|21790: whats going wrong for you?
  • 11:24:07 <Guest|21790> The reference seems to be wrong. In the flux:grid part of the example colPos="0" refers to "Sidebar" and then below in f:section name="Content" it Refers ColPos=0 to Content instead of sidebar
  • 11:25:03 <BenjaminR> ah yes, that might be a typo. ty!
  • 11:25:21 <BenjaminR> If you like you can create a commit here: https://github.com/FluidTYPO3/documentation/edit/rewrite/3.Templating/3.2.CreatingTemplateFiles/3.2.2.PageTemplate.md?message=[DOC]%20Edited%203.2.2.PageTemplate.md
  • 11:25:26 <BenjaminR> if not, i will take over :)
  • 11:27:00 <BenjaminR> done - ty Guest
  • 11:27:21 <Guest|21790> thanks for the verification, that confused me. But now I go on... :)
  • 11:27:47 <benjamin_654> hi all
  • 11:27:48 <benjamin_654> i have a odd bug: For the first Fluid-Content-Element on a page, the Controller-Action is not been called! For all other Fluid-Content-Elements (even same Type) the Controller-Action is called, any ideas what might be wrong?
  • 11:28:32 <BenjaminR> benjamin: if you change the order of the elements i stays the first elements that is not called always?
  • 11:28:43 <BenjaminR> or is the error bound to a specific element type or uid
  • 11:28:53 <beo6> gencha_: btw. i solved the issue. I updated all fluid powered typo3 extensions to the dev versions, changed all templates fixed all remaining issues and i think it is solved now.
  • 11:29:31 <benjamin_654> BenjaminR: yes it still is the first one even if i exchange it ..
  • 11:29:44 <beo6> thanks to danilobuerger and bjo3rn for helping me. :)
  • 11:33:50 <batjony> BenjaminR: so the typoscript syntax http://pastebin.com/BZuQARaB should be migrated to html like http://fluidtypo3.org/documentation/templating-manual/templating/creating-templates/page-template.html if I migrate to fluid pages ?
  • 11:34:31 <BenjaminR> batjony: you define your backend layouts with the flux:grid viewhelper, yes
  • 11:34:42 <BenjaminR> within a flux:form of your page template
  • 11:34:54 <BenjaminR> what means that you can define a backend layout per page template
  • 11:35:39 <beo6> batjony: i have used it nearly all the time. it is really easy and useful. At least when there are no bugs. ;)
  • 11:35:56 <erredeco> @batjony: this way you don't need at all the belayout items
  • 11:36:26 <Guest|78107> Hi guys, I know that would be an offtopic but I am going crazy. RealURL gives me headaches. Can someone tell me how to use postVarSets? I set it up like in examples from the Internet. But it just won't work.
  • 11:36:45 <ubrog> Does anyone know how I can get a file field with multiple images using FAL?
  • 11:37:07 <ubrog> I was able to configure one that works in the backend, but in fluid I only get the first file returned
  • 11:37:49 <BenjaminR> Guest|78107 i guess you should ask this at #typo3 - many of us idle there too but there are more people with realurl experience
  • 11:37:52 <ubrog> And I've already tried everythin I've found online, but there ist not much that helps
  • 11:38:01 <erredeco> @ubrog this example helped me a lot https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Content/ImageGallery.html
  • 11:38:32 <batjony> BenjaminR: so if I understand correctly, in the same page template file which is used in frontend, I also define the backend layout with the flux:grid within a flux:form, so in one file I have both - FE and BE layouts ?
  • 11:38:37 <BenjaminR> ubrog: you need flux:field.inline.fal and v:content.resources.fal
  • 11:38:47 <BenjaminR> you find examples in the doc comments
  • 11:39:12 <erredeco> @batjony: precisely
  • 11:39:39 <batjony> nice
  • 11:41:17 <ubrog> Hmm ok, I tried in a separate extension and the config is in TCA
  • 11:42:02 <ubrog> But I could just add it as a content element and use that configuration
  • 11:44:23 <batjony> BenjaminR: which extensions I need - fluid pages, flux ? something else ?
  • 11:46:03 <erredeco> @batjony: you need flux, fluidpages and vhs
  • 11:46:17 <batjony> erredeco: k 10x
  • 11:46:19 <erredeco> I suggest also fluidcontent and view
  • 11:46:51 <erredeco> oh, and also builder to start up your extension
  • 11:48:48 <Guest|49835> Hi! I am doing this tutorial: https://worksonmymachine.org/blog/fluidtypo3-quickstart but I have a general question to that... the tutorial advices to create files like /private/template/page/foo.html but now when I change the filename of foo.html into something else, it doesn't work. And all references in the sourcecode are renamed to the new fiel
  • 11:48:48 <Guest|49835> name. Does Typo3 cache that? Or what could the problem be?
  • 11:49:43 <erredeco> @guest|49835: 1. pay attention to the CaSe ;)
  • 11:49:59 <erredeco> 2. if anything else fails, delete all files in /typo3temp
  • 11:50:56 <Guest|49835> I did exactly that, filename is Page.html and case is considere. I deleted the typo3temp and all caches. No change so far.
  • 11:51:03 <Guest|49835> but thanks for the hints.
  • 12:01:14 <Guest|78107> Is it possible to use extbase controller to get GET parameters from RealURL formatted URL?
  • 12:09:03 <soee> it doesnt matter if they are formatted you can access them as usual
  • 12:23:22 <erredeco> may I ask you if could someone please answer my question about FAL ? (please note: I don't want to look impolite so apologize me)
  • 12:25:12 <beo6> erredeco: i don't see any question here
  • 12:26:30 <erredeco> uh...well...I'll write it again
  • 12:26:54 <erredeco> I'm trying to use FAL from the media field (pages table, you know)
  • 12:27:03 <erredeco> I've seen that this code works for me: http://pastebin.com/yiY7VC9K
  • 12:27:39 <beo6> when it works for you, where is the issue?
  • 12:27:40 <erredeco> my question is: is it possible to add the "slide" logic? I mean, if there is no image, take the image of the first parent that has one?
  • 12:29:09 <beo6> oh. ok. i don't know. sorry
  • 12:30:10 <BenjaminR> erredeco: no, you would have to check parents yourself
  • 12:30:31 <NamelessCoder> erredeco no, sorry - that is not possible and will not be made possible since record sliding only applies to pages and this ViewHelper reads resources from any table
  • 12:31:01 <erredeco> ok thank you
  • 12:31:05 <NamelessCoder> workaround: use v:page.breadCrumb to get a rootline which you loop, checking if the media field is set.
  • 12:32:36 <erredeco> umm
  • 12:32:52 <erredeco> Is there an example I can look at?
  • 12:38:45 <NamelessCoder> not that I can find on short notice... v:page.breadCrumb works like v:page.menu so an example of manual rendering there, should give you the idea of how to loop through a set of pages to find the first that has
  • 12:39:01 <NamelessCoder> a value in the media field
  • 12:39:24 <beo6> i would guess he wants the last page that has a media field
  • 12:39:31 <NamelessCoder> I think something like this might work
  • 12:41:36 <NamelessCoder> <v:page.breadCrumb as="rootLine">{rootLine -> v:iterator.extract(key: 'media') -> v:iterator.filter(propertyName: 'media') -> v:iterator.last() -> v:var.set(name: 'firstParentImage')}</v:page.breadCrumb>
  • 12:42:53 <NamelessCoder> it should: extract the page root line from the current page and up, extract all "media" values then filter out all empty values and finally "pop" the last element and assign a new variable with that element's value (a single-value array, {firstParentImage.media})
  • 13:00:23 <erredeco> umm if I print the variable {firstParentImage} it seems it is =1 if the image is set in the page, 0 in the other case :S
  • 13:04:13 <gencha_> when i click the "Move record up" button on content elements on a page, the element disappears. apparently, the tx_flux_column and tx_flux_parent field are cleared in the DB
  • 13:04:31 <gencha_> ...i should probably update flux and check again :P
  • 13:04:43 <gencha_> "Move record down" works great btw ;D
  • 13:12:40 <NamelessCoder> gencha_please check if this happens only when you move the element to the top of an area
  • 13:13:07 <gencha_> NamelessCoder: it does
  • 13:13:25 <NamelessCoder> I am not sure we can fix that one...
  • 13:15:40 <gencha_> NamelessCoder: i reported it nevertheless for completeness sake
  • 13:17:06 <gencha_> how do you guys deal with drag&dropping content elements through long content areas? i always find myself collapsing and expanding elements just to be able to make the right drop
  • 13:17:43 <gencha_> i'd love to contribute automatic scrolling when the mouse closes in on a screen edge during a drag operation, but i have no idea where to start
  • 13:17:52 <NamelessCoder> reason for bug: move icons and links are rendered by TYPO3 core and will render a target colPos which does not contain the parent and area. Dropping on dropzone works because the zone is rendered by us.
  • 13:18:08 <gencha_> oh, i see
  • 13:18:34 <NamelessCoder> gencha such a (very nice) contribution should be made to the typo3 core
  • 13:18:46 <NamelessCoder> it would involve some ExtJS which I know nothing about
  • 13:18:48 <batjony> http://demo.fluidtypo3.org/
  • 13:18:58 <batjony> Fatal error: Class 'FluidTYPO3\Vhs\Service\AssetService' not found in /var/www/build.fedext.net/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4302
  • 13:19:00 <batjony> :)
  • 13:19:16 <NamelessCoder> where did you get that url batjony?
  • 13:19:46 <batjony> from the features slide at fluidtypo3.org
  • 13:20:19 <gencha_> NamelessCoder: oh, i see. now i have even less of an idea where to start ;)
  • 13:20:22 <NamelessCoder> oh, I stand corrected. Shouldn't be a public url.
  • 13:20:33 <batjony> somewhere in the slides I saw demo.fluidtypo3.org and just opened it
  • 13:21:18 <NamelessCoder> sort-of-demo at http://staging.namelesscoder.net/
  • 13:26:11 <batjony> NamelessCoder: why you are nameless :)
  • 13:27:21 <NamelessCoder> it's a joke batjony :)
  • 13:28:33 <batjony> ok so one special beer for NamelessCoder http://beeroverip.org/
  • 13:29:04 <NamelessCoder> hehe boip
  • 13:30:11 <batjony> cheers
  • 13:54:12 <gencha_> NamelessCoder: i *think* i finally got that addAnchor commit right :P https://github.com/oliversalzburg/fluidcontent_core/commit/962b96854d783fa66fccdbd2fb0324a0fec54024
  • 14:44:25 <shagory> Hi there. I'm currently evaluation fluidcontent_core. I'm missing the RTE in the richtext fields. How do I enable it?
  • 14:45:54 <BenjaminR> shagory: this is very likely not beeing related with fcc
  • 14:46:38 <BenjaminR> *to
  • 14:49:00 <shagory> Ah thank you for the hint. It's disabled by default for new 6.2 backend users.
  • 14:56:47 <randomresult> hi there
  • 14:57:17 <randomresult> any ideas on how i can add a special bodyclass for one of three pagetemplates?
  • 15:03:00 <gencha_> randomresult: add it as a new page configuration parameter
  • 15:03:42 <randomresult> and then ... how to get this parameter into the bodytag?
  • 15:03:49 <randomresult> is there a vh for that ?
  • 15:03:52 <gencha_> oh, right, the body. sorry
  • 15:03:57 <randomresult> :)
  • 15:13:51 <randomresult> someone from the team will be in munich?
  • 15:14:07 <randomresult> @danilobuerger will you be there?
  • 15:17:17 <mrboel> yes me
  • 15:18:02 <mrboe> oh - im not from the team
  • 15:18:38 <Guest|75583> Good day gentelmen. How do you make user friendly f:links?
  • 15:19:14 <Guest|75583> without index.php?some=var but rather domain.com/var ?
  • 15:25:57 <fger> randomresult: what is in munich ?
  • 15:26:25 <mrboe> t3camp
  • 15:27:04 <BenjaminR> randomresult: no, no vh. typoscript needed
  • 15:28:42 <BenjaminR> sure you could have a additional container element inside body and outside your page layout where you can assign a class
  • 15:31:58 <randomresult> BenjaminR this is what i will do
  • 15:39:04 <BenjaminR> add. container?
  • 15:41:49 <fger> oh ok
  • 16:16:18 <BenjaminR> OT: All southpark mp4s on MTV unprotected: http://jsfiddle.net/decx/4M8w8/
  • 17:14:22 <gencha_> i want a fluid-based felogin :(
  • 18:58:37 <danilobuerger> randomresult_afk yes
  • 19:46:19 <bjo3rn> guys, does anybody know if saving typoscipt constants via the constants editor triggers flushing of all caches like in the install tool?