IRC logs

20140502

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

IRC log range: 20140502*

20140502

  • 01:24:45 <soee_> what would be the proper way to redirect/display 404 page from inside controller action ?
  • 08:49:06 <jlumpe> morning!
  • 09:08:25 <soee> ping
  • 09:08:52 <bjo3rn> pong
  • 09:09:30 <soee> do you know if @inject annotation should work in service class ?
  • 09:09:35 <soee> good mornig bjo3rn
  • 09:09:40 <bjo3rn> morning soee
  • 09:09:49 <jlumpe> bjo3rn: still no luck with the languages :/
  • 09:10:32 <bjo3rn> soee this should work if you instantiate the service via object manager
  • 09:10:46 <bjo3rn> jlumpe hm...
  • 09:11:04 <bjo3rn> I'd try to set the language explicitly on a page
  • 09:11:12 <bjo3rn> where the plugin is located
  • 09:11:12 <jlumpe> what i tried now was setting the plugin's language specific to my language
  • 09:11:16 <jlumpe> yeah that works
  • 09:11:54 <jlumpe> lets see, will report back in a few mins :)
  • 09:12:52 <bjo3rn> soee same goes ofc also for the magic inject* methods
  • 09:14:00 <soee> bjo3rn: atm i'v used GenralUtility::makeInstance()
  • 09:15:21 <bjo3rn> hm. afaik ObjectManager->get() is required
  • 09:16:37 <soee> bjo3rn: so $this->objectManager = GeneralUtility::makeInstance('\TYPO3\CMS\Extbase\Object\ObjectManager');
  • 09:16:54 <soee> and than use it to instantiate other classses ?
  • 09:17:56 <bjo3rn> I think so, yes
  • 09:18:58 <jlumpe> bjo3rn: copy/paste into fces is really broken atm, right?
  • 09:19:46 <bjo3rn> I'm not involved in that and have no info, sorry. that's danilo's area.
  • 09:19:50 <jlumpe> every time i try to copy/paste or link/paste an element it shows up in the list view, but not inside the page view of the fce
  • 09:19:51 <jlumpe> ah ok
  • 09:20:42 <bjo3rn> but there is a new commit from yesterday in flux dev re that issue.
  • 09:20:55 <jlumpe> bjo3rn: so weird
  • 09:21:00 <jlumpe> now i changed the page language
  • 09:21:01 <bjo3rn> flux#541
  • 09:21:02 <FT3BOT> Issue 541: [TASK] Fix copy/paste/localise issues https://github.com/fluidtypo3/flux/issues/541
  • 09:21:12 <jlumpe> form "default" to "german".
  • 09:21:33 <jlumpe> when i want to show the page in the frontend now, typo3 tells me that the page is not available in the default language
  • 09:23:24 <jlumpe> I'm getting the feeling that having separate page trees in typo3 v6 makes things really complicated
  • 09:23:50 <bjo3rn> sounds like this, yes. soee mentioned a bug in 6.2 re this in #typo3?
  • 09:24:12 <jlumpe> yeah "some bug"
  • 09:24:16 <jlumpe> but no details :)
  • 09:24:51 <bjo3rn> hehe
  • 09:26:10 <bjo3rn> ok, let's gather the details: you have two page trees, each page tree has sys_language_uid set in its root, uid 0 has both languages added.
  • 09:26:18 <jlumpe> OH FUCK FUCKS SAKE
  • 09:26:23 <jlumpe> (sorry)
  • 09:26:28 <jlumpe> moving a page around in the page tree
  • 09:26:31 <jlumpe> destroyed all fces
  • 09:26:53 <jlumpe> now all my content is gone
  • 09:27:07 <bjo3rn> eew
  • 09:27:21 <jlumpe> if i drag it back into it's original positon
  • 09:27:23 <jlumpe> the content re-appears
  • 09:27:43 <jlumpe> meaning i cannot change the structure anymore without having to rebuild everything
  • 09:27:45 <jlumpe> that sucks :(
  • 09:27:52 <bjo3rn> to me as a layman this is completely related to the copy/paste issue
  • 09:28:00 <jlumpe> probably yeah
  • 09:28:05 <jlumpe> ok, the detauls
  • 09:28:07 <jlumpe> details
  • 09:28:17 <bjo3rn> did you pull the latest commits from yesterday`
  • 09:28:19 <bjo3rn> ?
  • 09:28:23 <jlumpe> no not yet
  • 09:28:26 <bjo3rn> aha
  • 09:28:27 <jlumpe> let me do that
  • 09:28:37 <jlumpe> after we gathered teh details
  • 09:28:39 <jlumpe> so
  • 09:28:50 <jlumpe> right now: 2 page trees, but will be 4
  • 09:28:51 <jlumpe> root
  • 09:28:59 <jlumpe> - en (the page title is en)
  • 09:28:59 <jlumpe> - tr
  • 09:29:01 <jlumpe> - de
  • 09:29:03 <jlumpe> - ru
  • 09:29:07 <jlumpe> like this
  • 09:29:33 <jlumpe> above thise i have a root node and above that the tree root
  • 09:29:37 <jlumpe> *these
  • 09:30:10 <jlumpe> on the root node i have a template, which does nothing else, but to set the sys_language_uid depending on PIDinRootline
  • 09:30:35 <jlumpe> uid 0 has all languages added as website languages
  • 09:30:40 <jlumpe> in this case 4
  • 09:30:49 <bjo3rn> ok as you would to with GP L in a single tree structure?
  • 09:30:53 <bjo3rn> *do
  • 09:31:02 <jlumpe> i have never done a single tree page
  • 09:31:32 <jlumpe> i kind of always used this way because that's how i learned it
  • 09:31:53 <bjo3rn> I assume sys_language_uid is set correctly in each tree?
  • 09:33:25 <jlumpe> well it actually should show up in the typoscript object browser, right?
  • 09:33:28 <jlumpe> as being set correctly
  • 09:33:31 <bjo3rn> yep
  • 09:33:34 <jlumpe> it doesn't
  • 09:33:37 <bjo3rn> aha
  • 09:33:44 <jlumpe> shows up as 0
  • 09:33:48 <bjo3rn> aha
  • 09:33:55 <jlumpe> let me create a paste of my config :)
  • 09:34:26 <bjo3rn> is this something that you know to be working in a different setup?
  • 09:35:47 <bjo3rn> sorry, got to go for around 2hrs. bbl
  • 09:35:54 <jlumpe> ah ok
  • 09:35:56 <jlumpe> http://pastebin.com/6JXrEuwa
  • 09:36:21 <jlumpe> bjo3rn: setting sys_language_uid is something i've never tried before
  • 09:36:23 <FT3BOT> bjo3rn is currently away.
  • 09:36:56 <Harpagophyt> @mrboe hello
  • 09:39:49 <danilobuerger> jlumpe some of c&p is still broken
  • 09:45:59 <jlumpe> danilobuerger: :(
  • 09:46:21 <jlumpe> i didn't get the fixes yet, how much is still broken?
  • 09:47:06 <jlumpe> danilobuerger: quick question, because this is rather weird
  • 09:47:29 <jlumpe> i was just talking with bjo3rn about my language issue. turns out, if i set the sys_language_uid with a PIDinRootline condition, it doesn't work
  • 09:47:40 <jlumpe> now that i tried to set it via a hostname condition
  • 09:47:41 <jlumpe> it works
  • 10:59:39 <hans> Hi there
  • 11:00:05 <hans> still tring to update to the latest versions of fluid flux ...
  • 11:00:26 <hans> when i make an update i just get a blank page :-/
  • 11:00:53 <hans> php verion: 5.5
  • 12:06:13 <bjo3rn> jlumpe why not set sys_language_uid in the root templates of each tree?
  • 12:06:14 <FT3BOT> Welcome back bjo3rn!
  • 12:09:24 <Harpagophyt> @mrboe hello
  • 12:12:14 <jlumpe> bjo3rn: right now the trees do not have root templates
  • 12:12:54 <jlumpe> but the conditions were actually working, i just forgot to select the proper checkboxes in the typoscript object explorer
  • 12:15:30 <jlumpe> but it seems like i'm trying to do something that is very weird/wrong for typo3
  • 12:17:11 <bjo3rn> I never did a multi tree setup for different languages but I don't think it's unusual.
  • 12:18:20 <jlumpe> But the way i'm doing it now (this at least works) is:
  • 12:18:38 <jlumpe> 1 tree per language
  • 12:18:50 <jlumpe> i switch the language now per subdomain
  • 12:18:53 <jlumpe> each tree has a subdomain attached
  • 12:19:26 <jlumpe> then in the tree for german language i add an alternative page language to the pages
  • 12:19:31 <jlumpe> and create my page there
  • 12:20:03 <jlumpe> this works, but it feels like there is an unnecessary involved
  • 12:20:17 <bjo3rn> if I had to do it I'd add extension templates to each tree and set the language there
  • 12:20:42 <jlumpe> meaning: it feels weird that i still have to create the german language version of the page for extbase to pick up the language
  • 12:21:06 <bjo3rn> NamelessCoder might solve this riddle or ask in #typo3-extbase
  • 12:21:20 <jlumpe> yeah i will do that later :)
  • 12:21:27 <jlumpe> for now i just want to finish it as far as possible
  • 12:21:31 <jlumpe> since it works now
  • 12:21:37 <jlumpe> (it's something i do for free)
  • 12:21:58 <bjo3rn> cedricziel maybe?
  • 12:21:58 <jlumpe> learning is nice, but this problem took some serious time
  • 12:22:24 <jlumpe> yeah if cedricziel i'll ask :)
  • 12:22:28 <bjo3rn> sure, brb
  • 12:22:28 <jlumpe> 14mins idle ;)
  • 12:23:46 <cedricziel> hmm?
  • 12:24:29 <cedricziel> deployment day
  • 12:26:05 <jlumpe> cedricziel: i have a really weird issue regarding languages
  • 12:26:09 <jlumpe> maybe you can solve it
  • 12:26:18 <jlumpe> if you have a few minutes
  • 12:26:34 <jlumpe> maybe you have a really easy explanation why this doesn't work as i'd expect it do
  • 12:26:35 <jlumpe> *to
  • 12:26:42 <cedricziel> give it a try
  • 12:27:14 <jlumpe> I have 4 page trees, one per language
  • 12:27:21 <cedricziel> check
  • 12:27:29 <jlumpe> on uid 0 I added 4 langauges
  • 12:28:14 <cedricziel> k
  • 12:28:23 <jlumpe> In my tree root (uid 1) i have a typoscript template, which sets the sys_language_uid per tree based on the host (it was PIDinRootline earlier, but that didn't seem to work)
  • 12:28:43 <jlumpe> Each page tree has a domain record attached (de.domain.tld, en.domain.tld etc)
  • 12:29:08 <jlumpe> I have an extbase extension which has some translations
  • 12:29:26 <jlumpe> And this extension has records (images and categories)
  • 12:29:31 <BenjaminR> page has to be translated to target language uid
  • 12:30:03 <jlumpe> i translated the categories in the sysfolder, but the extension always gets the default ones, instead of the ones for the specified sys_language_uid
  • 12:30:17 <jlumpe> BenjaminR: ah, can you explain why setting the sys_language_uid isn't enough?
  • 12:30:39 <jlumpe> I ended up, doing it like this (translating the page) but that kind of defeats the purpose of having multiple trees
  • 12:30:54 <bjo3rn> Just a random thought: are you sure pid _is_ actually in rootline?
  • 12:30:54 <FT3BOT> Welcome back bjo3rn!
  • 12:31:07 <jlumpe> yes i am
  • 12:31:22 <jlumpe> but since i changed it to hosts anyway now, it definitly works
  • 12:31:31 <jlumpe> since the html-tag attributes get the new values
  • 12:31:51 <jlumpe> just the translated content isn't show, as long as i do not translate the page to the target language
  • 12:32:10 <jlumpe> BenjaminR: can you tell me why that is necessary and why setting sys_language_uid is not enough?
  • 12:32:49 <BenjaminR> well i think its part of the typo3 design that typo3 checks if a page is available in the target sys language uid. if not if works as syslanguageoverlay is configured
  • 12:33:21 <jlumpe> yeah i noticed that it would for example hide all content
  • 12:33:34 <BenjaminR> page and content overlay are sepearted in t3
  • 12:33:41 <jlumpe> ah
  • 12:33:41 <BenjaminR> there are two configurations for them
  • 12:34:13 <jlumpe> i tried so many combinations, and extbase would never honor the sys_language_uid
  • 12:34:27 <jlumpe> except when i added an alternative page language
  • 12:34:36 <jlumpe> and placed the plugin on that language version of the page
  • 12:34:57 <BenjaminR> jlumpe - debug the sys language uid used in the extbase query
  • 12:35:15 <BenjaminR> maybe you could get around it by setting the language uid in your repo manually
  • 12:35:48 <jlumpe> is there an easy way to see the resulting query?
  • 12:36:00 <jlumpe> or do i have to echo it in some function?
  • 12:36:11 <BenjaminR> sure - but forgot about the method
  • 12:36:12 <jlumpe> i remember that there was not easy way, but maybe i'm wrong?
  • 12:36:13 <BenjaminR> lets see
  • 12:36:47 <bjo3rn> Admin panel maybe?
  • 12:37:47 <BenjaminR> ah i remember :)
  • 12:38:11 <BenjaminR> you are right jlumpe. hack: use a non exisiting property in constraints fx :)
  • 12:38:17 <BenjaminR> will return an exception containing the query
  • 12:38:38 <bjo3rn> Cool
  • 12:40:35 <jlumpe> let me try that :)
  • 12:42:01 <GRIMMCREATIVE> someone here is using the new mamp?
  • 12:42:26 <BenjaminR> mamp pro 3? yes.
  • 12:42:58 <GRIMMCREATIVE> nice - just get it :) - any idea what the IM Path is?
  • 12:43:35 <GRIMMCREATIVE> Applications/MAMP/Library/bin wont work for me
  • 12:44:10 <BenjaminR> ./opt/ImageMagick/bin
  • 12:45:44 <cedricziel> find . -iname convert
  • 12:46:41 <BenjaminR> http://cactuslab.com/imagemagick/
  • 12:46:49 <BenjaminR> easiest way on osx
  • 12:46:58 <GRIMMCREATIVE> kk - will check thx
  • 12:49:25 <jlumpe> BenjaminR: unfortunately it does not output the query :/
  • 12:49:32 <jlumpe> i just get:
  • 12:49:33 <jlumpe> Uncaught TYPO3 Exception
  • 12:49:33 <jlumpe> #1327065745: Unsupported or non-existing property name "asd" used in relation matching.
  • 12:50:47 <GRIMMCREATIVE> @BenjaminR - IM is already available in MAMP Pro 3 :) no need to install normaly
  • 12:53:49 <BenjaminR> ah nice - ive updated from 2.0 so didnt know that change
  • 12:54:31 <GRIMMCREATIVE> just activate in php.ini line 542 extension=imagick.so
  • 12:54:52 <GRIMMCREATIVE> but i dont find out witch path i need in typo3 :D
  • 12:54:54 <BenjaminR> imagick is only the php extension isnt it?
  • 12:55:07 <GRIMMCREATIVE> shure
  • 12:55:08 <BenjaminR> interface for imagemagick
  • 12:55:22 <GRIMMCREATIVE> ?
  • 12:55:40 <cedricziel> afaik it uses convert directly
  • 12:55:48 <BenjaminR> yap
  • 12:55:57 <BenjaminR> you cant make use of imagick in t3
  • 12:56:05 <BenjaminR> anyway imagick uses imagemagick :D
  • 12:56:29 <cedricziel> hehe, yes, but it uses the bindings, not the binaries
  • 12:57:27 <GRIMMCREATIVE> ok - just used now the old way http://cactuslab.com/imagemagick/
  • 13:08:33 <hans> when i call the homepage i get following error in the logfiles : PHP Catchable fatal error: Argument 1 passed to FluidTYPO3\Flux\Provider\AbstractProvider::setDefaultValuesInFieldsWithInheritedValues() must be an instance of FluidTYPO3\Flux\Form, null given, called in ./typo3conf/ext/flux/Classes/Provider/AbstractProvider.php on line 285 and defined in ./typo3conf/ext/flux/Classes/Provider/AbstractProvider.php on line 753
  • 13:09:18 <hans> in the backend i can´t open the page attributs of the root page, also gata blank page there :-/
  • 13:09:21 <hans> any help ?
  • 13:28:00 <GRIMMCREATIVE> Someone using Coda 2 ?
  • 13:29:17 <BenjaminR> Grimmcreative: me - until three weeks ago :P
  • 13:29:56 <GRIMMCREATIVE> :D
  • 13:30:35 <GRIMMCREATIVE> searching for code completion like in phpstorm for the FLuidTYPO3 Viewhelper... just watching a video about it right now
  • 13:32:03 <GRIMMCREATIVE> typoscript works good with plugin
  • 13:33:41 <BenjaminR> i am _pretty_ sure there is no code completion
  • 13:33:54 <BenjaminR> its just an editor - no ide
  • 13:34:10 <GRIMMCREATIVE> can be... should work with another real IDE
  • 13:34:16 <BenjaminR> still using it on the notebook for fast edits directly via ftp
  • 13:34:46 <BenjaminR> but it isnt an alternative for where you would choose an ide
  • 13:34:50 <GRIMMCREATIVE> like phpStorm - but i dont understand phpStorm right now. just like the Sites thing in Coda and so on
  • 13:35:42 <BenjaminR> you compare phpstorm with coda? planning to choose one of them?
  • 13:36:07 <BenjaminR> you can use them for different use cases parallel but you definitely cant choose one or the other as replacement
  • 13:36:37 <GRIMMCREATIVE> i understand
  • 13:37:17 <BenjaminR> btw i am using phpstorm too
  • 13:37:18 <jlumpe> has anybody dealt with realurl and translated records yet?
  • 13:37:37 <BenjaminR> jlumpe - sure - its a build in feature
  • 13:37:44 <jlumpe> BenjaminR: how so? :)
  • 13:37:51 <jlumpe> I set up realurl for my extbase extension
  • 13:37:55 <jlumpe> so i can browse categories
  • 13:37:59 <jlumpe> based on the parameter
  • 13:38:24 <jlumpe> extbase always seems to pass the id of the default object
  • 13:38:27 <jlumpe> not of the translated one
  • 13:38:39 <jlumpe> maybe that's the issue why i'm only getting the original names as slugs?
  • 13:38:46 <BenjaminR> am i wrong?! :X mixing up things? no dont think so...
  • 13:38:55 <jlumpe> well my url looks like this usually
  • 13:39:10 <jlumpe> path/to/gallerypage/?id=tx_imagegallery_list[category]=2
  • 13:39:11 <jlumpe> for example
  • 13:39:37 <jlumpe> i have 2 categories in the backend, one is "Color" (id 1), the other one "Black and white" (id 2)
  • 13:39:45 <BenjaminR> its about languageGetVar
  • 13:39:51 <jlumpe> hmm
  • 13:39:55 <jlumpe> i don't use the languagegetvar
  • 13:40:16 <jlumpe> can i somehow hardcode the language to use in the realurl settings?
  • 13:40:29 <jlumpe> (since i only have one language per domain)
  • 13:43:07 <BenjaminR> page 37 http://de.slideshare.net/jweiland/why-realurl-sucks-and-how-to-fix-it
  • 13:43:36 <BenjaminR> still thinking about what to do when lvar is misisng
  • 13:43:40 <BenjaminR> like in your setup
  • 13:45:54 <jlumpe> hmmm
  • 13:52:05 <jlumpe> ok, added that (i'm using fixed post vars, not preVars)
  • 13:52:12 <jlumpe> but yeah, no change at all
  • 13:52:20 <jlumpe> even if i pass ?L=x
  • 13:53:56 <BenjaminR> anyway you will have to clear your realurl and typo3 cache before expecting a change
  • 13:54:08 <BenjaminR> realurl caches the encoding result
  • 13:54:14 <BenjaminR> for a set of parameters
  • 13:54:28 <jlumpe> yeah
  • 13:54:28 <BenjaminR> i am away for a while
  • 13:54:39 <jlumpe> yeah i'll just test this, then i'll be away too ;)
  • 13:54:42 <jlumpe> thanks so far :)
  • 13:55:39 <GRIMMCREATIVE> lol, to have code completion and so you in coda 2 i must write an own mode :P
  • 13:56:05 <GRIMMCREATIVE> "you" and so on i mean
  • 14:11:46 <pedda> hi all
  • 15:07:39 <travis-ci> [travis-ci] cedricziel/vhs#81 (travisIrcNotif - 8098e8c : Cedric Ziel): The build has errored.
  • 15:07:39 <travis-ci> [travis-ci] Change view : https://github.com/cedricziel/vhs/commit/8098e8c06aab
  • 15:07:40 <travis-ci> [travis-ci] Build details : http://travis-ci.org/cedricziel/vhs/builds/24264829
  • 15:13:49 <travis-ci> [travis-ci] cedricziel/vhs#82 (travisIrcNotif - a997fd5 : Cedric Ziel): The build passed.
  • 15:13:49 <travis-ci> [travis-ci] Change view : https://github.com/cedricziel/vhs/compare/8098e8c06aab...a997fd58ba0f
  • 15:13:50 <travis-ci> [travis-ci] Build details : http://travis-ci.org/cedricziel/vhs/builds/24264887
  • 15:49:18 <ad_on_is> hi, is it possible to use <v:page.header.title title="{foobar.title}" /> from within an extension?
  • 15:49:37 <danilobuerger> sure
  • 15:49:47 <ad_on_is> i.e. if i render a detailpage of foobar and want to set the title according to that
  • 15:50:46 <danilobuerger> just use it in your template
  • 15:50:56 <ad_on_is> i do, but it's not working
  • 15:51:00 <BenjaminR> ad_on_is be aware to set config.noPageTitle to 1 or 2
  • 15:51:55 <ad_on_is> already have this
  • 15:52:09 <BenjaminR> then it definitely works :)
  • 15:52:48 <BenjaminR> so whats the title tag when it "doesnt work"
  • 15:52:58 <danilobuerger> ad_on_is i dont have time to help you debug this at the moment, but as BenjaminR said: this should definitely work
  • 15:54:15 <ad_on_is> <v:page.header.title title="{f:if(condition:'{page.uid}!=1', then:'{page.title} - ', else:'')}{f:translate(id:'{LLL}:pagetitle')}" />
  • 15:54:23 <ad_on_is> this code is in my frontpage.html
  • 15:54:23 <BenjaminR> if the page where you want to use v:page.header.title is prepared correct for usage the title tag is non existent or empty before using the vh
  • 15:54:48 <ad_on_is> ok ... sorry
  • 15:54:50 <ad_on_is> found the mistake
  • 15:54:53 <ad_on_is> {namespace v=Tx_Vhs_ViewHelpers} was missing
  • 15:55:11 <BenjaminR> no problem - happy it works now
  • 15:55:21 <ad_on_is> hmm... still nothing
  • 15:55:54 <ad_on_is> well.. as i said: this one is in my frontpage.html
  • 15:55:54 <ad_on_is> <v:page.header.title title="{f:if(condition:'{page.uid}!=1', then:'{page.title} - ', else:'')}{f:translate(id:'{LLL}:pagetitle')}" />
  • 15:56:02 <BenjaminR> i asked earlier: what contains the <title /> in frontend right now
  • 15:56:07 <ad_on_is> <v:page.header.title title="{course.title} - {f:translate(id:'{LLL}:pagetitle')}" />
  • 15:56:22 <ad_on_is> ah ... it contains the navigation title
  • 15:56:22 <BenjaminR> not template -> rendered html
  • 15:57:01 <BenjaminR> set config.noPageTitle to not contains anything now for testing
  • 15:57:17 <BenjaminR> then you can be sure to be prepared for usage
  • 15:57:19 <ad_on_is> noPageTitle = 1
  • 15:57:53 <ad_on_is> <v:page.header.title title="{f:if(condition:'{page.uid}!=1', then:'{page.title} - ', else:'')}{f:translate(id:'{LLL}:pagetitle')}" /> - this one works perfectly
  • 15:59:04 <ad_on_is> so let's say ... if i use this one in my frontpage.htm: <v:page.header.title title="{f:if(condition:'{page.uid}!=1', then:'Testworks - ', else:'')}{f:translate(id:'{LLL}:pagetitle')}" />
  • 15:59:12 <ad_on_is> title is renered as Testworks - mypage
  • 15:59:50 <BenjaminR> then this doesnt have anything to do with v:page.header.title
  • 15:59:56 <BenjaminR> debug your contains rather
  • 16:00:02 <BenjaminR> conditions
  • 16:00:17 <ad_on_is> if i add this in my show.html of my extension: <v:page.header.title title="ExtensionTitle" />
  • 16:00:29 <ad_on_is> i still get "testworks - mypage"
  • 16:00:56 <BenjaminR> depends on your caching settings
  • 16:01:30 <ad_on_is> flushed all caches: general and system
  • 16:01:47 <BenjaminR> show my the different usages and results as a gist or pastebin
  • 16:02:52 <ad_on_is> ok
  • 16:07:51 <cedricziel> BenjaminR ad_on_is: there's a header cascade and only the latest is taken into account
  • 16:08:27 <cedricziel> this is.. cms may generate the title later in the workflow and boom-overriden
  • 16:08:54 <BenjaminR> a yes - didnt get an oveview of what ad_on_is is doing - thats why i asked for a gist :)
  • 16:09:07 <ad_on_is> https://gist.github.com/anonymous/cbae0e89030a0882ce89
  • 16:09:31 <BenjaminR> but if he uses the vh two times on a single page view its definitely what you say cedricziel
  • 16:09:48 <cedricziel> oh, you should check in the layout file if there's a title defined i guess
  • 16:10:42 <ad_on_is> that seems legit, but i thaught that pagehtml is renderd first, than myext/show.htm... and so on
  • 16:11:47 <cedricziel> nope
  • 16:12:00 <cedricziel> fluid templates are rendered from most inner to outer
  • 16:12:14 <cedricziel> that's a pretty rough statement, but in general: that's it.
  • 16:12:26 <cedricziel> it runs circles inside the templates
  • 16:13:14 <ad_on_is> that's bad :-(
  • 16:13:32 <ad_on_is> i also checked my extensions layout-file ... and tried it there - nothing :-(
  • 16:14:15 <ad_on_is> i think i must solve it with typoscript
  • 16:14:24 <cedricziel> there's also an outermost template
  • 16:14:50 <ad_on_is> you mean the frontpage.html ?
  • 16:14:59 <ad_on_is> i can't pass extension data to outermost templates, or can i?
  • 16:15:25 <cedricziel> you can check if there is already a title set in the outermost template
  • 16:15:30 <cedricziel> (at least i think so)
  • 16:15:42 <BenjaminR> good idea yes
  • 16:16:27 <ad_on_is> aaaah ok...
  • 16:17:10 <ad_on_is> you mean something like: <f:if condition=“{v:page.header.title} != ''">
  • 16:42:02 <cedricziel> ypyep
  • 17:13:45 <floxx> is it possible to access variables set with flux in typoscript?
  • 18:03:54 <danilobuerger> floxx yes, there is a fluid vh for that
  • 18:04:17 <danilobuerger> ah sorry, other way around
  • 18:04:41 <danilobuerger> then i dont know... and it doesnt make sense... why would you want to do that?
  • 18:10:53 <Outdoorsman> benjamin_654... you get any feedback on that issue you mentioned to me yesterday? https://github.com/FluidTYPO3/flux/pull/541
  • 18:17:26 <floxx> danilobuerger: i want to write meta tags set in page properties into head section
  • 18:18:46 <floxx> crazy customer…he wants to set revisit-after for each page separately
  • 18:21:16 <pedda> floxx
  • 18:21:38 <floxx> yes?
  • 18:21:47 <pedda> assuming you have a flux field named: myCustomField, you access it via {myCustomField}
  • 18:21:59 <pedda> in fluid
  • 18:22:16 <pedda> if you need the value in typoscript, you need to pass this var to a f:cObject vh
  • 18:23:04 <pedda> {f:cObject(typoscriptPath: 'lib.myRevisitAfterTypoScriptObject', arguments: myCustomField)}
  • 18:23:29 <pedda> you can access myCustomField via "current" then
  • 18:23:40 <floxx> ah great - thank you
  • 18:23:43 <pedda> more precize: 10.value.current = 1
  • 18:24:11 <pedda> something like this does the job.. i would need to dig for it in my projects to show you some example
  • 18:24:18 <pedda> just give it a try on your own
  • 18:24:26 <floxx> ok
  • 18:24:28 <pedda> and tell me if you're struggeling
  • 18:24:50 <floxx> all right thanx again
  • 18:24:59 <pedda> nvm
  • 18:26:10 <pedda> but you should consider using the http://fluidtypo3.org/viewhelpers/vhs/master/Page/Header/MetaViewHelper.html ViewHelper
  • 18:26:34 <pedda> and use it like this: {v:page.header.meta(additionalAttributes: {foo: 'bar'}, name: 'NULL', content: 'NULL')}
  • 18:26:37 <pedda> ups
  • 18:27:00 <pedda> {v:page.header.meta(name: 'revisit-after', content: myCustomField)}
  • 18:27:21 <pedda> is pretty much a simplified solution to your task
  • 18:28:22 <pedda> -to +for
  • 18:29:47 <pedda> swiss knife tool vhs enables you to circumvent typoscript in most cases
  • 18:29:56 <pedda> @flox
  • 18:30:00 <pedda> @floxx
  • 18:33:43 <floxx> pedda: sounds better…a lot!
  • 18:37:03 <floxx> pedda: works. i <3 ft3 ;-)
  • 18:37:14 <pedda> awesome.. i love it too ;)
  • 18:42:34 <Riccardo> Hi. a question about <v:asset.script>: is it possible to remove the type="text/javascript" attribute?
  • 18:43:48 <pedda> iirc correctly this is possible if you include your asset via typoscript and add type = raw to it
  • 18:45:23 <Riccardo> urk... no, thanks ;) the cure seems worse that the illness
  • 18:45:28 <pedda> the solution is available here: http://fluidtypo3.org/community/irc-logs.html as NamelessCoder explained this a few weeks (?) ago. But there is no search feature available for the logs actually
  • 18:46:27 <pedda> you're not keen on ts, huh?
  • 18:48:53 <Riccardo> I like Typoscript, but I'd want to try to try to learn to use as much "fluid" as possible - lol
  • 18:49:39 <pedda> well there are still some cases where you need to rely on ts
  • 18:49:42 <Riccardo> another question (kinda similar) about <v:asset.style> instead
  • 18:49:52 <pedda> same here
  • 18:49:59 <pedda> when it comes to type attribute
  • 18:50:05 <Riccardo> is it possible to add the "media="something"" attribute ?
  • 18:50:10 <pedda> sure
  • 18:50:16 <pedda> there is a media property afaik
  • 18:50:51 <pedda> hmm
  • 18:50:53 <Riccardo> in the documentation http://fluidtypo3.org/viewhelpers/vhs/master/Asset/StyleViewHelper.html it is not mentioned
  • 18:51:00 <pedda> noticed it
  • 18:52:31 <Riccardo> and it is not called media, because it throws an error: "Argument "media" was not registered."
  • 18:53:09 <pedda> optionally fork the vhs repo, extend the asset.style viewhelper and pr it
  • 18:57:01 <Outdoorsman> bug alert? When I drag n drop a CE into an FCE it appears to work. However, the frontend never shows it and as soon as you reload the page in the backend it's right back where it was before the drag/drop.
  • 18:57:23 <Riccardo> Same (similar) problem
  • 18:57:33 <Riccardo> I've opened an issue few minutes ago
  • 18:58:02 <Riccardo> https://github.com/FluidTYPO3/flux/issues/546
  • 18:59:00 <pedda> the lazy way kinda ;)
  • 18:59:24 <Outdoorsman> I'm commenting on that issue now.
  • 18:59:59 <pedda> oh well.. i misread something ^^
  • 19:01:04 <Riccardo> great work anyway the more I dig into fluidTYPO3 the more I like it
  • 19:01:15 <soee> as we all :)
  • 19:01:30 <soee> hi pedda
  • 19:01:36 <pedda> hey soee
  • 19:07:22 <Outdoorsman> So can someone set me straight. Is FCE or Flexible Content Element still an appriate term for fluidTYPO3 content elements that allow for child content elements, etc.
  • 19:07:59 <Outdoorsman> I'm not sure if FCE was just a Templavoila term or not.
  • 19:08:25 <Riccardo> FCE is an acronym used by Templavoilà (Flexible Content Element)
  • 19:08:41 <Outdoorsman> What's the comparable term here then?
  • 19:08:42 <Riccardo> but you can also say FCE= FLUID Content Element :D
  • 19:09:33 <Riccardo> let's say it would be better have a different acronym to avoid confusion ;)
  • 19:10:04 <Outdoorsman> I seem to recall reading a term for it somewhere but it was a long time ago.
  • 19:11:58 <pedda> FCE is still a suitable acronym because templavoila development has stopped
  • 19:13:06 <Outdoorsman> Never mind I have 50 sites use TV, but I'm secretly glad to move to something so much more flexible and clean like FluidTYPO3.
  • 19:15:00 <Outdoorsman> I'm a little nervous though because I'm running spending more time reporting bugs than I am getting work done and I can't keep up this pace indefinitely.
  • 19:16:38 <Outdoorsman> What i am excited about is how responsive people are in this micro community about fixing things. I report something and people are generally on it right away.
  • 19:17:01 <Riccardo> +1
  • 19:17:35 <Outdoorsman> That's more than I can say for many other development communities who consider bugs to be YOUR problem.
  • 19:19:01 <Riccardo> "from great power comes great responsibility"
  • 19:20:34 <floxx> sth strange: if i use <f:debug>{whatever}</f:debug> i get this: http://pastebin.com/NH9viT8v
  • 19:24:04 <floxx> i have no idea why…
  • 19:28:17 <Riccardo> Is it possible to pass something from the template used (like the template name or a variable) to Typoscript?
  • 19:28:47 <Riccardo> I'm asking because I want to add a class to <body> that derives from the template used
  • 19:32:59 <pedda> same here as stated before : f:cObject VH is your friend
  • 19:33:14 <pedda> imagine to create some neat COA around the body tag class
  • 19:33:57 <pedda> floxx the youtpuut you see is the markup of f:debug, but it shouldn't be rendered as some entity encoded content in frontend
  • 19:34:04 <floxx> Riccardo: i do that this way:
  • 19:34:16 <floxx> in layout: <f:render section="Vars" />
  • 19:34:28 <floxx> in template: <f:section name="Vars">
  • 19:34:28 <floxx> <v:var.set name="templateType" value="sub" />
  • 19:34:28 <floxx> </f:section>
  • 19:34:36 <pedda> you should rather see a browser representation of that markup
  • 19:34:43 <floxx> and in layout <body class="{templateType}">
  • 19:34:49 <pedda> -repreentation +interpretation
  • 19:35:15 <floxx> in ts: page.bodyTag = <!-- body -->
  • 19:35:36 <floxx> pedda: yes…strange. never seen before
  • 19:36:02 <pedda> it's like you're using some misinterpreted f:format.html before
  • 19:36:08 <pedda> or some htmlSpecialChars
  • 19:36:10 <pedda> in ts
  • 19:36:25 <pedda> which is encoding your markup a second time
  • 19:36:25 <Riccardo> floxx I'll give it a try thank you
  • 19:37:00 <floxx> Riccardo: ask again, if it doesn't work :-)
  • 19:37:10 <floxx> pedda: basically its nothing more than
  • 19:37:10 <floxx> <f:section name="Main">
  • 19:37:11 <floxx> <v:page.header.meta name="revisit-after" content="{settings.0.metaRevisitAfter}" />
  • 19:37:11 <floxx> Hello world!
  • 19:37:11 <floxx> </f:section>
  • 19:37:49 <floxx> inside the main section i set <f:debug>{_all}</f:debug>
  • 19:39:16 <pedda> while rendering main section, do you process it with another vh like f:format.html ?
  • 19:39:34 <floxx> nope.
  • 19:39:39 <pedda> try {_all -> f:debug()}
  • 19:39:45 <pedda> same result?
  • 19:40:09 <pedda> check if your tsob does complain about some ts errors
  • 19:40:18 <floxx> <es same result
  • 19:40:45 <floxx> tsobj browser doesn't complain
  • 19:41:15 <floxx> my layout (Page.html) http://pastebin.com/9gMKX7mi
  • 19:41:44 <floxx> my template http://pastebin.com/Uu2ZnsQb
  • 19:43:07 <floxx> it is a new project
  • 19:43:29 <floxx> "exotic" feature: fileadmin path is changed in install tool. could that be the caus?
  • 19:53:35 <Riccardo> floxx: you almost got it! :D
  • 19:53:58 <Riccardo> only a couple of "glitches" which I managed to solve:
  • 19:54:39 <Riccardo> 1. maybe I've done something wrong but I had to add <v:var.set name="templateType" value="page" />
  • 19:54:59 <Riccardo> in the layout file and not in the template file
  • 19:55:40 <Riccardo> page.bodyTag = <!-- body --> not only adds an unnecessary comment, but leaves the closing </body>
  • 19:56:06 <Riccardo> page.bodyTagCObject = TEXT
  • 19:56:06 <Riccardo> page.bodyTagCObject.noTrimWrap = | | |
  • 19:56:13 <Riccardo> this works better :)
  • 19:57:30 <floxx> bodytag: yes, you're right. I'll use that fron now on ;)
  • 19:58:37 <floxx> but setting the var in template makes sense, if you want to change body tag for each template. i use only one layout in my setup.
  • 20:02:29 <Riccardo> I repeat, maybe I've done something wrong, or forgot something but adding:
  • 20:02:30 <Riccardo> <f:section name="Vars">
  • 20:02:30 <Riccardo> <v:var.set name="templateType" value="home" />
  • 20:02:30 <Riccardo> </f:section>
  • 20:02:34 <Riccardo> to the template
  • 20:03:05 <Riccardo> and <body class="{templateType}"> to the layout
  • 20:03:16 <Riccardo> leaves class empty
  • 20:04:40 <floxx> use <f:render section="Vars" /> in layout
  • 20:05:04 <floxx> sth like that:
  • 20:05:04 <floxx> {namespace flux=FluidTYPO3\Flux\ViewHelpers}
  • 20:05:05 <floxx> {namespace v=Tx_Vhs_ViewHelpers}
  • 20:05:05 <floxx> <f:layout name="Page" />
  • 20:05:05 <floxx> <f:render section="Vars" />
  • 20:06:26 <Riccardo> bingo!
  • 20:06:30 <floxx> :-D
  • 20:06:39 <Riccardo> I'll try it ASAP :)
  • 20:10:28 <Riccardo> works like a charm :)
  • 20:11:13 <Riccardo> If you are interested, I also managed to add more infos like the ID and the level in this way:
  • 20:11:35 <Riccardo> TS: define an object to set the level: lib.pageLevel=TEXT
  • 20:11:35 <Riccardo> lib.pageLevel{
  • 20:11:35 <Riccardo> value= level-{level:-1}
  • 20:11:35 <Riccardo> insertData = 1
  • 20:11:35 <Riccardo> }
  • 20:12:08 <Riccardo> 2. <body id="page-{v:page.info(field: 'uid')}" class="{templateType} {f:cObject(typoscriptObjectPath: 'lib.pageLevel')}">
  • 20:12:37 <Riccardo> in case it can help someone...
  • 20:13:06 <Riccardo> ehi... it should be nice having a place where to post useful snippets or howtos
  • 20:16:16 <pedda> like gist.github.com ?
  • 20:16:35 <pedda> you are also free to extend https://github.com/FluidTYPO3/fluidtypo3org
  • 20:16:37 <pedda> ;)
  • 20:16:52 <pedda> correct me if i'm wrong claus
  • 20:58:40 <soee_> whta is the valid way to obtain feuser uid in controller action >
  • 20:58:42 <soee_> ?
  • 22:24:10 <pedda> soee_ what about setting an feuser to rely on extbase feuser object model (edit user in backend, last tab)
  • 22:24:10 <Outdoorsman> randomresult got a quickie here...
  • 22:24:34 <pedda> and checkout the feuser repository
  • 22:24:40 <pedda> gotta go now
  • 22:24:43 <pedda> cu guys