IRC logs

20140324

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

IRC log range: 20140324*

20140324

  • 09:25:23 <MindSpark> amaza20
  • 09:34:35 <misiak> hi, i have one question again :) can i render content elements (just bodytext) in BE which i get from flux:flexform.field.select as comma separated uids? I can change it to array now, but cannot render them in BE. Thnx
  • 10:08:57 <misiak> I meant classic via classic Page mode on page content.
  • 10:35:52 <limboo> good morning
  • 11:08:10 <twirsing> hello, i experience a problem when copying and pasting content element within flux:content elements. The copied item is alway on top no matter where I paste it. Is this a known bug?
  • 11:11:16 <twirsing> the problem occurs under flux 7.0.0, fluidcontent 4.0.0 and both t3 6.1.8dev and t3 6.02rc1
  • 11:17:44 <randomresult> @NamelessCoder u there?
  • 11:50:00 <limboo> hi there
  • 11:50:09 <limboo> is there a way to crop remote images?
  • 11:50:10 <randomresult> hi limboo
  • 11:50:23 <limboo> i mean, to use f:image with an external image?
  • 11:50:23 <randomresult> imagemagick?
  • 12:53:21 <misiak> Hi, any idea how to display bodytext from content element (tt_content) on page in backend via standard Page module, in fedext FCE, by comma list of uids or array? Thnx.
  • 12:55:22 <NamelessCoder> {v:content.get(contentElementUids: '123') -> v:iterator.extract(key: 'bodytext') -> v:iterator.first()}
  • 13:08:22 <misiak> hm interesting syntax
  • 13:08:42 <misiak> is it the same as:
  • 13:08:44 <misiak> <v:iterator.explode content="{weekmenu}" glue="," as="contentElements">
  • 13:08:45 <misiak> <v:content.get column="bodytext" contentUids="{contentElements}" />
  • 13:08:47 <misiak> </v:iterator.explode>
  • 13:08:48 <misiak> ?
  • 13:12:32 <NamelessCoder> no, that's not the same
  • 13:12:37 <NamelessCoder> yoru example would add whitespace
  • 13:12:47 <misiak> because ur code return 'Argument "contentElementUids" was not registered'
  • 13:13:07 <NamelessCoder> and you misuse the "column" attribute (it contains an integer value which is the colPos)
  • 13:13:34 <NamelessCoder> https://fedext.net/viewhelpers/vhs/master/Content/GetViewHelper.html (name of arg is contentUids)
  • 13:14:26 <NamelessCoder> {v:content.get(contentUids: {0: 123}) -> v:iterator.extract(key: 'bodytext') -> v:iterator.first()} is probably better
  • 13:14:32 <NamelessCoder> I don't use these too often
  • 13:20:13 <misiak> hm did this:
  • 13:20:28 <misiak> <v:iterator.explode content="{weekmenu}" glue="," as="contentElements">
  • 13:20:30 <misiak> <f:debug>{v:content.get(contentUids: contentElements,)->v:iterator.extract(key: 'bodytext')->v:iterator.first()}</f:debug>
  • 13:20:31 <misiak> </v:iterator.explode>
  • 13:20:36 <misiak> it returns NULL
  • 13:21:28 <misiak> <f:debug>{contentElements}</f:debug> returns array(1 item) 0 => '63' (2 chars)
  • 13:23:01 <NamelessCoder> {v:content.get(contentUids: contentElements)->v:iterator.extract(key: 'bodytext')->v:iterator.first()}
  • 13:24:20 <misiak> yeah sorry... but also NULL
  • 13:24:46 <misiak> it should work in BE ?
  • 13:27:41 <NamelessCoder> content getting is for FE only, but you should be able to use the field values.
  • 13:28:52 <misiak> yeah i get the field values...but i have: <flux:flexform.field.select name="weekmenu" label="PONUKA" size="15" table="tt_content" condition="AND tt_content.pid=13" maxItems="3" minItems="1" />
  • 13:29:17 <misiak> so it returns only comma separated list of uids :)
  • 13:29:54 <NamelessCoder> but why are you then attempting to access the value in BE?
  • 13:33:06 <misiak> I want to display to my customer text which he selected when he click on page...so he dont need to go edit FCE to display it.
  • 13:34:03 <NamelessCoder> so this is in the Preview section, right?
  • 13:34:13 <misiak> yeah
  • 13:35:42 <misiak> And this solutions is for selecting content elements stored in different sysfolder, inside FCE.
  • 13:38:33 <NamelessCoder> the problem is that content.get will use TSFE for selecting content so it won't work in BE
  • 13:38:50 <NamelessCoder> there are two ways you could do this:
  • 13:39:08 <NamelessCoder> 1) Create a ViewHelper of your own, add your own namespace and use that ViewHelper which then manually selects the DB record you need.
  • 13:39:29 <misiak> aaah of course.
  • 13:39:34 <NamelessCoder> 2) Override Fluidcontent's Provider with one you create and make it aware of your element type to insert custom variables as needed
  • 13:39:45 <NamelessCoder> the first is by FAR the easiest and most compatible
  • 13:40:03 <misiak> yeah i think so...i ll try the number 1)
  • 13:40:05 <NamelessCoder> the second one allows you to take control over many more things than just the variables
  • 13:40:19 <misiak> Ok, thank u!
  • 13:40:20 <NamelessCoder> here's the catch re: your viewhelper:
  • 13:40:31 <randomresult> @NamelessCoder i changed the namespaces in the ext to FluidBT - hope this is ok like this. we are now checking all elements again... some of the old ones need to be rewritten...
  • 13:40:31 <NamelessCoder> never, ever, ever use something like that in the frontend
  • 13:41:14 <NamelessCoder> viewhelpers which make SQL queries are dangerous and you should simply make an "if ('FE' === TYPO3_MODE) { return ''; } start of your render() methond in viewhelper
  • 13:41:38 <NamelessCoder> randomresult sounds reasonable :)
  • 13:42:13 <misiak> ok, thnx
  • 13:47:05 <randomresult> ok. then we will continue to work on that ...
  • 13:47:09 <randomresult> still a lot to do.
  • 13:47:24 <randomresult> what about flux etc.? will there be a release tomorow?
  • 13:51:36 <twirsing> i experience a problem when copying and pasting content element within flux:content elements. The copied item is alway on top no matter where I paste it. Is this a known bug?
  • 13:52:13 <NamelessCoder> yep, release tomorrow
  • 13:52:29 <NamelessCoder> twirsing if you're in a workspace: yes, known limitation.
  • 13:53:07 <twirsing> it works fine within a fuidpage content erea
  • 13:53:52 <twirsing> no, i am not working with workspaces in this case
  • 13:54:17 <randomresult> so @NamelessCoder which branch to test for now?
  • 13:55:31 <randomresult> anyway, i need to leave for now. see u all later :)
  • 13:58:26 <NamelessCoder> randomresult branch:development, definitely
  • 13:58:37 <NamelessCoder> we have not enough time for proper staging/beta
  • 13:59:14 <randomresult> ok. im on dev
  • 13:59:21 <randomresult> will pull again
  • 13:59:32 <randomresult> maybe i find the time to report. :)
  • 15:20:03 <Romanko> Hi, I just built an provider extension using builder extension (in shell) and in typo3 BE (6.1.7) edit page properties get an error: EXT:wx_templates/Resources/Private/TemplatesPage/
  • 15:20:46 <Romanko> so its looking for templates in non existing folder /Private/TemplatesPage/, there is a missing slash, any hints?
  • 15:51:38 <Denyerek> Hey guys
  • 16:47:49 <Guestdude> cheers, guys
  • 16:48:01 <Guestdude> anybody present?
  • 19:01:32 <mrboe> NamelessCoder: do u have a minute
  • 19:21:47 <mneuhaus> cedricziel: yet, mabye you know about flll as well?
  • 19:21:54 <mneuhaus> does it work in 6.2?
  • 19:22:03 <mneuhaus> seems to do nothing for me
  • 20:32:43 <randomresult> hi there
  • 20:36:36 <randomresult> i changed a pagetemplate to take another layoutfile. from layout "Page" to "SideBar" - then i changed the name of the layout-file to SideBar as well... still this template uses Page as Layout...
  • 20:36:38 <randomresult> why?
  • 20:36:54 <randomresult> damn. im a bloody rookie
  • 20:43:48 <randomresult> i dont get it.