IRC logs

20140827

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

IRC log range: 20140827*

20140827

  • 08:34:35 <Guest|9138> i asked yesterday and nobody helped me (i dont have a solution)
  • 08:34:50 <Guest|9138> how i can get the path from <flux:wizard.link activeTab="file"/>?
  • 08:35:08 <Guest|9138> not file:48 but as example /fileadmin/filename.mov?
  • 08:44:31 <mrboe> @Guest|9138 <flux:field.file name="afile" label="afile" />
  • 08:46:02 <Guest|9138> ok and then how i can get the path? <v: ? or only {afile}?
  • 08:46:11 <mrboe> <f:debug>{afile}</f:debug>
  • 08:46:12 <FT3BOT1> ¯\_(ツ)_/¯
  • 08:47:59 <Guest|9138> ok it WORKS :) thank you very much :-)
  • 08:48:25 <mrboe> you're welcome
  • 08:48:49 <Guest|9138> now a other question.. how i make a textare? <f:form.textarea name="myTextArea" value="This is shown inside the textarea" /> doesn't works.. :-(
  • 08:48:50 <FT3BOT1> ¯\_(ツ)_/¯
  • 08:49:54 <mrboe> <v:site.url/>{afile}
  • 08:51:28 <mrboe> <flux:field.text name="atext" label="atext" enableRichText="true" default="This is shown" cols="85"/>
  • 08:55:53 <Guest|9138> @mrboe thank you, everything works!!! where was you yesterday?? :-)
  • 08:58:55 <batjony> bjo3rn: are you there
  • 09:38:39 <bjo3rn> hi batjony
  • 09:40:39 <batjony> hi bjo3rn, i saw that you wrote me something yesterday about prev/next, so I have more than one pages, its not only one, and still if I use v:page.menu.browse like NamelessCoder suggested me, i do not see any prev/next, only first and last
  • 09:40:50 <bjo3rn> hm
  • 09:41:16 <bjo3rn> how many pages are there in that subtree?
  • 09:42:30 <bjo3rn> and did you set pageUid of the parent page?
  • 09:42:38 <batjony> i think the issue, is that - actually i have a general site menu, and then a custom content element which should has his own menu/navigation - prev/next, the custom CE renreds pages from a particular sys folder
  • 09:43:07 <bjo3rn> you'll have to set pageUid of the sysfolder then
  • 09:43:19 <batjony> ya I do it
  • 09:43:44 <bjo3rn> are the page records of the first and last page correct?
  • 09:44:00 <batjony> yes
  • 09:44:07 <bjo3rn> .oO
  • 09:44:22 <bjo3rn> any special doktypes?
  • 09:44:57 <batjony> ya, but i have set them correctly with the but the doktypes argument
  • 09:45:30 <bjo3rn> I don't think this will have any effect in this vh
  • 09:45:47 <bjo3rn> could you try adding some standard pages to see if it works then please?
  • 09:48:46 <batjony> but actually what I try to do, is just to get the uids of first/last/prev/next - and create my own links like for example, if the content element is set in a page with ID 11, and the sys folder contains pages with IDS {17, 18, 19, 20}, my content element renders by default the first page which is with ID 17, and the next link should be http://brandhouse/index.php?id=11&bid=18
  • 09:49:38 <bjo3rn> sure, you can do that. but we have to fetch the correct rootline anyway.
  • 09:49:42 <batjony> so the idea is the user to stay always on page with ID 11, but the content elelement to render internally the pages from this sub folder
  • 09:49:54 <batjony> with the addition url argument
  • 09:50:30 <bjo3rn> so, with standard pages, do you get the correct rootline with next/prev links?
  • 09:50:45 <batjony> just a moment i will try it right now
  • 09:54:17 <mrboe> is it possible to set a var with the height of an choosen image from a field:file?
  • 09:57:34 <bjo3rn> mrboe there's v:media.image.height
  • 09:57:49 <mrboe> just found that
  • 09:57:54 <mrboe> thanks bjo3rn
  • 09:58:02 <bjo3rn> yw
  • 09:58:08 <batjony> bjo3rn: no the same, all caches clear, i think the problem is that we actually have two navigations, so page where the CE is set is with ID 11 and the current typo3 page object points to this ID; the CE has his own pagination and it can not create prev/next, because it does not know what is the current page
  • 09:58:45 <bjo3rn> but at some place you tell the ce the id of that sysfolder?
  • 09:59:41 <batjony> ya, but it does not know on which page of this sysfolder is currently rendered
  • 10:00:06 <batjony> this helper does have an option to set which is the current page
  • 10:00:17 <bjo3rn> but that doesn't matter. the pageUid to pass to the browse vh is the pid of the sysfolder
  • 10:00:29 <bjo3rn> exactly
  • 10:02:15 <batjony> the sys folder contains pages with IDS {17, 18, 19, 20.....}, i do not set anywhere which is the current ID used, so how it can define the prev/next
  • 10:02:53 <mrboe> @bjo3rn path="NULL" is deprecated
  • 10:03:38 <bjo3rn> batjony the vh has an argument pageUid which can be set to the pid of the subtree's parent page. so please set pageUid to the pid of your sysfolder.
  • 10:03:58 <batjony> bjo3rn: its already set
  • 10:04:29 <bjo3rn> ahhh
  • 10:04:34 <bjo3rn> now I get it (I think)
  • 10:04:37 <bjo3rn> ^^
  • 10:04:52 <bjo3rn> one second, thinking
  • 10:05:21 <bjo3rn> ok, edge case
  • 10:05:36 <bjo3rn> this won't work. you are right about the current page
  • 10:05:56 <bjo3rn> what about a workaround using v:page.menu?
  • 10:06:35 <batjony> this will give me an array of all page items in this sys folder
  • 10:06:37 <bjo3rn> fetch the full menu of the sufolder and generate the links yourself
  • 10:06:49 <bjo3rn> using the iterator.* vhs
  • 10:07:11 <bjo3rn> like iterator.first, iterator.last, iterator.slice
  • 10:07:43 <bjo3rn> the question is how to propagate the current pid of your subfolder page
  • 10:08:09 <batjony> https://gist.github.com/momchilgoos/9b579a0653fbe757f05d this is the way I get the first page, i have tried to use iterator.next but without any success
  • 10:09:07 <batjony> i am not sure if I can use the prev/next iterators, at least i do not know how
  • 10:09:14 <bjo3rn> you will get the last one the same using iterator.last ofc. the 'next' of 'prev' pages require some logic and ofc the pid of the currently rendered page of the subfolder
  • 10:09:28 <bjo3rn> they're not useful here
  • 10:10:21 <bjo3rn> would it help to add an argument currentPid to the browse vh?
  • 10:10:56 <bjo3rn> do you know how to provide that? I mean can you create urls with that?
  • 10:11:06 <bjo3rn> *the currentPid
  • 10:11:47 <bjo3rn> mrboe what do you mean?
  • 10:13:45 <batjony> you mean to extend somehow the current the existing view helper 'v:page.menu.browse', to add a possibility to set additional argument 'currentPid', and to implement a log which will use the argument 'currentPid' instead of automatically getting it by the typo3 page object
  • 10:14:03 <batjony> log = logic
  • 10:15:16 <bjo3rn> I already added that here on my local machine. it's really ease. the question is: would that help you?
  • 10:15:20 <bjo3rn> *easy
  • 10:16:14 <bjo3rn> I mean are you able to propagate the pid of your (subfolder's) current page via url?
  • 10:16:46 <bjo3rn> you posted http://brandhouse/index.php?id=11&bid=18
  • 10:16:56 <batjony> ya this will be fine
  • 10:17:03 <bjo3rn> how do you read the 'bid' from that url?
  • 10:17:11 <batjony> i have a ContentCOntroller
  • 10:17:15 <bjo3rn> aha!
  • 10:17:22 <batjony> $this->view->assign('bp', (int) $_GET['bp']);
  • 10:17:46 <batjony> and then <v:content.render pageUid="{bp}"></v:content.render> in the view
  • 10:18:14 <bjo3rn> ok, I will create a branch with that additional argument for you to test, sec
  • 10:18:28 <batjony> nice 10x
  • 10:21:19 <bjo3rn> batjony see https://github.com/bjo3rnf/vhs/tree/currentpid
  • 10:22:29 <batjony> i will test it now
  • 10:28:33 <batjony> bjo3rn: is the argument called "currentpid" ?
  • 10:28:45 <bjo3rn> no, currentUid
  • 10:28:50 <batjony> k
  • 10:29:11 <bjo3rn> sorry for the misleading branch name
  • 10:30:19 <batjony> strange, again the same
  • 10:30:21 <batjony> no prev/next
  • 10:30:39 <batjony> does it work on your local environment ?
  • 10:30:43 <bjo3rn> even with standard pages?
  • 10:30:51 <bjo3rn> didn't test ;)
  • 10:30:57 <batjony> ya, i test it with standard pages
  • 10:31:27 <bjo3rn> ok, I'll have to create a local test for that but I can't do it now. maybe later today.
  • 10:31:57 <batjony> ok 10x
  • 10:43:04 <bjo3rn> batjony I found the problem (couldn't resist) ^^
  • 10:43:25 <batjony> :) nice, what is it ?
  • 10:44:17 <bjo3rn> fail on my side :/ I will fix it but the currentUid argument needs to stay
  • 10:44:38 <batjony> ok
  • 10:54:50 <batjony> i assume that some changes should be done also in the AbstractMenuViewHelper, the BrowseViewHelper seems correct
  • 10:55:37 <bjo3rn> batjony no, it's fixed now. I force pushed my branch. please reset and pull again.
  • 10:55:53 <batjony> ok i will test it now
  • 11:01:42 <batjony> bjo3rn: nice it works, so now I suppose I should use it like <v:page.menu.browse pageUid="{sysFolderUid}" currentUid="{currentUid}" as="pageItems" deferred="1"> read prev/next from {pageItems} and create my own links like http://site/index.php?id=....&bid=...
  • 11:11:26 <bjo3rn> batjony yes. why deferred="1"?
  • 11:11:46 <bjo3rn> (and first my branch has to be merged into development ofc)
  • 11:18:26 <batjony> bjo3rn: because if I not use deferred="1", the viewhelper outputs the menu with links like http://site/index.php?id=21 , i need to keep the current global page ID and add an additional url param
  • 11:23:54 <batjony> when deferred="1" is used, there is no output, so I just can use the created pagination array
  • 11:24:47 <bjo3rn> hm. that sounds like another bug bc there shouldn't be any output when as="" is used
  • 11:25:29 <batjony> ya there is definitely output if as="" is used
  • 11:25:36 <batjony> just tried it again
  • 11:29:09 <bjo3rn> nah, it works.
  • 11:29:27 <bjo3rn> <v:page.menu.browse currentUid="22" pageUid="19" as="foobar">Foobar!</v:page.menu.browse>
  • 11:29:34 <bjo3rn> only outputs Foobar!
  • 11:31:32 <batjony> hm i will make one more try
  • 11:32:56 <batjony> :)
  • 11:33:08 <batjony> skip the "Foobar!" and you will see the output
  • 11:33:33 <bjo3rn> yes, ofc
  • 11:34:10 <bjo3rn> this functionality is intended for manual rendering.
  • 11:34:53 <bjo3rn> just wrap everything inside v:page.menu.browse ;)
  • 11:35:19 <batjony> ya I see, i will wrap it
  • 11:35:49 <batjony> again 10x for "currentpid" branch :) i think its nice feature
  • 11:40:08 <bjo3rn> yw. let's hope it will get merged ;)
  • 11:43:26 <batjony> :) ya we will see what is the NamelessCoder spirits today :)
  • 11:58:03 <BenjaminR> hi guys
  • 11:59:40 <batjony> yo BenjaminR
  • 12:00:07 <BenjaminR> hi batjony
  • 13:57:28 <BenjaminR> In an FCE where can i set a variable (v:variable.set) to make it available in Configuration AND preview section?
  • 14:00:45 <mrboe> perhabs in a new section and render that?
  • 14:03:18 <BenjaminR> variables are only available inside a section - the parent stays unaffected
  • 14:03:50 <BenjaminR> using render
  • 14:05:28 <BenjaminR> basically i need global variables in my fce
  • 14:05:48 <BenjaminR> sure... i could add a contentcontroller... but i am looking for solutions beside this
  • 14:54:49 <xaver> NamelessCoder: typo
  • 14:59:19 <GRIMMCREATIVE> what is header.autoType doing in FCC?
  • 15:11:04 <batjony> wondering if I can use the vhs helpers in a controller, so is there a way to call some vhs helper in the ContentController ?
  • 15:16:53 <BenjaminR> batjony - yes you can use some of them also in the controller
  • 15:18:27 <BenjaminR> initialize the viewhelper with objectmanager->get()
  • 15:20:05 <batjony> BenjaminR: i want to use v:page.menu when the argument "as" is used, just want to get the created array
  • 15:20:08 <batjony> is it possible
  • 15:20:44 <BenjaminR> that MAY be possible when you call parseMenu or similar
  • 15:21:06 <BenjaminR> you have to check the methods inside the vh - which might work
  • 15:21:14 <BenjaminR> you have to try
  • 15:24:42 <batjony> BenjaminR: i see there is a method public function getMenu() which is the thing I need, but could you give an example how can I call v:page.menu with particular arguments passed with this "objectmanager->get()" in the content controller
  • 15:25:03 <BenjaminR> batjony - no i am sorry - not right now
  • 15:25:32 <BenjaminR> but google should give you enough hints how to get a object with objectmanager
  • 15:25:34 <BenjaminR> and then its just a question of $pageViewHelper->getMenu()
  • 15:26:04 <batjony> ok 10x
  • 15:51:56 <batjony> BenjaminR: do you have any idea why $vhsPageMenu = $this->objectManager->get('FluidTYPO3\Vhs\ViewHelpers\Page\Menu\MenuViewHelper'); throws error "Could not analyse class:FluidTYPO3\Vhs\ViewHelpers\Page\Menu\MenuViewHelper maybe not loaded or no autoloader?"
  • 15:52:07 <batjony> also tried with \\ without success
  • 15:54:55 <Guest|42262> hi guys. i probably found a little bug concerning fluid templates mixed with gridelements while move and copy
  • 15:55:20 <Guest|42262> \typo3conf\ext\flux\Classes\Service\ContentService.php
  • 15:55:25 <batjony> does not matter, found it, the class name was wrong
  • 15:55:37 <mrboe> grid - whaaaat? ;)
  • 15:55:38 <Guest|42262> line 151
  • 15:55:49 <Guest|42262> $row['colPos'] = $colPos;
  • 15:56:02 <Guest|42262> should be aware of colpos -1
  • 15:56:19 <Guest|42262> if($row['colPos']!=-1) {
  • 15:56:19 <Guest|42262> $row['colPos'] = $colPos;
  • 15:56:19 <Guest|42262> }
  • 15:56:41 <mrboe> @Guest|42262 please report bugs here https://github.com/FluidTYPO3/flux
  • 15:56:48 <Guest|42262> ok
  • 15:57:04 <xaver> i think this isn't new
  • 15:58:08 <BenjaminR> because it is FluidTYPO3\Vhs\ViewHelpers\Page\MenuViewHelper
  • 15:58:16 <BenjaminR> bajony
  • 15:58:18 <BenjaminR> batjony
  • 15:58:53 <batjony> ya :) 10x, found it
  • 15:59:15 <BenjaminR> :)
  • 15:59:30 <BenjaminR> tell me if it works in the controller - its nice to know
  • 16:00:12 <xaver> Guest|42262: please confirm this first with current cde
  • 16:10:27 <Torsten85> Hey, there I've exactly this issue here https://github.com/FluidTYPO3/flux/issues/498 ... what am I missing?
  • 16:10:29 <randomresult> hey
  • 16:11:05 <randomresult> is there a way to allow only certain FCEs to a user
  • 16:16:45 <BenjaminR> not, not that i know
  • 16:16:55 <BenjaminR> hi btw :)
  • 16:21:42 <randomresult> hi BenjaminR
  • 16:21:52 <randomresult> i thought there was a discussion about that
  • 16:21:59 <randomresult> do we see each other in munich?
  • 16:22:44 <BenjaminR> maybe i missed it - could be possible - i know that it is possible to define which fces can be placed in a content area
  • 16:22:57 <BenjaminR> randomresult: dont think so - very busy the next 10 days
  • 16:34:50 <randomresult> :(
  • 16:34:58 <randomresult> come on BenjaminR would be fun.
  • 19:29:00 <ltrebing> I’m still somewhat confused about how EXT:fluidcontent_core configures frontend rendering
  • 19:31:27 <ltrebing> its static TS sets tt_content.list to a basically empty COA, but if when it is included via the static include thingy (as opposed to INCLUDE_TYPOSCRIPT), it looks much more complete
  • 19:31:56 <ltrebing> and I can’t seem to locate the magic that is responsible for this difference