IRC logs

20140418

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

IRC log range: 20140418*

20140418

  • 11:16:30 <Denyerec> NamelessCoder - I've got a box here with your name on it...
  • 11:16:43 <Denyerec> ... pmn me your address and I'll see that you have the box with your name on it ;)
  • 13:00:27 <alexander_dick> hi folks! I'm having some trouble with fluidcontent and sys_language_mode = content_fallback
  • 13:00:35 <alexander_dick> settings:
  • 13:00:49 <alexander_dick> config.[sys_language_mode] = content_fallback; 1,0
  • 13:00:49 <alexander_dick> config.sys_language_overlay = 1
  • 13:01:08 <alexander_dick> (without brackets of course)
  • 13:01:35 <alexander_dick> when I'm in english (default language german) only translated content is shown
  • 13:08:13 <alexander_dick> TYPO3 6.2.1
  • 13:09:19 <danilobuerger> is english uid 1 and german uid 0 ?
  • 13:11:37 <alexander_dick> yes
  • 13:14:22 <danilobuerger> this should just work for fluidcontent it might just be a configuration issue
  • 13:19:47 <alexander_dick> I don't know what else I could check
  • 13:21:59 <alexander_dick> at the moment it behaves like hideNonTranslated
  • 13:23:25 <gernot_h> hello! how can i add a class to <v:link.typolink configuration="{parameter: page.uid}" /> ?
  • 13:25:14 <danilobuerger> alexander_dick what view helper are you using to render the content?
  • 13:25:19 <gernot_h> vhs
  • 13:25:21 <alexander_dick> <v:link.typolink configuration="{parameter: page.uid, ATagParams: 'class="foo"'}" />
  • 13:26:23 <alexander_dick> I'm using <v:content.render column="0" /> for example
  • 13:28:28 <gernot_h> <v:link.typolink configuration="{parameter: 39, title: 'foo'}">foo</v:link.typolink>
  • 13:28:30 <gernot_h> is working
  • 13:29:05 <gernot_h> but <v:link.typolink configuration="{parameter: page.uid, ATagParams: 'class="foo"'}"> foo</v:link.typolink>
  • 13:29:06 <gernot_h> no
  • 13:29:07 <gernot_h> t
  • 13:31:52 <alexander_dick> <v:link.typolink configuration="{parameter: page.uid, ATagParams: 'class=\"foo\"'}"> foo</v:link.typolink>
  • 13:32:16 <gernot_h> yes thank you!
  • 13:33:16 <danilobuerger> alexander_dick there might actually be something wrong when using content_fallback… https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Content/AbstractContentViewHelper.php#L139
  • 13:33:33 <danilobuerger> (line anchored where language code begins)
  • 13:34:11 <danilobuerger> https://github.com/FluidTYPO3/vhs/issues/436
  • 13:34:16 <danilobuerger> and there is the issue ;-)
  • 13:34:52 <danilobuerger> so if you want to tackle that its all yours
  • 13:36:37 <alexander_dick> :(
  • 13:37:10 <danilobuerger> why sad smiley?
  • 13:38:34 <alexander_dick> hideUntranslated would be my setting
  • 13:39:05 <danilobuerger> but apparently it doesnt work properly
  • 13:39:18 <alexander_dick> I'll check
  • 13:40:00 <alexander_dick> nope - no content ;)
  • 13:40:39 <alexander_dick> btw it would be nice if the default values were visible here: http://fluidtypo3.org/viewhelpers/vhs/master/Content/RenderViewHelper.html
  • 13:41:09 <danilobuerger> the whole code needs to incorporate "sys_language_content" from tsfe
  • 13:41:31 <danilobuerger> alexander_dick for that please file a feature issue on the website repos
  • 13:43:28 <alexander_dick> well the only solution for now is to translate the complete content
  • 13:43:36 <alexander_dick> OK I'll file an issue
  • 15:25:54 <Denyerec> having a little trouble with a column rendering FCE
  • 15:26:03 <Denyerec> It's not rendering the content in the columns...
  • 15:28:09 <Denyerec> Ah I think it was some old code from bootstrap using flexform. instead of form.
  • 15:28:35 <Denyerec> no :/
  • 15:29:07 <Denyerec> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi consectetur risus vel sapien lobortis, sit amet consectetur sem gravida. Integer consequat commodo est, nec fermentum libero. In ut lorem vel leo aliquet suscipit a eget lectus. Donec id eros vel lorem elementum commodo. Mauris a metus ornare, hendrerit lorem a, ultricies diam. Mauris non justo accumsan, mattis purus congue, faucibus
  • 15:29:07 <Denyerec> augue. Curabitur id feugiat mauris, vitae adipiscing mauris. Quisque imperdiet velit et feugiat scelerisque. Integer mattis sollicitudin laoreet. Nam lacinia imperdiet dui non semper. In hac habitasse platea dictumst. Cras rutrum mauris ipsum, in luctus mi tempor tempor. Nam ac neque sodales, pharetra ligula sed, vulputate massa. Integer in felis tristique, commodo magna eget, porta nulla.
  • 15:29:07 <Denyerec> Mauris mi tellus, fringilla id neque sed, elementum dictum urna. Phasellus ante magna, posuere sit amet lorem eget, euismod sollicitudin ante.
  • 15:29:07 <Denyerec> Cras vel rhoncus nisl, eget auctor nulla. In eget turpis vel purus dignissim accumsan. Sed a elit id sapien suscipit aliquet eget aliquet lacus. Mauris blandit scelerisque justo, in eleifend urna fermentum non. Etiam malesuada fringilla nisi et vehicula. Praesent euismod massa dignissim nunc ornare, sit amet porta neque vehicula. Fusce nisi tellus, viverra sed pulvinar ut, gravida id risus.
  • 15:29:08 <Denyerec> Suspendisse et eros elementum, interdum turpis pharetra, interdum ligula. Proin laoreet eu mi nec vehicula. Nunc euismod augue nunc. Nulla sagittis pharetra laoreet. Donec ornare nisl cursus tortor varius, et vehicula nunc lacinia. Nulla interdum molestie dolor eget pellentesque.
  • 15:29:10 <Denyerec> Shit
  • 15:29:11 <Denyerec> sorry
  • 15:30:04 <Denyerec> https://gist.github.com/Denyerec/83dbcee9e6d78d64adf4
  • 15:36:47 <Denyerec> randomresult ?
  • 15:39:21 <Denyerec> I've swapped the form.renderContent entries out for content.render
  • 15:39:26 <Denyerec> but I'm still not seeing any output :/
  • 15:39:31 <Denyerec> danilobuerger dont suppose you're around ?
  • 15:39:41 <danilobuerger> i am
  • 15:39:45 <danilobuerger> whats up?
  • 15:39:54 <Denyerec> Just trying to get some content area / column element magic going.
  • 15:40:04 <Denyerec> I've got as far as the marup appearing in the frontend, but the content does not.
  • 15:40:12 <Denyerec> It's in the above gist.
  • 15:40:17 <randomresult> take a look at fluidbootstraptheme... you ll find some grids.
  • 15:40:22 <randomresult> sorry, no time right now
  • 15:40:44 <Denyerec> that's where I stole the code from randomresult ;) But no worries, danilobuerger is awake :)
  • 15:41:12 <randomresult> form fluidbootstraptheme or fluicontent-bootstrap?
  • 15:41:17 <randomresult> first one should work
  • 15:42:52 <danilobuerger> flux:form.renderContent area="column1"/>
  • 15:42:59 <danilobuerger> you have no area named that way
  • 15:43:14 <NamelessCoder> flux:content.render
  • 15:57:05 <Denyerec> danilobuerger - should it be settings.grid2.column1 then ?
  • 15:57:16 <Denyerec> and should my areas even be named that way ?
  • 15:57:25 <Denyerec> NamelessCoder - I corrected for that already , forgot tupdate the gist
  • 15:57:48 <danilobuerger> try it
  • 15:58:26 <Denyerec> Doing so...
  • 15:58:41 <Denyerec> Still a bit confused by the settings. blah requirement and the general scoping.
  • 15:58:46 <Denyerec> It's kinda hazily there, but not concrete
  • 16:08:12 <Denyerec> soee - are you there?
  • 16:08:25 <Denyerec> You were working on a repeating section element the other day and I wondered if you could point me towards an example
  • 16:38:12 <Denyerec> I think it's something to do with sections/
  • 18:17:47 <Denyerec> hey randomresult
  • 18:17:58 <randomresult> hey Denyerec
  • 18:18:02 <randomresult> whatz up
  • 18:19:37 <Denyerec> Just trying to build an FCE for owl-carousel
  • 18:19:48 <Denyerec> Trying to make sense of the bootstrap flux setup
  • 18:23:33 <Denyerec> Trying to figure if "other content elements" can be generically included
  • 18:23:35 <Denyerec> but I think not
  • 18:26:30 <randomresult> damn it... extensionmanger in online web stays empty after update to 6.2.1 and flux 7.1
  • 18:26:32 <randomresult> hrmpf
  • 18:26:39 <randomresult> works local
  • 18:27:28 <Denyerec> randomresult do you know if there's a "page link" input type ?
  • 18:27:43 <Denyerec> I need an input that allows me to pick a page to link to so I can create hyperlinks in my FCE
  • 18:28:13 <Denyerec> i looked in the manual but couldn't see one immediately
  • 18:28:34 <Denyerec> ahhh
  • 18:28:39 <Denyerec> it's in wizard, not input
  • 18:28:45 <randomresult> jupp...
  • 18:30:59 <Denyerec> What's "slider" and "suggest" in the wizrds?
  • 18:32:24 <Denyerec> Also there's no name field for the wizard.link ...
  • 18:32:26 <Denyerec> How does that work then ?
  • 18:32:59 <Denyerec> ahh you use the wizard INSIDE a field
  • 18:33:04 <randomresult> jupp
  • 18:33:05 <Denyerec> hence the hideParentField optiong
  • 18:33:06 <Denyerec> Go tit
  • 18:33:20 <randomresult> look into the fluidbootstraptheme extension
  • 18:33:20 <Denyerec> Ohh I found the best wallpaper for you today Random
  • 18:33:25 <Denyerec> let me see if I can dig it back out
  • 18:34:50 <Denyerec> http://www.deviantart.com/art/WALLPAPER-RainbowSlide-135714192
  • 18:34:53 <Denyerec> :D
  • 18:35:10 <randomresult> clap your hands
  • 18:36:21 <Denyerec> If you're happy and you know it!
  • 18:39:47 <Denyerec> The docs could use soem visual examples :/
  • 18:42:56 <Denyerec> http://www.denyerec.co.uk/stuff/.screencaps/2014-04-18_17-42-42.png
  • 18:43:01 <Denyerec> randomresult, danilobuerger ?
  • 18:43:09 <randomresult> yessir!
  • 18:44:48 <Denyerek> https://gist.github.com/Denyerec/c3b8ffd522f4d29a9865
  • 18:44:54 <Denyerek> Just trying to niceify the BE preview
  • 18:44:59 <Denyerek> there are no thuymbnails :(
  • 18:45:13 <Denyerec> Makes it real tough for the editors :/
  • 18:45:31 <randomresult> isnt than an option ?
  • 18:45:49 <Denyerec> Trying to finf it
  • 18:46:11 <Denyerec> ah yes on the fiel input it is
  • 18:46:15 <Denyerec> how about in the element list ?
  • 18:46:25 <randomresult> simpleresponsive image in fluidbootstraptheme
  • 18:46:44 <Denyerec> not fluidcontent_bootstrap ?
  • 18:46:58 <Denyerek> Got the url to the git repo?
  • 18:47:01 <Denyerek> I'll check it out now
  • 18:47:25 <randomresult> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/master/Resources/Private/Templates/Content/SimpleResponsiveImage.html#L15
  • 18:47:50 <randomresult> showThumbnails = 1
  • 18:48:40 <Denyerek> I got that one.
  • 18:48:44 <Denyerek> It was the element list I'm now stuck on
  • 18:49:14 <Denyerec> http://www.denyerec.co.uk/stuff/.screencaps/2014-04-18_17-42-42.png
  • 18:49:23 <Denyerec> See where it says No block style / No text style / Default font /....
  • 18:49:28 <Denyerec> That's no use to an editor :/
  • 18:49:45 <Denyerek> <flux:form.content name="{elementData.id}" label="Content: {elementData.id}" />
  • 18:49:49 <Denyerek> I presume it's coming from here
  • 18:49:52 <Denyerek> :/
  • 18:50:09 <Denyerek> https://gist.github.com/Denyerec/c3b8ffd522f4d29a9865#file-gistfile1-phtml-L22
  • 18:52:50 <randomresult> sry. cant help right now. need to fix my install
  • 18:56:07 <Denyerec> NamelessCoder ?
  • 18:56:36 <randomresult> OH... NamelessCoder is not here when i am. :)
  • 18:56:54 <randomresult> hehe. i bet he will come when i leave
  • 18:56:58 <randomresult> just a sec.
  • 19:19:07 * Denyerec fires up the poke-o-matic
  • 19:19:11 * Denyerec pokes danilobuerger
  • 19:19:22 <danilobuerger> no time
  • 19:20:06 <Denyerec> Just need to know if something's possible :/
  • 19:20:17 <danilobuerger> everything is possible
  • 19:20:32 <Denyerec> http://www.denyerec.co.uk/stuff/.screencaps/2014-04-18_17-42-42.png
  • 19:20:40 <Denyerec> See where it says No block style / No text style / Default font /.... Can I get thumbnails in there?
  • 19:20:44 <danilobuerger> no idea
  • 19:20:48 <Denyerec> heh :)
  • 19:20:54 <Denyerec> Fair enough, I shall await The Claus.
  • 19:21:11 * Denyerec wonders if benjaminr knows
  • 19:27:53 <Denyerec> It's got something to do with PreviewViewHelper
  • 19:28:01 <Denyerec> This seems related: https://github.com/FluidTYPO3/flux/issues/411
  • 19:42:38 * Denyerec tickles cedricziel
  • 19:45:12 <Denyerec> bjo3rn maybe ?
  • 19:45:18 <Denyerec> perhaps mrboe
  • 20:03:46 <Denyerec> Right
  • 20:03:50 <Denyerec> 4 hours
  • 20:03:53 <Denyerec> And no progress.
  • 20:04:02 <Denyerec> What a bloody useless afternoon :/
  • 20:04:19 <Denyerec> If there's any documentation for this NamelessCoder you hid it pretty bloody well :/
  • 20:10:11 <randomresult> hey
  • 20:10:18 <randomresult> no sucess Denyerec ?
  • 20:10:23 <Denyerec> None.
  • 20:10:43 <Denyerec> lemme paste you what I have
  • 20:11:32 <Denyerek> https://gist.github.com/Denyerec/a8d7b20ba937dc5849ca
  • 20:11:46 <Denyerec> Line 30
  • 20:11:47 <Denyerec> :/
  • 20:11:56 <Denyerec> Fatal error: Call to a member function getImgResource() on a non-objec
  • 20:12:02 <Denyerec> is what I ge tin the BE now.
  • 20:13:47 <Denyerec> I'm just trying to get the sections to display something not shit.
  • 20:13:54 <Denyerec> But the only preview I can seemingly get is, well, shit.
  • 20:14:07 <Denyerec> Then I got sidetracked by the grid preview
  • 20:14:15 <Denyerec> Which isn't even the preview I should be fixing!!
  • 20:15:23 <Denyerec> elementData.file is a string, bte.
  • 20:15:25 <Denyerec> *btw
  • 20:17:41 <randomresult> did you try not to work with a section?
  • 20:19:31 <randomresult> so its all about the backend right? not frontend
  • 20:20:21 <Denyerec> Yeah backend
  • 20:20:30 <Denyerec> I am trying to gt the sections to work and I have two issues.
  • 20:20:52 <Denyerec> I want image thumbnails in both priews
  • 20:20:57 <Denyerec> Both when viewing the page, and when editing the CE
  • 20:21:22 <Denyerec> Right now, the page preview is just text only, and when editing the CE it's just all the fields concatenated together, which is useless to the User.
  • 20:25:03 <randomresult> well adding this element to my test shows nothing in the wizard (FCE)
  • 20:26:56 <Denyerec> Yeah that's probably LLL related
  • 20:27:56 <Denyerec> I've got broken entries in my FCE wizard too at the moment.
  • 20:27:59 <Denyerec> Let me gist the current code
  • 20:29:07 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b
  • 20:30:47 <Denyerec> Maybe I'm not using the inline syntax correctly.
  • 20:31:02 <Denyerec> But again, there's a desperate lack of simple examples so I can't fine out :/
  • 20:31:14 <Denyerec> The bootstrap templates seem to use the tag syntax predominently
  • 20:31:23 <Denyerec> I've looked in the thumbnail and responsive image CE's and neither helpe.d
  • 20:32:21 <randomresult> ok. shows the thumb in the ce now
  • 20:32:26 <randomresult> (not preview)
  • 20:32:40 <Denyerec> Only when you expand the section tho, correct ?
  • 20:32:49 <Denyerec> When all sections are collapsed I see some text
  • 20:33:00 <Denyerec> (Which shifts and changes when I expand and collapse the sections)
  • 20:33:56 <Denyerec> I wondered if my object names needed to be settings.slideshow.file etc
  • 20:33:58 <randomresult> true
  • 20:34:13 <Denyerec> Yeah so I want the thumbnail when collapsed. And the thumbnails in the normal preview
  • 20:34:22 <Denyerec> Thumbs in the normal preview would be a nice start :/
  • 20:34:32 <randomresult> no.. sections and objects need settings
  • 20:34:40 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b#file-gistfile1-phtml-L30
  • 20:34:48 <randomresult> no... dont need settings
  • 20:34:50 <randomresult> i mean
  • 20:34:56 <Denyerec> ok
  • 20:35:05 <Denyerec> Well I copied a lot from the bootstrap one
  • 20:35:09 <Denyerec> so I should hope that was OK ;)
  • 20:37:12 <randomresult> copying?
  • 20:37:20 <randomresult> no prob for me
  • 20:37:22 <randomresult> you?
  • 20:37:22 <Denyerec> Heavily referencing
  • 20:37:36 <Denyerec> You have thumbs in the preview ?
  • 20:38:12 <randomresult> no, this is another problem ... lemme check
  • 20:40:33 <Denyerec> http://denyerec.co.uk/stuff/.screencaps/2014-04-18_19-40-26.png
  • 20:40:39 <Denyerec> That's how mine looks right now
  • 20:40:48 <Denyerec> (I just outputted the path to check it was there)
  • 20:44:17 <Denyerec> I'm wrangling with previews and sections soee
  • 20:44:33 <Denyerec> First, I can't get my images into my preview section.
  • 20:44:39 <Denyerec> Code from the above screenshot here:
  • 20:44:58 <Denyerec> https://gist.github.com/Denyerec/cb328931135ce8df594b#file-gistfile1-phtml-L30
  • 20:50:56 <danilobuerger> Denyerec you should really consider making shorter templates that show your problem for getting help
  • 20:51:13 <danilobuerger> nobody wants to go through > 100 lines of template ^^
  • 20:51:16 <Denyerec> I thought about that, but thought it might get taken out of context or be missing something :/
  • 20:51:27 <Denyerec> let me prune it
  • 20:51:41 <danilobuerger> well it should be a complete working template just reduced to the minimum to show your problem
  • 20:51:47 <danilobuerger> that will likely increase your chance of getting help
  • 20:52:43 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b#file-gistfile1-phtml-L17
  • 20:52:55 <Denyerec> Working
  • 20:52:56 <Denyerec> Heh
  • 20:52:59 <Denyerec> It was working :)
  • 20:53:14 <Denyerec> Any less and it wouldn't function as expected, so I guess I hacked it down too far.
  • 20:54:02 <Denyerec> yeah
  • 20:54:06 <Denyerec> That should do.
  • 20:54:10 <Denyerec> The FE section is removed
  • 20:54:15 <Denyerec> extraneous fields cut out
  • 20:54:38 <randomresult> i have a preview image now
  • 20:55:10 <randomresult> is it working now?
  • 20:55:22 <Denyerec> mine, no
  • 20:55:39 <Denyerec> Only thumbnail I see is when I edit the CE and expand one of the images to see the thumbnail by the file field.
  • 20:56:00 <Denyerec> The standard preview is exactly as I linked you a few minutes ago - could you gist your code?
  • 20:56:11 <randomresult> sure
  • 20:56:47 <randomresult> maybe ugly but shows thumbnails
  • 20:56:48 <randomresult> https://gist.github.com/randomresult/c552e6cc0d6742e05108
  • 20:57:50 <randomresult> it seems you dont need the second mainPreview section at all
  • 20:57:59 <Denyerec> I need to render them from within the loop in the flux:grid though
  • 20:58:09 <Denyerec> thats the problem
  • 20:58:40 <Denyerec> oh I see what you've done.
  • 20:58:48 <Denyerec> forget the form.content
  • 20:58:51 <Denyerec> for the automatic preview
  • 20:58:56 <Denyerec> and use the fields directly
  • 20:59:38 <randomresult> works for me... dunno if this is the way to do but works
  • 20:59:56 <Denyerec> so do you have a flux:grid in your CE at all ?
  • 21:01:31 <randomresult> sure, depends on what to display...
  • 21:02:04 <randomresult> try this one : https://gist.github.com/randomresult/a45d88e82cf03cae5d96
  • 21:02:14 <randomresult> just a test
  • 21:02:31 <Denyerec> Ok... I see what's happening
  • 21:02:39 <Denyerec> Forget using flux:grid
  • 21:02:43 <randomresult> nono
  • 21:02:46 <Denyerec> and just use markup in the <preview> section
  • 21:03:03 <randomresult> really it depends on what u want to display :)
  • 21:03:21 <randomresult> at least i think so...
  • 21:03:33 <Denyerec> Thumbnails of the slides in the slideahow ;)
  • 21:03:46 <Denyerec> So I don't think the grid is necessary ?
  • 21:03:47 <randomresult> feels like two blind searching for some corn
  • 21:03:57 <Denyerec> As I'm not trying to lay out multiple columns or anything fancy.
  • 21:04:19 <Denyerec> I'll look at the preview section of the bootstrap accordion
  • 21:04:22 * randomresult claps his hands after Denyerec ....
  • 21:05:04 <Denyerec> ok so the carousel from bootstraptheme is what I was copying
  • 21:05:06 <randomresult> well this gives u the possibility to add content ...
  • 21:05:11 <Denyerec> but that doesn't have a very useful oreview either ;)
  • 21:05:54 <randomresult> i dont know if it would be useful to add contentgrids and then place whatever content is needed
  • 21:06:10 <Denyerec> Well...
  • 21:06:12 <randomresult> i dont like sections that much
  • 21:06:13 <Denyerec> I'd like to :)
  • 21:06:25 <Denyerec> But I can't get my images to render within the grid code.
  • 21:06:29 <Denyerec> THat's the problem :/
  • 21:06:59 <randomresult> just do it like the accordion does. and then place normal images in there .should work out of the box
  • 21:07:56 <randomresult> only problem is (as far as i remember) is the sorting ... if you want to change sorting later
  • 21:08:17 <Denyerec> The accordion uses a flex grid
  • 21:08:26 <randomresult> and?
  • 21:08:28 <Denyerec> Which is fine, so long as I don't try and render a thumbnail.
  • 21:08:29 <Denyerec> :/
  • 21:08:38 <Denyerec> When I try, I just see my fluid code as text OR I get an error message.
  • 21:08:55 <randomresult> have u tried to insert a normal image inside the accordion?
  • 21:10:00 <randomresult> works for me
  • 21:10:13 <randomresult> placed an accordion with 2 panels
  • 21:10:29 <randomresult> inserte responsiveimage in there ... shows thumbnail
  • 21:10:54 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b
  • 21:11:03 <Denyerec> That's my grid code
  • 21:12:55 <randomresult> hmmm... viewhelper inside the form... i dunno if that works
  • 21:12:59 <randomresult> look here
  • 21:13:32 <randomresult> https://gist.github.com/Denyerec/cb328931135ce8df594b
  • 21:13:36 <randomresult> upps
  • 21:13:37 <randomresult> sorry
  • 21:13:44 <randomresult> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/master/Resources/Private/Templates/Content/Row.html#L29
  • 21:14:01 <randomresult> defining variables and use them inside the form
  • 21:14:08 <randomresult> maybe that works
  • 21:14:19 <Denyerec> Ahhh
  • 21:14:23 <Denyerec> Yes good idea
  • 21:14:30 <Denyerec> so use the VH to generate the abs. path to the image
  • 21:14:33 <Denyerec> then just drop that in as a var
  • 21:14:42 <randomresult> maybe
  • 21:14:53 <randomresult> as told you: i am beginner!
  • 21:15:38 * randomresult hopes this conversation is NOT logged.
  • 21:16:04 <Denyerec> Oh it totally is :/
  • 21:16:16 <Denyerec> We should be in #fedext.noNSA
  • 21:16:24 <randomresult> hehe
  • 21:16:53 <randomresult> one thing is for sure: as long as i am here, we are safe not to meet mr.magic in here
  • 21:17:52 <Denyerec> ok
  • 21:17:56 <Denyerec> Some small progress.
  • 21:18:02 <Denyerec> Fatal error: Call to a member function getImgResource() on a non-object in /home/denyerec/clients/alba/htdocs/typo3conf/ext/vhs/Classes/ViewHelpers/Media/Image/AbstractImageViewHelper.php on line 113
  • 21:18:13 <Denyerec> That's caused by the media.image VH
  • 21:18:23 <Denyerec> presumably it doesn't like elementData.file
  • 21:18:57 <Denyerec> elementData.file -> V:iterator.explode() doesn't work either though
  • 21:20:14 <Denyerec> I could swear the docs say v:media.image takes CSV, array
  • 21:21:17 <Denyerec> elementData.file => 'fileadmin/Banners/generic-banner.jpg' (36 chars)
  • 21:21:21 <Denyerec> (According to the debug)
  • 21:28:19 <Denyerec> randomresult
  • 21:28:23 <randomresult> jupp
  • 21:28:23 <Denyerec> I think I'm close
  • 21:28:29 <Denyerec> My variable contains this:
  • 21:28:40 <randomresult> just saw that i booked the wrong appartement for my holiday.
  • 21:28:45 <Denyerec> elementData.file => 'fileadmin/Banners/generic-banner.jpg' (36 chars)
  • 21:29:05 <Denyerec> But I think everything is looking for EXT:myExt/Resources/Public/....
  • 21:29:13 <Denyerec> So it can't actually find the damnt hing.
  • 21:29:22 <Denyerec> When I tried to use f:uri.resource it returns this:
  • 21:29:43 <Denyerec> ../typo3conf/ext/albatemplate/Resources/Public/fileadmin/Banners/generic-ban
  • 21:29:43 <Denyerec> ner.jpg
  • 21:29:46 <Denyerec> !!
  • 21:29:58 <Denyerec> So if I can just get it to point to the damn file, I might well be sorted
  • 21:30:07 <randomresult> gimme a sec
  • 21:30:30 <randomresult> you could add <v:var.set name="siteUrl" value="{v:page.siteUrl()}"/>
  • 21:30:41 <randomresult> now it is getting ugly
  • 21:31:13 <randomresult> we had the same last year ... i cant remember what we did.
  • 21:31:48 <randomresult> and we then used <img src="{siteUrl}{mySlide.image}"
  • 21:32:07 <randomresult> which is more than ugly i think - oh man, hopefully this is NOT logged.
  • 21:33:01 <Denyerec> haha
  • 21:33:02 <randomresult> this was in preview as far as i remember
  • 21:33:10 <randomresult> this was for the output <f:image src="{mySlide.image}"
  • 21:33:34 <randomresult> but to be honnest: i dunno. wasnt me
  • 21:34:10 <randomresult> we could destroy the bouncer from NamelessCoder - i think this is where the logs come from
  • 21:35:48 <randomresult> maybe its a good idea to wait for someone who knows better...
  • 21:36:01 <randomresult> and not to spend hours of listening to me :)
  • 21:36:41 <Denyerec> All my attempts just yeild this useless path:
  • 21:36:50 <Denyerec> typo3/typo3conf/ext/albatemplate/Resources/Public/fileadmin/Banners/generic-
  • 21:36:50 <Denyerec> banner.jpg'
  • 21:37:01 <Denyerec> when it should be /fileadmin/Banners/...
  • 21:37:49 <randomresult> in the backend right?
  • 21:38:11 <Denyerec> Aye
  • 21:38:52 <Denyerec> Here's the issue
  • 21:38:52 <Denyerec> As for your problem, the uri.resource ViewHelper assumes that your resources are in the Resources/Public directory of your extension. So:
  • 21:38:59 <Denyerec> Which makes sense
  • 21:39:09 <Denyerec> Except... this isn't part of my template, it's user content.
  • 21:39:25 <Denyerec> Mabye I need to turn it into a FAL resurce
  • 21:39:30 <Denyerec> (More like a FAIL right now)
  • 21:39:54 <randomresult> its about an image
  • 21:40:02 <BenjaminR> hi guys
  • 21:40:03 <randomresult> did you try to get it like <img src="{siteUrl}{mySlide.image}"
  • 21:40:09 <randomresult> ahh... help is near!
  • 21:40:27 <Denyerec> Hopefully...
  • 21:40:36 * randomresult passes this to BenjaminR
  • 21:40:40 <Denyerec> BenjaminR, watch your step, me and randomresult have been clapping frantically and there's shit everywhere.
  • 21:40:50 <randomresult> lol
  • 21:41:04 <randomresult> hi BenjaminR
  • 21:41:40 * randomresult gets himself a big bottle of wine
  • 21:41:50 <BenjaminR> Denyerec: what are you working on right now?
  • 21:41:55 <Denyerec> Ok
  • 21:41:58 <Denyerec> *deep breath*
  • 21:42:14 <Denyerec> I'm building a carousel CE that's a bit different to the bootstrap one.
  • 21:42:24 <Denyerec> I've got quite far but I'm having two issues with my Previews.
  • 21:42:37 <Denyerec> The main preview, when you view a page in the BE, and the preview you see when you edit the actual CE directly.
  • 21:42:42 <Denyerec> (Forget the second one for now!)
  • 21:43:12 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b#file-gistfile1-phtml-L15
  • 21:43:28 <Denyerek> I am trying to output the image thumbnail in the preview (Which is rendered by widget.grid)
  • 21:43:53 <Denyerec> But elementData.file == fileadmin/Banners/mybanner.jpg
  • 21:44:01 <Denyerec> and nothing I try seems to be able to resolve it and render it :/
  • 21:45:05 <randomresult> back
  • 21:45:22 <randomresult> im afk
  • 21:45:25 <randomresult> im back
  • 21:45:26 <FT3BOT> Welcome back randomresult!
  • 21:45:29 <randomresult> :)
  • 21:45:38 <randomresult> thx. FT3BOT
  • 21:45:40 <Denyerec> I suppose thats one way to feel less alone ;)
  • 21:45:49 <Denyerec> afk
  • 21:45:50 <Denyerec> back
  • 21:45:51 <FT3BOT> Welcome back Denyerec!
  • 21:45:56 <randomresult> hehe
  • 21:45:56 * Denyerec feels loved
  • 21:46:09 <randomresult> at least you learned something from me tonight
  • 21:46:12 <BenjaminR> alt=' no "=" in inline syntax
  • 21:46:20 * randomresult is happy
  • 21:46:21 <Denyerec> Oh
  • 21:46:24 <Denyerec> yeah, it doesn't help
  • 21:46:28 <Denyerec> that's a slightly old gist
  • 21:46:31 <Denyerec> then I get a PHP error
  • 21:46:39 <BenjaminR> and src : '{elementData.file}' -> src: elementData.file is enough
  • 21:46:47 <Denyerec> Fatal error: Call to a member function getImgResource() on a non-object in /home/denyerec/clients/alba/htdocs/typo3conf/ext/vhs/Classes/ViewHelpers/Media/Image/AbstractImageViewHelper.php on line 113
  • 21:47:44 <BenjaminR> did you try to use f:image before?
  • 21:47:58 <BenjaminR> you pass the imagepath to it so what a special vh for :)
  • 21:48:50 <Denyerec> When I use f:image.... I see an img tag with a legit path rendered out
  • 21:48:53 <Denyerec> but not the actual image.
  • 21:49:04 <Denyerec> need to tunrn off htmlspecialchars somehow
  • 21:49:21 <BenjaminR> and i dont understand why you are rendering your image in the grid label
  • 21:49:28 <Denyerec> Me either
  • 21:49:44 <Denyerec> I was trying to immitate something I saw in fluidbootstrap with some modifications.
  • 21:49:51 <Denyerec> As there's no actual guide on how to do any of this ;)
  • 21:50:09 <BenjaminR> i dont know what you saw
  • 21:50:21 <Denyerec> All the fluidbootstrap stuff uses flex:grid for its previews
  • 21:50:24 <Denyerec> so I thought that was "the right way"
  • 21:50:47 <BenjaminR> flux:grid defines a page layout our sub content areas in fces
  • 21:50:49 <Denyerec> Would you suggest deleting the grid and just using normal html and iterators in the preview section ?
  • 21:51:06 * randomresult will leave now
  • 21:51:13 <Denyerec> Cya randomresult
  • 21:51:14 <randomresult> Denyerec report tomorow pls
  • 21:51:16 <BenjaminR> bye random
  • 21:51:17 <randomresult> :)
  • 21:51:22 <randomresult> good evening
  • 21:51:28 <BenjaminR> Denyerec: show me the full template
  • 21:51:28 <randomresult> and good n8
  • 21:51:43 <BenjaminR> you know what a grid is used for?
  • 21:51:50 <BenjaminR> if not - i am sure you dont need one for your carousel
  • 21:52:08 <Denyerek> https://gist.github.com/Denyerec/cb328931135ce8df594b
  • 21:52:25 <Denyerek> Well, I know if you need two columsn in the BE, you use the grid to define multiple content zones
  • 21:52:38 <Denyerek> which is why I thought it was odd that all the fluidbootstrap elements use them for their previews
  • 21:53:21 <Denyerek> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/master/Resources/Private/Templates/Content/Carousel.html
  • 21:53:24 <Denyerek> (For example)
  • 21:54:13 <Denyerec> So I think I've misunderstaood what they were trying to achieve.
  • 21:54:41 <BenjaminR> i have NO idea what you try to do here. never saw such a big gist for a simple carousel ;)
  • 21:55:46 <Denyerec> Well, obviously the main section is irrelevant
  • 21:56:09 <Denyerec> And I was experimenting with providing multiple content/slide types to the user
  • 21:56:15 <Denyerec> so they could add an image, or plain text content.
  • 21:56:25 <Denyerec> (Hence the if statement in the grid definition)
  • 21:56:32 <Denyerec> then I got bogged down in the previews.
  • 21:57:36 <Denyerek> https://gist.github.com/Denyerec/6d4a5a539d52eeb12416
  • 21:57:38 <Denyerek> I'm trying this now.
  • 21:57:51 <Denyerec> But the generated content isn't appearing where I'd expect it to.
  • 21:58:03 <Denyerec> Which is going to be a fluid syntax issue I just know it
  • 21:58:03 <Denyerec> :/
  • 21:58:15 <Denyerec> (The images display, at least.
  • 22:00:33 <BenjaminR> Ah got it
  • 22:00:46 <Denyerec> Right.
  • 22:00:50 <BenjaminR> the grid is used here to make it easier to add content elements to one of the slides
  • 22:00:51 <Denyerec> Correct table markup helps...
  • 22:01:03 <BenjaminR> no talking about the refered fce on github
  • 22:01:58 <Denyerec> Ok right
  • 22:02:08 <Denyerec> well I've got a preview working now, without ysing the grid
  • 22:02:57 <BenjaminR> The only reason for the grid was that you were able to specifiy slide type fx content and if slide type was content the corresponding grid column (with child content attached) was rendered
  • 22:03:16 <BenjaminR> instead of an image rendered
  • 22:04:01 <BenjaminR> in those cases i suggest to simply add such a fce to your own provicer extension so you can see how it works - makes it much easier to understand
  • 22:04:37 <Denyerec> That's where I started, with a C&P from the bootstrap carousel
  • 22:05:02 <BenjaminR> so... you still stuck?
  • 22:05:08 <Denyerec> New problem now,
  • 22:05:12 <Denyerec> i'll take a screenshot
  • 22:05:22 <Denyerec> this is to do with the previews when editing the CE
  • 22:05:28 <Denyerec> so the expanding/collapsing sections
  • 22:05:52 <Denyerec> Ok so this is what it looks like when I edit it:
  • 22:05:52 <Denyerec> http://denyerec.co.uk/stuff/.screencaps/2014-04-18_21-05-44.png
  • 22:06:19 <Denyerec> This is what happens if I expand them:
  • 22:06:20 <Denyerec> http://denyerec.co.uk/stuff/.screencaps/2014-04-18_21-06-11.png
  • 22:06:24 <Denyerec> And then this is when I contract them again
  • 22:06:52 <Denyerec> http://www.denyerec.co.uk/stuff/.screencaps/2014-04-18_21-06-40.png
  • 22:07:17 <Denyerec> The text / contant that appears next to the collapsed items is useless from an editors POV.
  • 22:07:33 <Denyerec> For a start, you can't see it until you expand everyting, then when you do, it changes, and when you collapse it you get something else.
  • 22:07:39 <Denyerec> is there any way to control what appears here ?
  • 22:08:07 <BenjaminR> hm not sure about that - i am pretty sure that is flexform/core default behaviour for objects
  • 22:08:32 <Denyerec> It's pretty shitty :/
  • 22:08:45 <BenjaminR> and pretty sure not up to flux :)
  • 22:08:46 <Denyerec> It's displaying RTE field data
  • 22:09:25 <Denyerec> Is there at least a way to control the RTE config in the RTE fields?
  • 22:09:31 <Denyerec> Does it use the sitewide config ?
  • 22:12:48 <BenjaminR> sure there is
  • 22:13:33 <BenjaminR> defaultExtras is what you search for
  • 22:13:46 <BenjaminR> http://fluidtypo3.org/viewhelpers/flux/development/Field/TextViewHelper.html
  • 22:15:13 <BenjaminR> ive to leave. bye
  • 22:17:48 <Denyerec> Hmm
  • 22:17:56 <Denyerec> That manpage entry is completely useless.
  • 22:18:10 <Denyerec> What is one supposed to do with "FlexForm-syntax "defaultExtras" definition, example: "richtext[*]:rtetransform[mode=tscss]""
  • 22:18:19 <Denyerec> When searching for that only pulls up the same damn page :/
  • 22:21:08 <Denyerec> richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|
  • 22:21:08 <Denyerec> outdent|indent|link|table|image]
  • 22:24:12 <Denyerec> Hmmm.
  • 22:24:20 <Denyerek> defaultExtras="richtext[paste|bold|orderedlist|unorderedlist]:rtetransform[mode=tscss]"
  • 22:24:29 <Denyerek> That still leaves a bunch of stuff visible/enabled
  • 22:24:40 <Denyerek> Be great if I could hide them instead of them being disabled.
  • 22:24:49 <Denyerek> NamelessCoder, if you see this at any point, please do buzz me :)
  • 22:37:20 <Denyerec> DefaultExtras ADDS to the default config
  • 22:37:41 <Denyerec> But if I wipe the default config, my standard text RTE is obviously no use.
  • 22:37:53 <Denyerec> So how do I define a specific RTE config for us in a Fluidcontent FCE ?
  • 22:38:16 <Denyerec> I feel like I'm close with RTE.config.[tablename].[fieldname].showButtons =
  • 22:38:26 <Denyerec> But don't know how that ties to Flux fields.
  • 23:45:12 <Denyerec> COMMITSTORM