IRC logs

20140709

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

IRC log range: 20140709*

20140709

  • 08:11:03 <soee> good-morning
  • 08:11:46 <mrboe> good morning - any brazillians here? ;)
  • 08:16:16 <soee> :)
  • 08:56:12 <bjo3rn> only pathetic soccer haters ^^
  • 08:56:29 <bjo3rn> except this guy here ofc
  • 09:03:12 <soee> wtf
  • 09:03:13 <FT3BOT> ¯\_(ツ)_/¯
  • 09:03:27 <bjo3rn> zoidberg
  • 09:03:28 <FT3BOT> (\/) (;,,;) (\/)
  • 09:04:20 <soee> it was obvious the match will ends like that, today can be similiar scenario
  • 09:04:34 <soee> ned 6:1 Arg
  • 09:04:50 <bjo3rn> I tweeted yesterday that I'll have to cancel my NED camping holidays...
  • 09:05:05 <soee> probably you tweeted in ger lang :)
  • 09:05:06 <bjo3rn> lose-lose situation for German tourists in NED
  • 09:05:16 <bjo3rn> yes, I did ;)
  • 09:05:22 <soee> :-D
  • 09:06:41 <bjo3rn> no matter the outcome of the final I'm gonna be either taunted or beaten ^^
  • 09:41:24 <Guest|33752> hej there!
  • 09:42:29 <Guest|33752> is an "how to" which describes the creation of an Content Element?
  • 09:42:56 <bjo3rn> Hi Guest|33752 see https://worksonmymachine.org/blog/fluidtypo3-quickstart
  • 09:45:44 <Guest|33752> Thank you! But it's using: "flux, fluidpages, fluidcontent and vhs". I think this is the old version?
  • 09:46:00 <bjo3rn> old version?
  • 09:48:12 <Guest|33752> Hmm.
  • 09:48:29 <Guest|33752> It just make sense right now.
  • 09:48:29 <Guest|33752> :D
  • 09:49:09 <bjo3rn> I think I updated everything to the recent changes but you never know ;)
  • 09:53:02 <vizArt> @Guest33752*4/2^88: try the builder extension (http://typo3.org/extensions/repository/view/builder). Great tool for kickstarting a Fluidcontent/Fluidbackend project.
  • 09:53:50 <vizArt> oh ups ... sorry
  • 09:53:54 <vizArt> too fast
  • 09:55:32 <vizArt> @bjo3rn: great article ... thanks for this
  • 09:57:13 <vizArt> @Guest33752*4/2^88: check the "introduction-package" ... there are some content-elements written for using bootstrap elements.
  • 10:05:54 <Guest|33752> ok thank you!
  • 10:06:16 <Guest|33752> what does the builder do? can you create CE with it?
  • 10:09:51 <benjamin_654> hi, someone using gridelements, TYPO3 6.2 and flux together (all on newest dev versions)? I am updating a old project and have compatibility problems. The "gridelements support" in FluidTYPO3\Flux\Service\ContentService\moveRecord seems to fail with the "colPos" ..
  • 10:15:18 <mrboe> hey Guest|33752 have a look into fluidbootsraptheme there are some good examples how to create FCE https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/tree/development/Resources/Private/Templates/Content
  • 10:15:30 <mrboe> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme
  • 12:49:21 <floxx> i don't get it…what is the right syntax for labels inside of section/object? the name of the field is simpleImage. if i use flux.fullwidthslider.fields.simpleImage and the image is not inside object, label is set correctly. but inside of the object, nothing happens
  • 12:59:51 <randomresult> hi there
  • 13:00:32 <beo|2> hi
  • 13:01:19 <randomresult> i have an error caused by a deleted image in fileadmin (ftp)
  • 13:01:30 <randomresult> how can i get rid of this error ?
  • 13:01:39 <randomresult> i dont want to display it in frontend
  • 13:02:06 <beo|2> what error?
  • 13:02:07 <randomresult> the customer is not ... lets say a typo3-head - so this will happen more than once
  • 13:02:20 <randomresult> Oops, an error occurred!
  • 13:02:20 <randomresult> File /user_upload/Bilder/Produkte/strohgaeu_strom.jpg/ does not exist.
  • 13:02:46 <randomresult> someone deleted this in fileadmin (but not in the FCE)
  • 13:03:25 <beo|2> how has he deleted the file? I think it is not possible when using the filelist in typo3 backend
  • 13:03:36 <randomresult> i dont know
  • 13:03:50 <randomresult> dont ask me
  • 13:04:04 <soee> randomresult: in fce rendering function do a check if fiel exists, if not render some default thumb :)
  • 13:04:15 <soee> this way youll be sure there wont be more errors in FE
  • 13:04:36 <randomresult> soee example ?
  • 13:04:40 <soee> *not sure though if with cached pages this will work
  • 13:04:44 <floxx> in response to my question: got it - label is set inside section/object flux.fullwidthslider.objects.>>.simpleImage
  • 13:04:53 <soee> if page is cached and fiel deleted it will try to load it anyway
  • 13:04:57 <floxx> flux.fullwidthslider.objects.<objectName>.simpleImage
  • 13:05:11 <soee> the user is stupid :) he should not remove files like that
  • 13:06:23 <randomresult> well. this can happen... so i need to fix it that the frontend is not destroyed
  • 13:06:29 <randomresult> its only a missing image
  • 13:07:32 <randomresult> i thought its made with $TYPO3_CONF_VARS['SYS']['displayErrors'] = '0';
  • 13:12:41 <beo|2> he should not delete the file over FTP
  • 13:15:24 <soee> beo|2: +1
  • 13:16:37 <soee> randomresult: some VH used to render this file ?
  • 13:39:16 <randomresult> i have an element with a field for a link. as long as i choose an internal page all is good. as soon as i choose a file it has the following link : file:49
  • 13:47:57 <Guest|97419> Hey, is there any documentation how to write your own Providers and/or Controllers?
  • 13:48:14 <xaver> randomresult: problem with FAL 2 - we need a patch - somewhere is a workaround
  • 13:48:52 <Guest|97419> This documentation gives absolutely no examples: http://fluidtypo3.org/documentation/templating-manual/
  • 13:53:13 <BenjaminR> anyone can tell me which core method is used to calculate sorting of mn relations after changes in flexform
  • 14:00:15 <beo|2> Guest|97419: i would say you write controllers exactly like normal extbase controllers
  • 14:04:17 <mrboe> @BenjaminR do you have the problem that you change sorting in FCE and the Col's Content does not switch?
  • 14:05:04 <BenjaminR> Oh wanted to post that to #typo3 - its not a fluidcontent related question
  • 14:05:22 <BenjaminR> Guest|97419: in general http://fluidtypo3.org/documentation/templating-manual/templating/provider-extension/registration-in-php.html
  • 14:05:25 <BenjaminR> looking for a example
  • 14:05:41 <mrboe> because that would be nice if this is working
  • 14:06:07 <mrboe> i only fexed thats for me in an very ugly way wich is not very user friendly
  • 14:06:26 <mrboe> ^^fixed
  • 14:06:37 <BenjaminR> fx https://github.com/FluidTYPO3/fluidtypo3org/blob/master/Classes/Controller/ContentController.php
  • 14:06:52 <BenjaminR> Guest|97419
  • 14:10:57 <ndee> @BenjaminR: the syntax for the overlay of the templates stay the same'
  • 14:11:37 <BenjaminR> see https://github.com/FluidTYPO3/view#template-path-overlays
  • 14:11:44 <BenjaminR> fx plugin.tx_news.view.overlays.myext.partialRootPath = EXT:myext/Resources/Private/Partials/
  • 14:11:51 <BenjaminR> notice overlays
  • 14:11:53 <BenjaminR> key
  • 14:12:05 <BenjaminR> ext:view looks for view.overlays
  • 14:12:24 <BenjaminR> this way you dont need to copy all template to your extension but rather only the ones you want to overwrite
  • 14:14:29 <ndee> BenjaminR: awesomesauce, thanks. Works as expected.
  • 14:14:51 <BenjaminR> yw ;)
  • 14:14:59 <ndee> that should be in the core :D
  • 14:15:14 <BenjaminR> NamelessCoder tried that but you now the core guys... :)
  • 14:15:28 <BenjaminR> they implemented their own version of that but with less features ;)
  • 14:16:01 <beo|2> https://forge.typo3.org/issues/52971
  • 14:16:33 <BenjaminR> that is what i am talking about
  • 14:17:04 <BenjaminR> that was a followup on NamelessCoder´s suggestion to implement ext:view functionality
  • 14:17:50 <BenjaminR> https://forge.typo3.org/issues/52971#note-21
  • 14:33:25 <Guest|97419> Thank you Ben for the example
  • 15:03:02 <Guest|97419> How to check what controller is active? I created Page.html and PageController.php, then I did $this->view->assign() with a text variable
  • 15:03:13 <Guest|97419> but i cannot use it from Page.html
  • 15:03:26 <Guest|97419> so I am not sure if it is PageController active
  • 15:06:32 <BenjaminR> how did you register your pagecontroller?
  • 15:07:04 <BenjaminR> your pagecontroller contains an action called pageAction
  • 15:07:07 <BenjaminR> ?
  • 15:07:35 <BenjaminR> Guest|97419
  • 15:08:34 <Guest|97419> yes it contains this action
  • 15:08:46 <Guest|97419> in ext_tables.php i wrote a line
  • 15:08:46 <Guest|97419> Tx_Flux_Core::registerProviderExtensionKey('myext1', 'Page');
  • 15:09:09 <Guest|97419> and pageAction has a line:
  • 15:09:10 <Guest|97419> $this->view->assign("MYVARIABLE", "test value");
  • 15:09:46 <Guest|97419> in Page.html i try to debug it with f:debug {_all} or just print out with {MYVARIABLE}
  • 15:09:46 <FT3BOT> ¯\_(ツ)_/¯
  • 15:12:09 <BenjaminR> you assigned the template to the page earlier in backend?
  • 15:12:18 <BenjaminR> maybe it points to fluidpages controller already
  • 15:12:27 <BenjaminR> let me see if this is hardened there
  • 15:12:59 <Guest|97419> in page layout i use "my extension"
  • 15:13:14 <BenjaminR> have a look in pages table at column tx_fed_page_controller_action
  • 15:13:17 <Guest|97419> whatever i change in the Page.html is displayed in the browser. But I cannot read from the controller
  • 15:14:44 <BenjaminR> youre using 6.1 or 6.2?
  • 15:14:47 <Guest|97419> the row is: myext1->Page
  • 15:15:00 <Guest|97419> i cleared cache from INSTALL tool
  • 15:15:19 <Guest|97419> 6.2
  • 15:15:34 <BenjaminR> it should do the job
  • 15:15:43 <Guest|97419> I must be doing something silly, like missing something in the configuration
  • 15:16:15 <BenjaminR> as always, not? :)
  • 15:16:35 <BenjaminR> please gist ext tables and your controller
  • 15:16:43 <Guest|97419> when I malform the code in PageController I got error in the console and app crashes
  • 15:16:47 <Guest|97419> so it is loaded in the memory
  • 15:16:54 <BenjaminR> and template
  • 15:17:20 <BenjaminR> if you "die()" in the pageAction ?
  • 15:17:26 <BenjaminR> maybe you have a typo in the action name
  • 15:20:01 <Guest|97419> https://gist.github.com/gregatmcube/57731641ee3100af6518
  • 15:20:50 <Guest|97419> die() doesn't do anything
  • 15:20:57 <Guest|97419> but malformed code crashes
  • 15:21:00 <BenjaminR> multiple problems here
  • 15:21:45 <BenjaminR> you have to use your own vendorname in line 3
  • 15:22:15 <BenjaminR> and then in ext_tables (line 27 in your gist) you hvae to register with vendorname YourVendor.YourExt1
  • 15:24:21 <Guest|97419> So now it is like following:
  • 15:24:41 <rasha-> hi guys, did someone of you use the flux.wizard.suggest VH successfully?
  • 15:24:52 <Guest|97419> namespace Blaster\Fluidcontent\Controller;
  • 15:25:02 <Guest|97419> Tx_Flux_Core::registerProviderExtensionKey('Blaster.Myext1', 'Page');
  • 15:25:52 <BenjaminR> namespace Blaster\Fluidcontent\Controller should be namespace Blaster\MyExt1\Controller
  • 15:29:05 <rasha-> there was an issue, but should be fixed now
  • 15:29:06 <rasha-> https://github.com/FluidTYPO3/fluidcontent/issues/158
  • 15:29:28 <rasha-> i still dont get matched records
  • 15:29:33 <rasha-> or any records at all
  • 15:30:04 <Guest|97419> Thank you for your patience. I updated gist https://gist.github.com/gregatmcube/57731641ee3100af6518
  • 15:30:49 <Guest|97419> Cleared cache but I must be missing something still
  • 15:31:57 <BenjaminR> assign template in page properties again
  • 15:32:01 <BenjaminR> and check pages column
  • 15:32:05 <BenjaminR> if defined with vendor now
  • 15:32:54 <BenjaminR> Tx_Flux_Core <- replace with namespaced classname by chance
  • 15:34:10 <Guest|97419> DB points out good, page layout was unchecked, i checked back and it works. You are the best, thanks again for your patience
  • 15:34:30 <Guest|97419> Now I have to check all my namespaces since it tries to read templates from ext/flux/
  • 15:37:34 <Guest|97419> Is it possible because I have no Providers defiend? So it reads those from flux?
  • 15:39:51 <BenjaminR> you should have smth like plugin.tx_myext1.view in your ts setup
  • 15:40:01 <BenjaminR> means setup.txt in your extensiion
  • 15:40:06 <Guest|97419> Ok, I am extending AbstractFluxController and it has fallbackextensionkey = flux
  • 15:40:08 <Guest|97419> that might be it
  • 15:40:41 <Guest|97419> yes I do have. And imported constants.txt
  • 15:40:46 <Guest|97419> templateRootPath = EXT:myext1/Resources/Private/Templates/
  • 15:40:52 <BenjaminR> why templates does it try to read from ext/flux?
  • 15:41:38 <BenjaminR> you defined a provider for page templates when you used registerProviderExtensionKey
  • 15:42:35 <Guest|97419> Mhm, but still falls back somehow. it did not before
  • 15:42:53 <BenjaminR> let me see
  • 15:43:55 <ndee_> if you guys create a new extension in 6.2 and there is a category option for your domain, would you use the core categories?
  • 15:43:58 <BenjaminR> try using FluidTYPO3\Fluidpages\Controller\AbstractPageController;
  • 15:46:08 <BenjaminR> in pagecontroller
  • 15:46:43 <Guest|97419> Yes, I am trying it. Just takes some time :)
  • 15:46:52 <Guest|97419> It works!
  • 15:47:54 <Guest|97419> So I should extend AbstractContentController and AbstractPageController
  • 15:47:55 <BenjaminR> yay :)
  • 15:48:02 <Guest|97419> NOT AbstractFluxController
  • 15:48:27 <Guest|97419> I should have drink more coffee. Thank you again Ben
  • 15:48:28 <FT3BOT> c[_]
  • 15:48:30 <BenjaminR> yap - as we are amateurs we should :)
  • 15:48:37 <BenjaminR> yw
  • 16:07:46 <alex_schnitzler> Hoi
  • 16:07:50 <alex_schnitzler> I need support
  • 16:08:04 <BenjaminR> hi alex
  • 16:08:23 <alex_schnitzler> Hey
  • 16:09:42 <alex_schnitzler> I have a content element that gets properly rendered in the backend and the frontend but I can't choose it from the list of possible content elements
  • 16:09:51 <alex_schnitzler> I guess the configuration section is broken then, right?
  • 16:10:13 <BenjaminR> cant choose means isnt there?
  • 16:11:08 <alex_schnitzler> Yes
  • 16:11:37 <alex_schnitzler> <flux:form wizardTab="Custom CE" id="foo" icon="{v:extension.path.resources(path: 'Images/Icons/foo.png')}">
  • 16:11:45 <alex_schnitzler> The tab isn'T shown
  • 16:16:17 <alex_schnitzler> No idea? Anyone?
  • 16:17:42 <danilobuerger> the whole tab is missing?
  • 16:17:47 <alex_schnitzler> Yes
  • 16:18:07 <alex_schnitzler> If you have 5 minutes I'll share my screen
  • 16:19:06 <danilobuerger> sorry alex, no time at the moment :-(
  • 16:19:38 <alex_schnitzler> :(
  • 16:36:44 <ad_on_is> how can i render out FAL images, and their "overwritten" title, description, alt with v:resource.file
  • 16:36:48 <ad_on_is> ?
  • 16:36:59 <ad_on_is> is that possible?
  • 16:42:30 <BenjaminR> alex: did you try without wizardTab param
  • 16:47:09 <alex_schnitzler> @BenjaminR Yes, tried all possible forms
  • 16:47:22 <alex_schnitzler> The example of the Readme doesn't work as well
  • 16:54:24 <alex_schnitzler> Got it. The fucking opcache
  • 16:54:59 <BenjaminR> ;)
  • 16:55:03 <BenjaminR> its a monster
  • 17:11:40 <beo|2> ad_on_is: i have modified the viewhelper for that. Would like to know if that is possible with the default viewhelper
  • 17:14:10 <beo|2> ad_on_is: if it helps i could send it to you
  • 17:14:34 <ad_on_is> please send, since i need it urgently
  • 17:14:54 <beo|2> however i modified the FalViewHelper
  • 17:18:02 <ad_on_is> thx... how do i implement this?
  • 17:18:40 <beo|2> have you got the file? it shows 0% for me
  • 17:18:58 <ad_on_is> i realized, transfer failed
  • 17:19:14 <beo|2> mhh. where can i post the file elsewhere?
  • 17:20:40 <beo|2> http://www.wikiupload.com/DVCDQKZ4A38FJTU
  • 17:20:43 <beo|2> hope that works
  • 17:21:44 <ad_on_is> hmm.. notworking
  • 17:21:48 <ad_on_is> use pastebin
  • 17:21:56 <ad_on_is> http://pastebin.com/
  • 17:22:05 <ad_on_is> just paste text, and click on submit
  • 17:23:23 <beo|2> http://pastebin.com/8NBXxJcT
  • 17:24:39 <ad_on_is> ok...
  • 17:24:45 <ad_on_is> and how to implement in frontend?
  • 17:24:49 <beo|2> you just need to change the controller name
  • 17:24:57 <beo|2> and put it into your own extension
  • 17:25:56 <beo|2> my controller name is "Artikel". So you need to change Tx_Artikel_...
  • 17:27:13 <beo|2> if you keep everything else how it is you need to put it into the directory "\Classes\ViewHelpers\Resource\Record\"
  • 17:27:32 <beo|2> name the file "FalViewHelper.php"
  • 17:28:16 <ad_on_is> ok... iunderstand
  • 17:28:32 <beo|2> and use it like the original viewhelper
  • 17:29:20 <beo|2> so put "{namespace va=Tx_Yourcontrollername_ViewHelpers}" at the top of your template
  • 17:29:54 <beo|2> and use it like <va:resource.record.fal table="yy" ... >
  • 17:29:58 <xaver> use namespaces :)
  • 17:30:04 <ad_on_is> aaah ok
  • 17:30:31 <ad_on_is> well i have an objectstorage of images in (i.e) {artikel.images}
  • 17:30:31 <beo|2> xaver: yes. But i made this with a vhs version which didn't used namespaces. ;)
  • 17:30:50 <beo|2> but it should work anyway
  • 17:30:58 <ad_on_is> i want to iterate throught them and render an image, an title and a description
  • 17:31:50 <beo|2> i don't think the resource.record viewhelpers work like that
  • 17:32:02 <beo|2> they directly access the database tables
  • 17:33:26 <beo|2> you need the uid of your object and fetch them from the table with the fieldname you have set in the flexform for FAL
  • 17:33:35 <ad_on_is> ah ok
  • 17:37:26 <beo|2> i used it like this: http://pastebin.com/3sdEEPmg
  • 17:41:03 <beo|2> of course i added the right filename in my TCA
  • 17:41:20 <ad_on_is> unfortunatley not working :-(
  • 17:41:51 <beo|2> do you have your own table of objects or do you add your elements into tt_content?
  • 17:42:24 <ad_on_is> table of objects
  • 17:42:30 <ad_on_is> the implementation is not working
  • 17:42:37 <beo|2> ok. where is the issue then?
  • 17:42:45 <ad_on_is> wait
  • 17:42:45 <ad_on_is> wait
  • 17:43:07 <xaver> beo|2: you can do stuff like this {v:math.division(a: '{file.size}', b: '1024', fail: '0') -> v:math.division(b: '1024', fail: '0') -> v:variable.set(name: 'filesize')}
  • 17:43:57 <xaver> a: file.size - no quotes
  • 17:44:21 <ad_on_is> yeaaaah
  • 17:44:22 <ad_on_is> works
  • 17:44:30 <ad_on_is> i implemented it wrongly
  • 17:44:35 <ad_on_is> thank you soooo much
  • 17:44:40 <ad_on_is> you're my hero :D
  • 17:44:46 <beo|2> no problem. :)
  • 17:45:13 <beo|2> thanks xaver: i didn't knew you can chain them like that
  • 17:45:33 <xaver> np :)
  • 17:50:36 <beo|2> bye everyone.
  • 17:53:41 <benjamin_654> hi, someone using gridelements, TYPO3 6.2 and flux together? I have a bug and would like it to be confirmed before opening a issue ..
  • 18:00:19 <alex_schnitzler> @benjamin_654 Which one?
  • 18:00:25 <alex_schnitzler> I am currently using it together
  • 18:01:55 <benjamin_654> alex_schnitzler: when i drag&drop a content element inside a gridelement disappears from the page view (only in list view visible)
  • 18:02:12 <alex_schnitzler> Will try this shortly
  • 18:02:27 <benjamin_654> alex_schnitzler: thx
  • 18:02:38 <benjamin_654> alex_schnitzler: this fixed it for me: https://github.com/BenjaminBeck/flux/commit/c41a1a73
  • 18:03:03 <alex_schnitzler> I can't drag&drop the element at all
  • 18:11:22 <benjamin_654> alex_schnitzler: hm .. seems like you have additional other problems, d&d did always work for me ..
  • 18:29:28 <alex_schnitzler> Would be nice to get anyone of the core team on the line to solve a bug with me.
  • 18:30:15 <alex_schnitzler> Somehow the TypeScript that renders the wizard tabs is not applied on all pages
  • 18:49:48 <Guest|66975> Hi! How can I wrap all content elements of a specific column in a <div>?
  • 18:50:17 <Guest|66975> This is wat I tried: https://gist.github.com/anonymous/8965d14691338df2385d But this gives my only empty <div>s
  • 19:23:56 <benjamin_654> Guest|66975: i thing v:content.render also needs a "pageUid" attribute
  • 20:40:56 <Guest|66975> bejamin_654: Thanks! But <v:content.render column="0" /> works. All content elements in column 0 are shown. But how can I wrap each content element in a seperate <div>?
  • 20:59:10 <bjo3rn> Guest|66975 you can use v:content.get to fetch an array of content elements to render manually
  • 20:59:33 <bjo3rn> by iterating over that array you can apply your wrap
  • 21:00:41 <bjo3rn> or even better: v:gontent.get using the 'as' attribute
  • 21:01:13 <bjo3rn> well, actually it's the same as above so strike the 'better'
  • 21:18:39 <xaver> Guest|66975: you would you want to add a standard wrap - you can replace with fluidcontent_core -> csc and you will have full control overyour elements