09:42:40 <Guest|79532> i know, this is the wrong channel for this but i dont know where to ask :S
09:42:51 <Guest|79532> i just created an extension with extension builder
09:43:35 <Guest|79532> and everything works fine, but if i click on a detail-link from the root i get an error msg "Required argument "alt" was not supplied."
09:43:54 <Guest|79532> google does not find anything about it
09:44:11 <Guest|79532> and i did not modified anythink on the template
09:44:33 <batjony> Guest|79532: you can ask in #typo3
09:45:20 <Guest|79532> oh thanks, didnt knew about this channel
09:54:02 <batjony> guys i have a custom content element which shows pages from particular sys folder
09:54:21 <batjony> currently it shows by default the first page in this sys folder like https://gist.github.com/momchilgoos/531616463c0d0dbdf7d1
09:54:36 <batjony> but the idea is to have some simple pagination - prev and next
09:55:05 <batjony> next - will show the page content from the next page in this sys folder
09:55:20 <batjony> prev - will show the page content from the previous page in the sys folder
09:55:46 <batjony> some ideas how to implement this prev/next
09:56:30 <batjony> probably i should get the prev/next page uid and then use <v:content.render pageUid="{pageUid}">
10:16:39 <mrboe> hey @NamelessCoder do you have a minute
10:17:24 <mrboe> i have a question about settings.useTypoScript in the FBT
10:19:41 <mrboe> when i use plugin.tx_fluidbootstraptheme.settings.useTypoScript = 0 and go to page settings and set: settings.position = right the FE uses the value of the Page settings but the BE uses the value wich is set in TS Constants
11:38:05 <batjony> i want to check if some variable is NULL or not, and i use <f:if condition="{someVar} != NULL"> but it does not work
13:44:13 <batjony> mrboe: ya it works, i will use it, but its really strange why the standard condition way "{someVar} != NULL" does not work
15:11:53 <BenjaminR> batjony: maybe you like to use v:condition.variable.isNull()
15:15:08 <Guest|86972> hello.. can somebody help me? my problem:
15:16:20 <Guest|86972> i would like to link a file with: <flux:wizard.link activeTab="file"/> / what i see in the front end is: file:48 but i would like to have the whole path with the filename like this.. ../folder1/folder2/filename.jpg
15:18:20 <BenjaminR> Guest: I think link -> v:link.typoscript() will help you out
15:20:44 <Guest|86972> you mean <v:link.typolink ??
16:24:56 <batjony> BenjaminR: i see, but still I think I can not use it in my case, because for example if something is not NULL i should render page A, else render page B
16:25:49 <batjony> i see here "then" and "else" are inline arguments, and I think I can not use them
16:25:59 <BenjaminR> there are then and else always
16:26:04 <BenjaminR> just use them - also tagbased
16:27:36 <batjony> so you mean that this is possible <v:if.var.isNull> <f:then>...</f:then> <f:else>...</f:else> ?
16:30:22 <batjony> i have a custom content element which renders pages from particular sys folder, and should have next and prev which should walk through the pages in this sys folder
16:30:45 <batjony> i have an array of all pages inside the folder
16:31:44 <batjony> and by default i am on the first page, how can I use v:iterator.next to get the next page
16:35:04 <BenjaminR> there are arguments needle and haystack
16:36:44 <NamelessCoder> says FALSE if there are no elements *after* $needle inside $haystack - but my memory fails me whether it renders then/else nodes or returns the next element...
16:37:32 <batjony> ok if I have an array {pageItems} which is key/value array where key corresponds to the page Uid and the value contains another array of the page properties
16:37:42 <batjony> and if I am on a page with uid 8
16:37:51 <NamelessCoder> I think it returns the next element, or you'd have an easier time working with it this way. In which case... {v:iterator.next(haystack: myArray, needle: currentObject) -> v:variable.set(name: 'next')} and <f:if condition="{next}">...</f:if>
16:41:03 <NamelessCoder> O holy source code, we beseech thee!
16:41:15 <NamelessCoder> Tell us the true nature of our being!
16:41:59 <NamelessCoder> it does *not* support then/else in any fashion
16:42:14 <batjony> sorry guys but still can not understand how can I get the next, so currently i get the first page like this: {pageItems->v:iterator.first()->v:variable.set(name: 'pageFirst')} <v:content.render pageUid="{pageFirst.uid}"></v:content.render>
16:42:24 <batjony> how can I get the next one with v:iterator.next
16:42:25 <NamelessCoder> it will only return -1 for "not found" or the object/value at $index+1
16:45:24 <mrboe> have you seen my question in the morning
16:45:59 <NamelessCoder> batjony are you *certain* you should not be using v:page.menu.directory or v:page.menu.browse instead? I think you're missing v:page.menu.browse here.
16:46:32 <NamelessCoder> mrboe "NULL" will be treated like a variable reference
16:47:25 <mrboe> when i use plugin.tx_fluidbootstraptheme.settings.useTypoScript = 0 and go to page settings and set: settings.position = right the FE uses the value of the Page settings but the BE uses the value wich is set in TS Constants
16:48:03 <NamelessCoder> do you have your own PageController+
16:49:36 <mrboe> and when im right you create the possibiliy to use TS settings
16:51:13 <NamelessCoder> eh... please debug {settings} in the BE at a place where this happens. It might be missing options added by extended templates or overridden by an array merge internally
16:51:46 <batjony> NamelessCoder: the real example I use to fetch the first page(the default one) https://gist.github.com/momchilgoos/9b579a0653fbe757f05d which my custom content element shows; then I will have links prev/next which will paginate through all pages
16:52:51 <batjony> thats why I am wondering how can I get for example the next - if I have the array {menuItems}
16:53:51 <BenjaminR> batjony - in fces there should be the {page} object available
16:54:26 <BenjaminR> forget what i wrote - i think i didnt get the point
16:54:53 <batjony> i have a custom content element who navigates to pages inside particular sys folder
16:55:28 <batjony> not just navigates, the custom CE actually renders them
17:00:31 <Guest|9138> i need the path (only the path and filename) from <flux:wizard.link activeTab="page"/>
17:01:06 <Guest|9138> with <v:link.typolink doesnt work
17:01:41 <BenjaminR> Guest: a short view to the docs and some intuition said me there is a v:uri.typolink too
17:02:37 <Guest|9138> but what i need for parameter?
17:02:59 <NamelessCoder> Guest|9138 the field's value should then contain exactly the value you need. It depends on what you named the flux:field.* that's the parent of the wizard.
17:03:23 <BenjaminR> NamelessCoder: the value is FILE:XY
17:03:37 <NamelessCoder> if you get a FAL reference from that field's value (again, depends on the configuration of parent field) you can use fal resource viewhelpers to load the resource object
17:03:38 <BenjaminR> onparsed - its a typolink wizard value
17:03:50 <Guest|9138> if i have this: <flux:field.input name="video-webm" label="WebM">
17:15:45 <NamelessCoder> second, to *read* the data and assign it: http://fluidtypo3.org/viewhelpers/vhs/development/Resource/FileViewHelper.html combined with http://fluidtypo3.org/viewhelpers/vhs/development/Var/SetViewHelper.html (note: last viewhelper renamed to v:variable.set)
17:16:48 <NamelessCoder> or use as: <v:resources.file ... as="variableName"> {variableName.foobar} </f:resources.file> - you can <f:debug>{variableName}</f:debug> to see properties
17:17:04 <NamelessCoder> one of the properties on this object will be your desired file path
17:18:25 <NamelessCoder> to use v:resources.file, pass the value of your field to "identifier" your field name: {settings.videoWebm}. Enable "treadIdAsRerefence="TRUE" to make the ViewHelper load the FAL record as an object reference
17:18:55 <Guest|9138> page links are so easy and only for reading a path is so difficult!!!
17:22:36 <batjony> NamelessCoder: did you look at http://snag.gy/2y6th.jpg - i do not see what variable i can use for next/prev, i see something only for first and last
19:37:10 <bjo3rn> does the menu in your case by any chance only contain 1 element? if so first and last would be the same and no prev/next links added.