IRC logs

20140514

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

IRC log range: 20140514*

20140514

  • 08:53:33 <ubrog> Good morning everyone. Is anyone here or is it the wrong time of day?
  • 08:54:55 <soee> some
  • 08:55:57 <ubrog> I'm trying to update a template to flux 7.0 and I have some problems. The template uses flux:flexform.field.group and that doesn't seem to exist in 7.0
  • 08:57:23 <ubrog> I'm not sure what I should use instead in the new version
  • 08:58:25 <Denyerec> lo ubrog
  • 08:58:38 <Denyerec> form.field.group
  • 09:03:33 <Denyerec> ubrog : http://fluidtypo3.org/documentation/templating-manual/appendix/migration/from-flux-6x.html
  • 09:07:10 <ubrog> Ah ok, I've read that page. But specifically form.field.group is not listed
  • 09:08:41 <ubrog> And also not in the documentation. I think it maybe doesn't exist anymore?
  • 09:09:26 <ubrog> But I was confused because the documentation doesn't list anything for flux:form for version 7.0, but I've just seen that the docs for master are ok
  • 09:12:08 <Denyerec> ahh
  • 09:13:04 <Denyerec> I think it's just form.group now ?
  • 09:13:29 <Denyerec> Ack I'm looking at an old version here
  • 09:13:37 <Denyerec> http://fluidtypo3.org/viewhelpers/flux/master/Form/ContainerViewHelper.html ?
  • 09:21:43 <ubrog> that one was flexform.container before, doesn't seem to be the same thing
  • 09:22:48 <ubrog> But I'm looking through the list of helpers now to find an alternative to flexform.field.group. I think I'll just have to convert that to something else.
  • 09:23:07 <Denyerec> What was group actually doing ?
  • 09:26:32 <ubrog> The same as flexform groups
  • 09:26:48 <Denyerec> Never used 'em :/
  • 09:27:14 <ubrog> For example to allow selection of a page, or an image
  • 09:28:05 <ubrog> In the news plugin, to select the page to display the single view for example
  • 09:28:24 <ubrog> But you can specify if you want files, pages or whatever relation
  • 09:29:43 <ubrog> I think that's the closest alternative: http://fluidtypo3.org/viewhelpers/flux/master/Field/RelationViewHelper.html
  • 09:31:19 <ubrog> Or maybe Tree, but I don't fully understand it from the docs, I'll have to try them
  • 09:37:00 <bjo3rn> ubrog flux:field.relation is what you are looking for.
  • 09:39:34 <ubrog> ok, thanks. That's the one I'm looking at now
  • 09:40:11 <ubrog> I think it should be fine
  • 09:40:45 <bjo3rn> it's actually a 1:1 replacement of group
  • 09:40:50 <bjo3rn> *for
  • 09:41:36 <bjo3rn> tree renders such a field as a, well, tree ^^
  • 09:41:47 <bjo3rn> which is nice for page selections
  • 09:43:18 <ubrog> But otherwise I think it does the same thing
  • 09:43:39 <bjo3rn> yep
  • 09:43:47 <ubrog> I'll try both, but if it works I'll use the tree. I want to be able to select pages after all and a page tree looks a lot nicer :-)
  • 09:44:51 <bjo3rn> it does, yes.
  • 09:45:58 <bjo3rn> here's a working setup:
  • 09:46:00 <bjo3rn> <flux:field.tree name="teaserPages" table="pages" parentField="pid" expandAll="1" multiple="1" minItems="1" maxItems="99" foreignLabel="title" size="10"/>
  • 09:50:00 <ubrog> thanks! It's looks very nice, displays the page tree inline
  • 10:31:11 <jlumpe> o>
  • 10:39:01 <Denyerec> Are tehre any known bugs with creating new CE's and seeing duplicates?
  • 10:44:46 <jlumpe> how can i register a controller in an extension, when it's not used in a plugin? I always get "class is not a registered object"
  • 10:51:08 <cedricziel> how do you plan to use it?
  • 10:51:41 <jlumpe> as a signal processor
  • 10:52:06 <cedricziel> that's no controller, that's just a stupid little class :)
  • 10:52:08 <jlumpe> yeah
  • 10:52:11 <jlumpe> of course it is :D
  • 10:52:18 <jlumpe> not a controller in the controller sense
  • 10:52:24 <jlumpe> still, i have to load it
  • 10:52:33 <jlumpe> It can also be loaded under classes/helper/
  • 10:52:37 <jlumpe> *located
  • 10:52:46 <jlumpe> or Classes/Whatever
  • 10:52:47 <cedricziel> right
  • 10:52:52 <jlumpe> But it still needs to be loaded :)
  • 10:53:06 <jlumpe> if i only pass the namespace to the signalslotdispatcher it doesn't work
  • 10:53:16 <cedricziel> dunno :)
  • 10:53:35 <jlumpe> aargh :/
  • 10:54:02 <cedricziel> jlumpe: did you ask the same thin on #typo3 ?
  • 10:54:28 <jlumpe> not yet
  • 10:54:30 <jlumpe> will do :)
  • 11:02:19 <jlumpe> cedricziel: works now :D
  • 11:02:24 <jlumpe> (silly, silly silly me
  • 11:02:25 <jlumpe> )
  • 11:06:29 <xaver__> hi
  • 11:08:30 <xaver__> i have a TCA field with link wizard and need a link in FE. My problem is the link is somewhere in v:format.json.encode in fluid. I need to create a <a-tag> before. or is where any nice way todo it in js
  • 11:11:07 <ubrog> Denyerec: I just had a duplication of content elements after an Upgrade von TYPO3 6.1 to 6.2 and Flux to 7.0
  • 11:11:20 <Denyerec> Did it cnotinue or was it just one time ?
  • 11:11:37 <ubrog> They were inside a container and after the update they displayed twice, once inside the container and once outside
  • 11:11:52 <ubrog> It continued. Not sure what's wrong yet
  • 11:12:51 <ubrog> But I had some upgrade troubles with flux in that installation and i did the upgrade manually
  • 11:13:26 <ubrog> I'm repeating the upgrade using the Extension manager now and I was hoping the problem will be gone then
  • 11:13:39 <ubrog> did you have the same problem?
  • 11:18:04 <xaver__> ubrog: 2 things for a upgrade. before you do the compare which drops a index you need to start the flux 7 update script. Second thing is to update the tempaltes afterwards
  • 11:20:59 <ubrog> It starts the update script if I upgrade from the extension manager, right?
  • 11:49:24 <jlumpe> cedricziel: happen to know how i can access teh current request in a signal handler?
  • 11:49:39 <jlumpe> it's s protected property of the controller, and there doesn't seem to be a method like getRequest()
  • 11:52:30 <jlumpe> nevermind, found it
  • 11:52:30 <jlumpe> if anybody wants to know: $controller->getControllerContext()->getResponse()
  • 11:54:08 <Denyerec> Any of you guy use tx_news ?
  • 11:54:15 <Denyerec> I can't figure out how the images work...
  • 11:54:23 <Denyerec> I've added a media file as a "relation" and it shows in the detail view
  • 11:54:32 <Denyerec> But it doesn't show up in the list view - all I get are the placeholders.
  • 11:55:43 <soee> woot ? :)
  • 11:56:14 <soee> what placeholders ?
  • 11:56:52 <ubrog> Denyerec: There's a checkbox "Show in preview views" for each image, is it selected?
  • 11:57:02 <Denyerec> Ahh so that's what that means!
  • 11:57:13 <Denyerec> "Preview view" I thought was a BE option.
  • 11:57:17 <Denyerec> Moment!
  • 11:58:44 <Denyerec> Hmp.
  • 11:58:55 <Denyerec> On my dewv site I'm getting this after 6.2.3dev update : 'Could not acquire lock for ClassLoader cache creation.'
  • 11:59:33 * Denyerec flushes and reloads
  • 12:01:11 <jlumpe> why are you using 6.2.3 ? :)
  • 12:13:17 <Denyerec> tx_news has a dependency due to a security issue
  • 12:13:32 <Denyerec> I thought I'd throw caution to the wind and just run on master until the security release.
  • 12:16:22 <ubrog> I'm still trying to update flux to 7.0. It doesn't work at all. Do I have to run that update script manually somehow?
  • 12:18:35 <Denyerec> Realy depends on the level of "doesn;t work"
  • 12:18:43 <Denyerec> If you're getting viewhelper errors it's because you're still using some of the old names.
  • 12:18:55 <Denyerec> If you've got something else... make peace in whatever Gods you believe ;)
  • 12:19:27 <ubrog> You're right. Doesn't work in my case means Extension Manager doesn't budge when I try to update
  • 12:19:38 <ubrog> No error message, but also no update done
  • 12:19:48 <ubrog> it worked for other extensions though
  • 12:21:54 <Denyerec> Did you install it originally from git ?
  • 12:22:16 <Denyerec> My ignorant guess is there might be a version confict it can't resolve in the expexted versions.
  • 12:22:31 <Denyerec> Perhaps try deleting the ext from typo3conf/ and re-installing from a freshly updated TER ?
  • 12:23:42 <ubrog> I tried reinstalling, but there is so much talk about an "update script" that I can't locate. That's why I try to do a proper update
  • 12:33:58 <Denyerec> I think the script simply searches your templates to updated any old VH references
  • 12:34:28 <mrboe> hey guys - i have a older typo3 install with tt_news (multipage)
  • 12:35:55 <mrboe> and i dont want to sow only the news cat of the root page (not globaly)
  • 12:36:01 <mrboe> how can i do that
  • 12:36:35 <Denyerec> I don't understand the question.
  • 12:36:46 <mrboe> i have 2 root pages
  • 12:36:48 <Denyerec> Don't want to show only the news cat of the root page , not globally ?
  • 12:37:24 <mrboe> in rootpage one there is a cat "sports" on rootpage tow there is a cat "training"
  • 12:37:48 <mrboe> both cats can be sleceted in the news cat
  • 12:38:22 <mrboe> but i want to restirct that only the cats of an special folder is selectable
  • 12:40:21 <Denyerec> Ah.
  • 12:40:23 <Denyerec> No idea :/
  • 12:42:43 <Denyerec> jlumpe - you there?
  • 12:44:10 <ubrog> mrboe: Did you select a "general record storage page"? I think it only displays categories from that page, but I'm not sure
  • 12:44:37 <Denyerec> Hmm. I've got a teaser menu FCE that I put together
  • 12:44:45 <Denyerec> but it just teases the pages below the current page
  • 12:45:02 <Denyerec> What would be the most elegant way via flux to allow the user to chose the starting point ?
  • 12:45:14 <cbleicker> as far as i remember there was a setting wich allows linking over different pagetrees?
  • 12:45:16 <Denyerec> in the FCE it uses this right now : <v:page.menu entryLevel="1" levels="-1">
  • 12:45:38 <cbleicker> but its just a hint. maybe i am totaly wrong with this idea :)
  • 12:45:40 <BenjaminR> Denyerec: the starting point for what?
  • 12:45:47 <Denyerec> Where it teases from
  • 12:46:03 <Denyerec> https://gist.github.com/Denyerec/edc1c0e6495eed3788ba
  • 12:46:07 <Denyerec> That's the current FCE
  • 12:46:11 <BenjaminR> hm maybe i lack of chat history ^^
  • 12:46:20 <Denyerec> I'd like to add a field where you can "Tease pages from below here:"
  • 12:46:27 <mrboe> @ubrog thanks for the hint - this sould be the right way
  • 12:46:32 <Denyerec> And if that's set, use that as the root to pull the teased pages from.
  • 12:48:51 <BenjaminR> What else you need than a flux field with page tree selector wizard
  • 12:49:06 <BenjaminR> or maybe suggest
  • 12:49:31 <Denyerec> Does that flux field include the little search box ?
  • 12:49:46 <Denyerec> Once i have that , the trick is getting the page ID to work with the menu.
  • 12:49:55 <Denyerec> I don't quite know how to use that variable
  • 12:50:02 <Denyerec> as right now the menu is just working relative to the current page.
  • 12:50:08 <BenjaminR> just add pageUid="{yourfluxfield}" to menu vh?
  • 12:50:40 <BenjaminR> <flux:flexform.field.wizard.suggest table="pages"/> btw
  • 12:50:56 <Denyerec> Oh... simple as that ?
  • 12:51:01 * Denyerec shakes head
  • 12:51:04 <BenjaminR> inside a select or group field
  • 12:51:15 <Denyerec> Was prepping myself for a fight :)
  • 12:51:22 <BenjaminR> ^^
  • 12:51:23 <Denyerec> select / group ?
  • 12:51:26 <BenjaminR> i am sorry - no fight today
  • 12:51:30 <Denyerec> ubrog just had a ballsup with group
  • 12:51:40 <BenjaminR> the wizard has to be child of a select flux field
  • 12:51:55 <Denyerec> ah right.
  • 12:53:58 <Denyerec> arguemernt "items" not supplied
  • 12:54:07 <Denyerec> in this instance BenjaminR what should my items be?
  • 12:54:18 <Denyerec> I've got the wizard nested inside the field:select
  • 12:56:55 <BenjaminR> flux:field.select tables="pages" multiple="TRUE" size="10" ...
  • 12:59:06 <Denyerec> Fluidtypo3 / Fluz needs far more examples :)
  • 12:59:15 <Denyerec> Sometimes the docs don't really help someone realise what's possible
  • 12:59:24 <BenjaminR> Put your head on and we have to create half of the examples :P
  • 12:59:57 <BenjaminR> eerything i told you right now was avaiable through a 10 sec google search :)
  • 13:00:16 <Denyerec> Then you and I are typing in some very different things :(
  • 13:00:25 <Denyerec> I'm trying field.tree and being told I need to set parentField
  • 13:00:30 <Denyerec> but nothing suggests what this should be.
  • 13:00:32 <Denyerec> The docs say:
  • 13:00:40 <Denyerec> Field containing UID of parent record
  • 13:00:44 <Denyerec> Which is about as much use as a back pocket on a shirt.
  • 13:01:01 <BenjaminR> also remembering that flux at first just an interface of flexforms and so on works exactly as flexforms would - helps a lot
  • 13:01:12 <BenjaminR> most of your flexform knowledge can be ported to flux
  • 13:01:13 <BenjaminR> id say
  • 13:01:18 <Denyerec> I have never used flexforms
  • 13:01:23 <BenjaminR> ah ^^
  • 13:01:28 <BenjaminR> maybe thats the point :)
  • 13:02:23 <Denyerec> Yeah :/
  • 13:02:37 <Denyerec> Trying to find an example of 1) what field:tree looks like (So I know if it's the right thing) and 2) how to implement it.
  • 13:03:21 <ubrog> Do you have tx_news installed?
  • 13:03:36 <ubrog> The category selection looks like field.tree
  • 13:03:52 <ubrog> probably because it is :-)
  • 13:04:04 <Denyerec> I just want to pick a page from the pagetree
  • 13:04:14 <Denyerec> so perhaps I need foreign table = pages
  • 13:04:39 <BenjaminR> https://gist.github.com/benjaminrau/c39dc9d1a198a83fec54
  • 13:04:46 <ubrog> bjo3rn sent me that example: <flux:field.tree name="teaserPages" table="pages" parentField="pid" expandAll="1" multiple="1" minItems="1" maxItems="99" foreignLabel="title" size="10"/>
  • 13:04:48 <BenjaminR> smth like that - unverified :)
  • 13:04:50 <BenjaminR> Denyerec
  • 13:04:55 <ubrog> It displays the pages in a tree
  • 13:05:25 <ubrog> it works, I tested it. But I can't make a screenshot at the moment, I'm still trying to update
  • 13:06:04 <Denyerec> arguement table not registered...
  • 13:06:10 <Denyerec> I think I might be looking at an update...
  • 13:06:26 <cbleicker> question about grid templating in 6.2. as far as i know there is no core support for contentelements like gridrows or something like this. what do you use to make this possible? gridelements? or is this supported by some FluidTYPO3 extension? just trying to figure out the perfect extension list for my future typo3 development.
  • 13:07:22 <Denyerec> BenjaminR - the docs don't have a table field for fiel.select - something you know that we don't :)
  • 13:08:33 <BenjaminR> fuck! no... definitely not :D
  • 13:08:43 <BenjaminR> seems to been replaced with flux.field.relation
  • 13:08:46 <BenjaminR> :/
  • 13:09:03 <BenjaminR> awkward
  • 13:09:34 <Denyerec> Haha
  • 13:09:44 <Denyerec> It's OK, ubrog's thing works after a fashion
  • 13:10:00 <Denyerec> but I can't seem to get the suggest to tick the record in field.tree
  • 13:13:15 <BenjaminR> dont know if these work together
  • 13:13:28 <BenjaminR> you cant put it inside any other vh
  • 13:13:29 <BenjaminR> :D
  • 13:13:31 <BenjaminR> *every
  • 13:14:36 <BenjaminR> btw Denyerec i use tx_news
  • 13:15:16 <Denyerec> I have tried 6.2.3-dev and HEAD from tx_news
  • 13:15:21 <Denyerec> and I get this on my dev site:
  • 13:15:30 <Denyerec> Could not find class definition for name "Tx_News_Domain_Model_MediaFileReference".
  • 13:15:36 <Denyerec> Oddly on my live site, it's fine :S
  • 13:16:44 <BenjaminR> Dont use TYPO3 6.2 - sorry
  • 13:16:50 <BenjaminR> and so not latest tx_news
  • 13:16:51 <Denyerec> Gnah.
  • 13:17:01 <Denyerec> Both sites are at same revision for news and typo3
  • 13:17:18 <Denyerec> Yet one works, the other does not :/
  • 13:32:19 <Denyerec> Can I test the type of something in f:if ?
  • 13:32:42 <Denyerec> <f:if condition="{somevar}" isTYpe="file, filereference" />
  • 13:32:46 <Denyerec> Like that pseudocode
  • 13:34:12 <BenjaminR> v:if.type.isInstanceOf?
  • 13:34:21 <Denyerec> See?
  • 13:34:27 <Denyerec> There's always something... :D
  • 13:34:28 <cbleicker> maybe by own viewhelper foo:getType(value:'{somevar}')?
  • 13:34:39 <BenjaminR> cbleicker: its all there :)
  • 13:34:43 <cbleicker> :)
  • 13:34:56 <BenjaminR> Denyered: just crawl vhs from time to time :)
  • 13:35:29 <Denyerec> hmm
  • 13:35:40 * Denyerec attempts something
  • 13:37:21 <BenjaminR> http://fluidtypo3.org/viewhelpers/vhs/master/If/Type/IsInstanceOfViewHelper.html
  • 13:41:20 <Denyerec> It's working (I think)
  • 13:41:28 <Denyerec> I can only test against one type
  • 13:41:31 <Denyerec> but I think that's OK in this setting.
  • 13:41:49 <Denyerec> Now I just need to "use my field if it's set", "use current page ID if not"
  • 13:42:22 <BenjaminR> <f:if condition="{customPageUid}"> ?!
  • 13:42:39 <Denyerec> <v:page.menu entryLevel="1" levels="-1" pageUid="{teaserPages}">
  • 13:42:50 <Denyerec> As in, I only want "pageUid" to be included if teaserPage is set.
  • 13:43:17 <Denyerec> OR, alternatively, I can use a temp var "thePage" and set it either to the current page ID, or teaserPages
  • 13:43:18 <BenjaminR> {custompageUid -> v:or(alternative: page.uid)}
  • 13:43:20 <Denyerec> if that makes sense
  • 13:43:45 <BenjaminR> credits to danilobuerger for v:or
  • 13:43:55 <Denyerec> Ok so that's the temp var approach.
  • 13:43:55 * Denyerec looks up v:or
  • 13:44:29 <BenjaminR> pageUid="{teaserPages -> v:or(alternative: page.uid)}">
  • 13:44:44 <Denyerec> That's oddly elegant
  • 13:45:10 <BenjaminR> when i give support in here i wonder all day what there is already :D
  • 13:45:20 <Denyerec> Hehehe
  • 13:45:32 <Denyerec> I don't understand from the docs how I'd use that in tag for,
  • 13:45:34 <Denyerec> *form
  • 13:45:42 <Denyerec> it's almost like there's something about the documentation layout I'm not getting :/
  • 13:45:44 <BenjaminR> we have an answer to everything (at least it feels like that) :D
  • 13:45:46 <Denyerec> As I have this problem a lot.
  • 13:45:58 <Denyerec> "Look at document, remain clueless"
  • 13:46:20 <Denyerec> Oh
  • 13:46:25 <Denyerec> No this time it's just me being stupid.
  • 13:47:38 <Denyerec> https://gist.github.com/Denyerec/014cc86cd04c1ee3c968
  • 13:47:45 <Denyerec> Ok BenjaminR - I'm trying to figure this out
  • 13:47:56 <Denyerec> as I understand it, if myVar is empty, "Banana" will be used.
  • 13:47:59 <Denyerec> But... used where.
  • 13:48:34 <BenjaminR> if you write v:or in inline syntax as i pointed out before you can use it whereever you want to use one var or as fallback another one
  • 13:49:00 <BenjaminR> pageUid="{teaserPages -> v:or(alternative: page.uid)}">
  • 13:49:11 <BenjaminR> will pass teaserPages to pageUid when set
  • 13:49:23 <BenjaminR> if not passes uid from global available page array
  • 13:49:59 <BenjaminR> same as: pageUid="{v:or(content: teaserPages, alternative: page.uid)}">
  • 13:50:19 <BenjaminR> you can pass content var by chaining always
  • 13:50:35 <Denyerec> Yes, I understand the inline syntax.
  • 13:50:35 <BenjaminR> not always but when renderChildren is used as fallback in vh
  • 13:50:43 <Denyerec> I was trying to mentally translate it into tag syntax as an exercise
  • 13:50:51 <Denyerec> As I often misunderstand the format of the documentation
  • 13:53:48 <BenjaminR> i am pretty sure v:or is used in inline syntax by 90%
  • 13:54:01 <Denyerec> Oh, I cna see why
  • 13:54:03 <BenjaminR> 100% :D
  • 13:54:13 <Denyerec> I was just trying to translate it as an exercise to see if I understood what was happening.
  • 13:54:47 <BenjaminR> (y)
  • 13:56:35 <BenjaminR> i will be away from the chat for a while. have to push forward some stuff :)
  • 13:57:36 <Denyerec> No worries BenjaminR, thankyou as always for your help.
  • 13:59:13 <Denyerec> ubrog you were using field.group earlier right ?
  • 14:07:40 <Denyerec> This is how it's done in Flexforms:
  • 14:07:40 <Denyerec> https://gist.github.com/Denyerec/c040a7d6ae9bf7fc2ae0
  • 14:09:56 <macro11> hello guys, is there a possibillity to access a datafield from the parent element? (fluidcontent) e.g. imputfield "width"
  • 14:11:25 <ubrog> yes I was using field.group in 6.x and now field.tree
  • 14:12:17 <ubrog> or actually it was flexform.field.group in 6.x I think
  • 14:16:35 <Denyerec> I just need a "startingpoint" control like from FlexForms
  • 14:16:41 <Denyerec> My Gist contains hat tx_news does :/
  • 14:16:58 <ubrog> yes that's exactly what it looks like in flexform
  • 14:18:25 <ubrog> if you need an overview: http://www.typo3-snippets.de/snippets/extension-programmierung/die-unterschiedlichen-arten-von-flexform-feldern.html
  • 14:21:10 <macro11> @ubrog: was the field.tree a answer to my question?
  • 14:21:47 <ubrog> macro11: no, related to Denyerecs field.group
  • 14:21:52 <Denyerec> ubrog - when I use field.tree I get a tree with checkboxes
  • 14:21:57 <Denyerec> I don't get the pagebrowser icon
  • 14:22:04 <Denyerec> and the suggest field doesn't work with field.tree
  • 14:22:05 <ubrog> macro11:I don't understand your questions completely
  • 14:22:25 <ubrog> The tree view is correct, that's what it does
  • 14:22:25 <Denyerec> So whilst field.tree *works*, it's not the same as the flexform approach
  • 14:22:33 <Denyerec> So it's inconsistent with the rest of the UI.
  • 14:23:07 <Denyerec> Here is field.tree: http://denyerec.co.uk/stuff/.screencaps/2014-05-14_13-22-55.png
  • 14:23:35 <ubrog> It is inconsistent, yes
  • 14:23:47 <Denyerec> Here's the startingpoint from flexform: http://denyerec.co.uk/stuff/.screencaps/2014-05-14_13-23-34.png
  • 14:24:32 <ubrog> the kind of UI that field.tree uses is used in other places too no, so I'm not sure what's better to use
  • 14:25:11 <ubrog> Did you look at field.related? I don't know how it renders, but it might be closer UI-wise
  • 14:25:15 <macro11> ubrog: my use case: i have a FCE with some columns, the width of these columns can differ. now i want to place a (responsive) image in the column. i have to configure the image for the maximum column size because i am not sure where it is placed. but i want to reduce the size of the image when it is a small column
  • 14:25:38 <Denyerec> Field.relation just renders a selectbox
  • 14:25:46 <Denyerec> Without a pagebrowser helper.
  • 14:25:58 <Denyerec> And worse, it just list all pages in the selectbox :?
  • 14:26:04 <ubrog> macro11: when you move it to a smaller column or when the column is displayed smalled due to responsiveness?
  • 14:26:31 <ubrog> well, that won't look too nice. In that case you're probably stuck with field.tree
  • 14:26:57 <ubrog> I have no idea why they removed the group field in the new version
  • 14:27:40 <ubrog> the same UI is also used for categories, so maybe the devs want to move away from the old UI element alltogether?
  • 14:27:57 <macro11> ubrog: forget about the responsive thing in this moment. i just want to reduce the output size to e.g. 250px because i know this column will never be broader than this.
  • 14:28:26 <macro11> ubrog: otherwise i have to output the image with e.g. 1024 px width to fit in all columns
  • 14:28:38 <macro11> without getting bad quality images
  • 14:29:15 <macro11> i could work with different image FCE or a dropdown to select the width, but i would like to do this automatically
  • 14:29:30 <macro11> if possible :)
  • 14:29:58 <Denyerec> ubrog - you ever used the width field? It doesn't seem to do anything for me on field.tree
  • 14:31:20 <ubrog> no, haven't tried width on field.tree
  • 14:31:46 <ubrog> macro11: you should be able to set the maximum width for your column in typoscript: styles.content.imgtext.maxW = 200
  • 14:34:22 <macro11> ubrog: i do not use a backend layout or something like this. i use a FCE to define the column style.. so the user can have different column layouts on one page
  • 14:34:59 <macro11> where flexible, but bringing some problems like this
  • 14:35:11 <macro11> very
  • 14:39:10 <ubrog> I don't know if there's an easy solution to this
  • 14:40:01 <ubrog> We have that in one of our templates, but the developer wrote a view helper that overrides typoscript values and sets the maxW
  • 14:42:09 <macro11> Thanks anyway!
  • 14:42:35 <ubrog> I can't really post the whole snippet right now because the template was done by another company
  • 14:42:53 <ubrog> And I don't understand it completely
  • 14:43:24 <ubrog> But what he does is before he renders the column in Fluid, he calls the view helper and sets the typoscript value
  • 14:43:25 <macro11> no problem, i'm not sure if i would understand it in this case ;)
  • 14:43:30 <Denyerec> Hmm.
  • 14:43:36 <ubrog> and he does that for every column
  • 14:43:37 <Denyerec> I'm getting a lot of grief today between dev and live
  • 14:43:42 <Denyerec> despite both being identical :
  • 14:44:11 <Denyerec> Oh, no, something definitely changed.
  • 14:44:23 <ubrog> I hope there is an easier way, it seems awfully complicated
  • 14:44:27 <Denyerec> ubrog how good are you with fal / media viewhelpers ?
  • 14:44:39 <ubrog> very not good :-D
  • 14:44:47 <Denyerec> Since updating to typo3 6.2.3 my media records don't seem to be playing nice.
  • 14:45:03 <Jeff_Tollwerk> Guys! Major problem with translations here. We're using danilobuerger's latest development-version of FLUX (https://github.com/hmspl/flux/tree/development). We have a FCE on language [ALL]. When we create a new FCE inside this FCE and translate it to a second language, the FCE does not know the parent-relation in the translation. Is there a way to
  • 14:45:04 <Jeff_Tollwerk> fix this?
  • 14:45:05 <Denyerec> Hre's my current code:
  • 14:45:06 <Denyerec> https://gist.github.com/Denyerec/2992d5ab719ef5eca08f
  • 14:45:59 <ubrog> I haven't done anything with fal so far. What's the problem with the code?
  • 14:47:57 <Denyerec> Well
  • 14:48:00 <Denyerec> It used to work
  • 14:48:01 <Denyerec> Now I get this
  • 14:48:08 <Denyerec> Uncaught TYPO3 Exception
  • 14:48:08 <Denyerec> #1382687163: Supplied file object type must be File or FileReference
  • 14:48:55 <Denyerec> if I debug {image} I get this:
  • 14:50:30 <Denyerec> http://codepaste.net/a5apg9
  • 14:54:13 <ubrog> Are you sure image.0.id is the right value for the identifier?
  • 14:55:10 <ubrog> because it says "either CSV, array or implementing Traversable" in the docs
  • 14:57:57 <ubrog> I don't really get how it's supposed to work, there's also image.0.identifier
  • 14:58:25 <Denyerec> I have NO clue what the difference is between id and uid, or what TreatIdAsReference does
  • 14:58:31 <Denyerec> or how I identify what datatypes I've got :/
  • 14:58:43 <Denyerec> I have permuted a bunch of stuff and now this is working :
  • 14:58:49 <Denyerec> <v:resource.image identifier="{image.0.id}" width="210c" height="70c" />
  • 14:59:23 <ubrog> Very strange
  • 14:59:50 <Denyerec> Yes
  • 14:59:57 <Denyerec> I wish I knew what was going on with those Fal records
  • 15:00:10 <Denyerec> it's really irritating to get a Type error, and have everything report as "Array" in Debug :/
  • 15:00:37 <Denyerec> I mean, I kinda understand why that is, but it's still confusing as hell :)
  • 15:01:34 <Denyerec> Do you have any idea how to use v:switch ?
  • 15:02:45 <ubrog> no, haven't used it
  • 15:03:29 <ubrog> The documentation is missing examples for that kind of stuff
  • 15:03:38 <ubrog> It would be a lot easier to figure out
  • 15:03:45 <Denyerec> Yeah no kidding
  • 15:03:52 * Denyerec greps
  • 15:04:30 <Denyerec> https://gist.github.com/Denyerec/95b5e981668b4f31071d
  • 15:04:42 <Denyerec> As usual, simple when you know how ;)
  • 15:06:23 <mrboe> @Denyerec here is a switchcase https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Content/ThreeColumn.html
  • 15:06:37 <Denyerec> mrboe I pasted the one from NavigationList too ;)
  • 15:07:30 <ubrog> nice!
  • 15:07:35 <ubrog> I have to take a break
  • 15:08:10 <ubrog> I'll be around sometime again
  • 15:12:02 <BenjaminR> Denyerec ubrog: youre very welcome to contribute on Documentation - we lack of time there
  • 15:12:43 <Denyerec> I can appreciate that 100% BenjaminR
  • 15:12:57 <Denyerec> But how can people who don't understand the documentation... write the documentation?
  • 15:12:58 <Denyerec> :)
  • 15:13:09 <Denyerec> It would be like asking a blind man to paint the house.
  • 15:13:16 <Denyerec> Sure he COULD do it... but would you really want him to? ;)
  • 15:13:25 * Denyerec is really enthusiastic with a paintbrush
  • 15:13:29 <BenjaminR> well i hope it takes you longer to understand BUT at some point you understand how to use without docs too :)
  • 15:13:40 <Denyerec> I'm slowly getting there.
  • 15:13:46 <Denyerec> My biggest obstacle at the moment is Type errors
  • 15:13:59 <BenjaminR> looking at the viewhelper source most times make you understand it
  • 15:14:01 <Denyerec> When you get a type exception, and I can't figure out what type I *have*
  • 15:14:11 <Denyerec> As debug just shows you things as arrays
  • 15:14:27 <Denyerec> I think if I could surmount that understanding gap I'd be in a much better place.
  • 15:14:29 <BenjaminR> hm Debug indeed tells you the time of an object
  • 15:14:39 <BenjaminR> *type
  • 15:15:29 <Denyerec> Yeah... "Array"
  • 15:15:47 <BenjaminR> hm so i dont get what you mean
  • 15:16:03 <Denyerec> Well in my FAL fauilure above
  • 15:16:10 <Denyerec> I was being told "requires file or fileReference"
  • 15:16:30 <Denyerec> and I guess I juist don't know what that is / how to find out if I've got one.
  • 15:16:56 <Denyerec> https://gist.github.com/Denyerec/2992d5ab719ef5eca08f
  • 15:17:23 <Denyerec> So here:
  • 15:17:23 <Denyerec> http://fluidtypo3.org/viewhelpers/vhs/master/Page/Resources/FalViewHelper.html
  • 15:17:37 <Denyerec> Doesn't state what type is returned. I got an array, so far, so good.
  • 15:17:48 <Denyerec> http://codepaste.net/a5apg9
  • 15:17:50 <Denyerec> ^ the array
  • 15:18:13 <Denyerec> Then when I try to use v:resource.image I'm now lost as to what to use as th eidentifier
  • 15:18:17 <Denyerec> (I permuted a bunch of things)
  • 15:18:29 <BenjaminR> v:page.resources.fal field="media" refers to the images you added in page properties? you know?
  • 15:18:38 <Denyerec> Yep.
  • 15:18:44 <Denyerec> That was the plan.
  • 15:19:02 <Denyerec> SO then I look up resource.image and is says this about Identifier : The FAL combined identifiers (either CSV, array or implementing Traversable).
  • 15:19:05 <BenjaminR> how you know their ids?
  • 15:19:30 <Denyerec> What do you mean ?
  • 15:19:45 <Denyerec> My intention is to render the first image that's set as page media.
  • 15:19:54 <Denyerec> I've got it working, I just don't know why it's workin.
  • 15:20:43 <Denyerec> So page.resources.fal returns an array of "stuff".
  • 15:20:49 <Denyerec> I take result.0
  • 15:21:00 <Denyerec> But I don't really know what result.0 *is*
  • 15:21:06 <BenjaminR> i am unfocused right now ...
  • 15:21:20 <Denyerec> Heh if that's the same as confused, join the club ;)
  • 15:21:53 <Denyerec> Or do you mean you don't understand what I'm asking ?
  • 15:23:03 <BenjaminR> i think i am doing to much things at the same time
  • 15:26:28 <Denyerec> That's OK
  • 15:26:36 <Denyerec> This is not a technical issue, it's working, I just want to understand more.
  • 15:26:43 <Denyerec> So I will harass you when you are not so busy
  • 15:26:46 <mrboe> @Denyerec Claus told us not to do the switchcase like you postet
  • 15:27:49 <mrboe> i think the rease was that eveything in there is loaded, if you but the cases into sections only the needed case is loaed
  • 15:28:03 <Denyerec> Uh oh.
  • 15:28:11 <Denyerec> I didn't see a case in your code tho
  • 15:28:11 <mrboe> but @randomresult knows it better - hope i dont tell some bullshit
  • 15:28:31 <mrboe> <f:render section="FE{settings.grid3.split -> v:format.case(case: 'settings.grid3.split')}"
  • 15:29:06 <Denyerec> oh I see
  • 15:29:16 <Denyerec> you create sections for each case
  • 15:29:20 <Denyerec> then render a dynamic section name
  • 15:29:27 <mrboe> yes
  • 15:29:38 <Denyerec> wait
  • 15:29:43 <Denyerec> You're talking about UPPER and lower case ?
  • 15:29:53 <Denyerec> format.case
  • 15:29:56 <Denyerec> ?
  • 15:32:59 <mrboe> one mom
  • 15:34:16 <Denyerec> it's OK i have to brb
  • 15:38:43 <jlumpe> whooo
  • 15:39:02 <jlumpe> the first step to get ajax submission with powermail 2 is done :)
  • 15:48:02 <mrboe> @Denyerec i dont know why claus hase write it like this
  • 15:48:15 <mrboe> just tesed that f:render section="BE{settings.grid3Split}" also works
  • 15:48:16 <Denyerec> My case is REALLY simple
  • 15:48:16 <FT3BOT> Welcome back Denyerec!
  • 15:48:19 <Denyerec> so I will keep it the same way for now,
  • 15:49:31 <mrboe> but its only working when you have an empty section with this naming <f:section name="BE">
  • 15:49:48 <mrboe> i think i had to write him
  • 15:50:11 <mrboe> to understand what hes doing
  • 15:52:14 <Denyerec> No value found for key "Tx_Vhs_ViewHelpers_SwitchViewHelper->switchCaseValue", thus the key cannot be removed.
  • 15:52:21 <Denyerec> Hmm.
  • 15:52:28 <Denyerec> I'm certain I set a "default" on my field.
  • 15:53:03 <Denyerec> Ah
  • 15:53:12 <Denyerec> I think I need to re-save all existing CE's that use it
  • 15:54:41 <Denyerec> Yep, that fixed it
  • 15:54:49 <Denyerec> (I had added a new field to an existing CE)
  • 15:55:54 <mrboe> @Denyerec here is a old version of the container https://gist.github.com/misterboe/723707156b1483dacc42
  • 15:56:14 <mrboe> with the v:switch version
  • 15:56:17 <Denyerec> Hmmm.
  • 15:56:33 <Denyerec> I can see if it's loading all the content before switching why in this case it is more optimal to use the sections
  • 15:56:39 <Denyerec> Fo rme, it's just toggling a single value
  • 15:56:43 <Denyerec> so I don't think it's critical ?
  • 15:58:18 <mrboe> you can check your templates with builder
  • 16:02:48 <Denyerec> How do I just pull the contents of the heading field ?
  • 16:02:55 <Denyerec> I think I disabled headers on FCE's globally
  • 16:03:00 <Denyerec> But I kinda need the heading on this one :S
  • 16:03:07 <Denyerec> page.header I wonder
  • 16:05:20 <Denyerec> Hmm, no its the fce heading I need
  • 16:05:42 <Denyerec> record.header!
  • 16:28:19 <BenjaminR> I LOVE OOP!!!
  • 16:31:29 <jlumpe> O_o
  • 16:33:29 <BenjaminR> :-X
  • 17:03:33 <Denyerec> LD
  • 17:03:37 <Denyerec> It's really nice outside
  • 17:03:41 <Denyerec> Nicest day of the year so far.
  • 17:32:21 <cedricziel> Denyerec: where is this happy place you're talking about?
  • 17:32:34 <Denyerec> uk
  • 17:32:45 <cedricziel> oh-didnt know that!
  • 17:34:02 <Denyerec> The weather is normally so crap that nice days really stand out ;)
  • 17:34:27 <cedricziel> ;)
  • 17:34:38 <cedricziel> where are you located over there?
  • 17:35:34 <Denyerec> Right in the middle
  • 17:36:14 <Denyerec> Its quite nice
  • 17:36:23 <Denyerec> about 80 minutes from London by train
  • 17:36:26 <Denyerec> If you can stomach the price :/
  • 17:36:44 <cedricziel> how much is the train?
  • 17:36:54 <Denyerec> ~ €100
  • 17:37:02 <Denyerec> If you travel on the same day.
  • 17:37:19 <Denyerec> If you book a week or so in advance and travel during non-commuter times you can get it for may be €30
  • 17:37:26 <Denyerec> (Hin und zuruck)
  • 17:37:46 <cedricziel> oh cool! Denyerec, are you related to Robin Hood?
  • 17:38:00 <Denyerec> Haha, possibly. Ghengis Khan too.
  • 17:38:06 <cedricziel> (looked at the map and couldnt resist ^^)
  • 17:38:07 <Denyerec> ;)
  • 17:38:26 <Denyerec> Aye , famous for Outlaws and Pork Pies ;)
  • 17:38:36 <cedricziel> :P
  • 17:39:46 <cedricziel> 30 bux for 4 hour train ride is something i would call cheap ^^
  • 17:41:59 <Denyerec> It's 80 minutes dude!
  • 17:42:17 <Denyerec> That's ... not 4 hours :)
  • 17:44:53 <cedricziel> google tells me 2 hours one direction ;)
  • 20:48:05 <moger> hey there... I'm trying to use <v:render.inline> within a fluid standalone view that sends an e-mail
  • 20:49:18 <moger> unfortunately that doesnt work, variables are not being processed
  • 20:50:01 <moger> is there any known limitation to the inline viewhelper or do i just need to initialize something in the standalone view?
  • 21:40:53 <benjamin_654> hi, i would like to execute the flux UnitTests, how do i do this?
  • 21:41:16 <benjamin_654> is it possible from inside my IDE (PhpStorm)?