06:29:25 <Guest|76666> Hello, I'm trying to implement a vertical menu with subitems. Is it possible, in this case, to set an active Class to the links? Also I wanna show the name of the parent item as headline above the menu. https://gist.github.com/anonymous/85bcf4f3f2b893d08571 can someone help me?
06:37:25 <NamelessCoder> Guest|76666 for CSS class, use class="{item.class}". To read a property from a page by passing the UID, use https://fluidtypo3.org/viewhelpers/vhs/master/Page/InfoViewHelper.html and feed it the "pid" from the item which parent's title you want displayed.
06:44:32 <Guest|76666> @NamelessCoder thanks, it works!
06:59:07 <drlimbo> NamelessCoder: im wondering about the inheritance of flux:field.inline.fal
06:59:34 <drlimbo> im using this on a page, but "page AND subpage" are displayed and both are synced? https://www.evernote.com/shard/s8/sh/46b57edc-4e19-4ec4-9957-d197b4a1a3bd/5b5e8a7a1bfc5236018d26faeb49b27d/deep/0/hbz.png
06:59:46 <drlimbo> and on the subpage i dont have access to those pictures
07:04:57 <NamelessCoder> drlimbo inheritance of FAL resources doesn't work because they are tied to the page record itself and are m:n.
07:06:17 <NamelessCoder> you can manually traverse the page rootline and use the first page that has any relations (you'd be selecting relations inside a loop) but there are no mechanisms to let you do that automatically
07:06:58 <drlimbo> allright, so i need to check on the subpage "if no media -> check parent-page for media"
07:07:17 <drlimbo> but why there are two "file-lists" in page settings? (Page AND Subpage?)
07:11:00 <NamelessCoder> not sure what you mean by that
07:12:43 <drlimbo> here are two "configurations" NamelessCoder -> https://www.evernote.com/shard/s8/sh/46b57edc-4e19-4ec4-9957-d197b4a1a3bd/5b5e8a7a1bfc5236018d26faeb49b27d/deep/0/hbz.png
07:14:28 <NamelessCoder> same problem, unfortunately.
07:15:01 <NamelessCoder> the m:n is created using the Flux field name + page UID which means that if both templates use the same FAL IRRE field name, values are duplicated after you save them.
07:15:39 <NamelessCoder> this is a core issue and has been right from the start - the situation is slightly better now with flexforms because the flexform field name, not the record's field name that contains the flexform, is used for the relation.
07:47:01 <Guest|50850> Hi Everyone. Is is possible to use tkcroptumbs to render cropped images in custom content elements using fluidcontent?
07:58:24 <benjamin_654> Hi Guest|50850, i dont know that extension. But i would guess if you create a fluidcontent-element with a content-area where you then place such a image it should be rendered fine. But i expect problems if you also use fluidcontent_core.
08:02:50 <Guest|50850> benjamin_654 I am using flux:field.inline.fal to add the image rather than adding an image content element.
08:04:58 <Guest|50850> Thanks for you help, I'll keep digging
08:05:12 <benjamin_654> Guest|50850: Then i dont see a way to use the rendering of tkcroptumbs. But you can easyly crop the images yourself with the image view-helpers https://fluidtypo3.org/viewhelpers/vhs/master/Media/ImageViewHelper.html
08:14:09 <drlimbo> thanks NamelessCoder, but now im wondering what inherit="1" means in flux:field.inline.fal
08:39:18 <drlimbo> NamelessCoder: is v:page.resources.fal gone? can't find that in the documentation and it doesnt work, but v:content.resources.fal works well
08:48:11 <twistedNerv> i dont get lang translations from locallang file to flux and thats why i would like to check where is the problem. I have turned on debug mode in flux extension. Where cani see the errors?
08:56:43 <benjamin_654> drlimbo: The documentation for inherit=“1” is here: https://fluidtypo3.org/viewhelpers/flux/development/Field/Inline/FalViewHelper.html#argument-inherit - but as N.C pointed out, inheritance of FAL does not work. This may be a bug - if it does not work for you, please create a issue on github that this argument isnt used/working in this viewhelper and it should be removed
09:00:36 <benjamin_654> drlimbo: your welcome btw. v:page.resource.fal doc is here: https://fluidtypo3.org/viewhelpers/vhs/master/Page/Resources/FalViewHelper.html
09:02:05 <benjamin_654> twistedNerv: which view helper are you using?
09:02:30 <drlimbo> thx benjamin_654 - but the "shortmode" {v:page.resources.fal(field: 'media') isn't working for me -> found it here: https://fluidtypo3.org/viewhelpers/flux/master/Field/Inline/FalViewHelper.html
09:04:23 <benjamin_654> twistedNerv: did you try do add the ‘extensionName’ argument? This helped me if the template belonged to a other extension than locallang.xlf.
09:05:38 <benjamin_654> drlimbo: and the tag version does work?
09:09:06 <twistedNerv> benjamin_654: im using 2.2.0 (VHS: Fluid ViewHelpers )
09:09:47 <twistedNerv> locallang file is in the same extension
09:15:05 <drlimbo> benjamin_654 - it works if i add table etc, maybe this isn't default?
09:17:46 <benjamin_654> twistedNerv: There are a few possible causes for problems with the translation files. One of the is for example a wrong language key ( config.language = de ) in the typoscript configuration or the locallang filename or xml-attributes. I dont think this is a problem with vhs or flux.
09:24:51 <twistedNerv> oh, ill check that ... tnx!
09:28:27 <benjamin_654> drlimbo: there are defaults for table and field. Required is only ‘uid’ or ‘record’.
09:30:19 <drlimbo> so benjamin_654 {v:page.resources.fal(field: 'media')} should work, not?
09:35:06 <benjamin_654> drlimbo: no, either uid or record is a required argument. So it sould be: {v:page.resources.fal(record: record)} // but check if record is really available and its the page-record
09:44:46 <drlimbo> is there a way to automatically add the LanguageParam to every Link? so i dont have to add additionalParams? <f:link.page pageUid="{subitem.uid}" additionalParams="{L: '{v:variable.typoscript(path: \'config.sys_language_uid\')}'}"
09:47:35 <benjamin_654> drlimbo: i think you are searching for typoscript: config.linkVars = L
09:47:35 <benjamin_654> but for general typo3 or typoscript questions you shold visit room #typo3
09:50:53 <drlimbo> oh, thanks benjamin_654! i tried nearly everything =P
12:24:31 <drlimbo> im stuck again with .record.fal =P
12:24:47 <drlimbo> {v:resource.record.fal(record: page, field: 'media', table: 'pages', uid: 1) <- why does this only work on Page with uid:1 an not on other pages?
12:25:06 <drlimbo> is it not possible to get fal-media from parent page?
12:25:19 <drlimbo> benjamin_654 maybe u can help me here too?
12:30:56 <benjamin_654> drlimbo: You should only use one argument: record OR uid. Does this work?: {v:resource.record.fal(record: page, field: 'media', table: 'pages')}
12:30:57 <benjamin_654> Or to get the parent : {v:resource.record.fal(uid: page.pid, field: 'media', table: 'pages')}
12:42:30 <drlimbo> ah, tahts works benjamin_654 - thanks
12:42:50 <drlimbo> so i have to check - if no media - check if parent has media - if not - check parent-parent for media
12:52:27 <benjamin_654> drlimbo: I actually made a viewhelper for this problem: https://gist.github.com/BenjaminBeck/b77720d57718579b8c08
12:52:27 <benjamin_654> Performance is improveable but it gets the job done..
12:54:33 <drlimbo> i just did it the ugly way with multiple if then else =(
12:55:02 <drlimbo> but i'll switch to your viewhelper tomorrow morning and try if I can do it like that
12:55:30 <drlimbo> you also have a solution for inheritance of flux:grid.column benjamin_654?
12:58:51 <benjamin_654> drlimbo: <v:content.render column="12" slideCollect="1" slide="1" slideCollectReverse="true"/> does work for me, but i am not sure if this is what you want ..
12:59:07 <drlimbo> oh, i have to check that too =)
13:00:23 <drlimbo> sorry benjamin_654, but where i have to put your viewhelper?
13:04:58 <benjamin_654> drlimbo: sorry, i haven´t got the time to walk you through creating a viewhelper - but there are plenty tutorials available: https://stmllr.net/blog/writing-a-basic-fluid-viewhelper-for-typo3/ ; http://t3-developer.com/1/extbase-fluid/cheats-fluid/viewhelpers/view-helpers-selbst-erstellen-eine-anleitung/ ..
13:05:34 <drlimbo> allright, thank you benjamin_654
13:17:44 <drlimbo> benjamin_654: i can try to extend your viewhelper tomorrow, to add type (now "media") as parameter, so i can also get FAL-Images from my FlexForms
13:20:49 <drlimbo> not? i thought if i switch fileRepository->findByRelation('pages', 'media', $page['uid']); to ('pages', 'mySpecialField', $page['uid']); <- as a param, this should work?