IRC logs

20140610

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

IRC log range: 20140610*

20140610

  • 11:04:36 <limboo> hi there
  • 11:04:52 <limboo> how i can get the current-language of a page?
  • 11:05:07 <limboo> i thought its stored somewhere in v:page.info but i cant find anything
  • 11:44:17 <nimius|thephpjo> hello everyone
  • 11:45:17 <nimius|thephpjo> i just hit the error in this ticket: https://github.com/FluidTYPO3/flux/issues/533 – however, dumb me deleted those tables (renamed and deleted). How do i recreate them?
  • 11:51:15 <xaver> nimius|thephpjo: copy the ext_tables.sql and execute or update to dev version of flux
  • 11:54:05 <nimius|thephpjo> oh… the dev branch… ok
  • 11:54:29 <limboo> i try to show a string based on the current-page language
  • 11:54:31 <limboo> <f:translate key="language" arguments="{0: 'DE', 1: 'FR', 2: 'EN'}" default="0" extensionName="Speciality"/>
  • 11:54:55 <limboo> but this isn't working - it just shows the ID of the language - ex. 2 on an english page
  • 11:56:04 <xaver> nimius|thephpjo: maybe you need some other stuff from dev
  • 11:58:12 <cedricziel> this isnt going to work out limboo
  • 11:58:16 <cedricziel> http://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Translate.html
  • 11:58:35 <cedricziel> f:translate solely deals with xml/xliff resources for translation
  • 11:59:13 <cedricziel> you therefore need an entry in one of your translation files (which also nicely decouples that from the view and reduces magic strings)
  • 11:59:31 <limboo> i think with arguments="" i can replace some strings from the translation files
  • 11:59:38 <cedricziel> yessir
  • 11:59:45 <limboo> i have the value "0" in the german translation-file etc.
  • 11:59:50 <nimius|thephpjo> Ok, i just checked out the dev branch. Everything working fine
  • 12:00:11 <cedricziel> oh noes, you would need something like <label index="domain_model.title">Title of: %s</label>
  • 12:01:54 <cedricziel> the index in the arguments replaces the 0th substitution with DE in your case. the 1st with FR and so on
  • 12:02:00 <cedricziel> (in your case)
  • 12:02:16 <cedricziel> is suspect you need no arguments at all
  • 12:02:28 <cedricziel> just leave them and prepare your xml/xliff files
  • 12:41:53 <floxx> hi ho…i want to define metag tag robots in page configuration. my gist: https://gist.github.com/floxx/fcf0b4aaaccef8a99cdd
  • 12:42:27 <floxx> by saving the page, there comes "Invalid value ("index")" in the select box, in frontend there is only meta tag robots=index
  • 12:43:08 <floxx> it seems the commas are the problem
  • 12:43:15 <floxx> what would be the right syntax here?
  • 12:54:24 <Harpagophyt> Hello! is there a chance to generate the locallang file automtical with the translation keys?
  • 12:57:41 <limboo> cedricziel sorry i was out for lunch
  • 12:58:18 <limboo> with the language files everything works well, but i'd like to put the "translation" directly in the template, because there are only a few words
  • 12:58:29 <limboo> so i think it easier to manage then in the translation-files
  • 13:00:09 <cedricziel> sorry i think you are wrong
  • 13:00:40 <cedricziel> translations are those magic strings you will want to use frequently. the cleanest approach is using language files
  • 13:01:02 <limboo> the thing with %s is working well - but im looking for another solution to put the translation directly in the template
  • 13:01:19 <cedricziel> the dirty approach is using a switch on the language id
  • 13:01:20 <limboo> i know this is not the "clean way" but much easier to read if you only need to translate a few words
  • 13:01:29 <cedricziel> i dont recommend it
  • 13:01:35 <limboo> yup, i also thought about a switch
  • 13:01:42 <cedricziel> it hurts you on the long run-i tell you
  • 13:02:37 <limboo> i think you'r right cedricziel
  • 13:02:44 <limboo> so i'll use those language files =)
  • 13:02:51 <cedricziel> :)
  • 13:03:21 <cedricziel> using language files have another thing i like:
  • 13:03:29 <cedricziel> you can override them with typoscript
  • 13:05:00 <limboo> if i have some "content" like a newsletter signup i only want in german, i have to use an IF-Language-Parameter, right?
  • 13:05:28 <limboo> i think a html-form is wrong in the language-files?
  • 13:50:33 <bjo3rn> floxx still there?
  • 13:55:42 <floxx> bjo3rn: yep
  • 13:55:51 <bjo3rn> ah, hi
  • 13:55:54 <floxx> :)
  • 13:56:29 <bjo3rn> I think your select field items array should be flattened
  • 13:56:33 <bjo3rn> like so:
  • 13:57:07 <bjo3rn> items="{0: 'index,follow', 1: 'index,follow', 2: 'index,nofollow', 3: 'index,nofollow' ... }
  • 13:57:23 <bjo3rn> bs, sec
  • 13:57:42 <bjo3rn> items="{0: 'index,follow', 1: 'index,nofollow', 2: 'noindex,follow' ... }
  • 13:57:49 <bjo3rn> you get the idea ;)
  • 13:58:21 <bjo3rn> ah, wait
  • 13:58:26 <bjo3rn> hehe =)
  • 13:58:30 <floxx> waiting...
  • 13:58:31 <floxx> :-D
  • 13:58:40 <floxx> ...please hold the line...
  • 13:58:48 <bjo3rn> note to myself: read closely then post
  • 13:58:53 <bjo3rn> I
  • 13:59:14 <bjo3rn> I'd set a variable holding the above array for both the select field and later rendering
  • 13:59:59 <bjo3rn> (no more waiting)
  • 14:00:25 <floxx> i chosed the simplest approach: separated the field in 2 selects ;)
  • 14:01:29 <floxx> thanks for your input. next time :-)
  • 14:01:45 <bjo3rn> ok, thanks for waiting ;)
  • 14:03:29 <floxx> hehe
  • 15:08:31 <Harpagophyt> Hello. is there a way to find out what is missing in translation? logging ...
  • 15:09:37 <xaver> Harpagophyt: https://github.com/FluidTYPO3/flll
  • 15:09:57 <xaver> never really tried it
  • 15:11:48 <Harpagophyt> mhm, but there is no standard way
  • 15:13:20 <GRIMMCREATIVE> try it - its funny the first time :)
  • 15:14:01 <xaver> Harpagophyt: if you have a xliff file you can maybe use a program - its a standard for translations
  • 15:29:02 <Harpagophyt> yes, i know xliff - thx
  • 15:44:46 <MatthiasKrappitz> Could someone explain me why my ContentController is not loading correctly although I
  • 15:45:02 <MatthiasKrappitz> 'm doing it exacvtly the same as in EXT:fluidcontent_bootstrap?
  • 15:45:17 <MatthiasKrappitz> ext_tabels.php
  • 15:45:17 <MatthiasKrappitz> \FluidTYPO3\Flux\Core::registerProviderExtensionKey('RS.Raikeelements', 'Content');
  • 15:45:32 <MatthiasKrappitz> Classes/Controller/ContentController.php
  • 15:45:39 <MatthiasKrappitz> namespace RS\Raikeelements\Controller;
  • 15:45:42 <MatthiasKrappitz> use FluidTYPO3\Fluidcontent\Controller\AbstractContentController;
  • 15:45:48 <MatthiasKrappitz> class ContentController extends AbstractContentController
  • 15:45:53 <MatthiasKrappitz> public function quarterImageHeadlineTextAction() {
  • 15:45:59 <MatthiasKrappitz> print_r ($this->getData());
  • 15:46:00 <MatthiasKrappitz> }
  • 15:46:33 <xaver> no pasts in IRC
  • 15:46:34 <MatthiasKrappitz> But nothing happens. Template is used, Content Element is displayed, but Controller Action gets never executed.
  • 15:50:24 <MatthiasKrappitz> I'm also confused as the documentation at http://fluidtypo3.org/documentation/templating-manual/advanced-provider-extensions/custom-flux-controllers/creating-flux-controllers.html says it should be called AbstractFluxController, but in EXT:fluidcontent_bootstrap it is AbstractContentController.
  • 15:50:56 <MatthiasKrappitz> And the documentation does not mention a AbstractContentController at all.
  • 15:53:31 <MatthiasKrappitz> got it working now by not using namespaces: class Tx_Raikeelements_Controller_ContentController extends Tx_Fluidcontent_Controller_AbstractContentController {
  • 15:53:36 <MatthiasKrappitz> strange...
  • 15:53:41 <MatthiasKrappitz> typo3 6.2.3
  • 15:55:01 <xaver> MatthiasKrappitz: what is your goal? a provider ext like fluidcontent_bootstrap?
  • 16:01:33 <MatthiasKrappitz> yes. have it all working but not the controller with namespaces
  • 16:02:01 <MatthiasKrappitz> But I don't care. anymore can live without namespaces, wasted already 2h.
  • 16:04:04 <danilobuerger> MatthiasKrappitz so you dont want any help on that anymore?
  • 16:17:32 <TYPO3ua> Hello, all!
  • 16:18:14 <TYPO3ua> I need your help.
  • 16:21:00 <TYPO3ua> not working this ...{f:translate(key: 'item.label', extensionName: 'tt')} at <flux:field.input name="item" label="{f:translate(key: 'item.label', extensionName: 'tt')}"/>
  • 16:21:44 <TYPO3ua> I don't know Why?
  • 16:27:12 <GRIMMCREATIVE> extensionName
  • 16:27:12 <GRIMMCREATIVE> UpperCamelCased extension key (for example BlogExample)
  • 16:28:56 <TYPO3ua> hm ... my extension key 'tt'
  • 16:31:14 <TYPO3ua> this ... <flux:field.select name="button" items="{register: '{f:translate(key: \'button.1\', extensionName: \'tt\')}', fullybooked: '{f:translate(key: \'button.2\', extensionName: \'tt\')}', expired: '{f:translate(key: \'button.3\', extensionName: \'tt\')}'}"/> good work
  • 16:33:28 <Tjark> hi, some news about the "No fileusage (sys_file_reference) found for given UID." Bug ?
  • 16:51:36 <NamelessCoder> Tjark https://review.typo3.org/#/c/30632/
  • 16:52:50 <Tjark> yeay !
  • 17:27:13 <Tjark> hey @NamelessCoder, cherry pick this one destroys the fal reference picker in BE.
  • 17:27:24 <Tjark> in my case :)
  • 17:27:59 <Guest|62313> Hi everybody, is there a viewhelper for repsonsive images? Cause i dont use CSC... is there a alternative usage?
  • 17:30:05 <bjo3rn> hi Guest|62313 there's no special viewhelper (what would you assume it to do btw?) but it's easy to create a custom content element for that
  • 17:30:20 <bjo3rn> ...with fluidcontent
  • 17:30:23 <NamelessCoder> I can only say that if it worked before, it's because it relied on a bug in the Filter class (by not providing the actual expected format of a reference id)
  • 17:32:17 <NamelessCoder> if the format of a reference id is supposed to be vaid as a single integer it shold be adapted to be so in the code explicitly. But in such a case any use of an unexpected integer (including zero) would thrown an exception rather than ignore the value when rendering it and zero it out when saving it.
  • 17:36:11 <Guest|62313> but how i should create that? The size of image has to resize automatically like the new responsive function of typo 6.2
  • 17:37:04 <bjo3rn> well, I don't know the functionality in 6.2. some time ago I created a content element using picturefill.js
  • 17:38:02 <bjo3rn> what would you expect from a responsive image viewhelper to do?
  • 17:40:14 <artisticMink> Hello, is there a way (or lets say workaround) for accessing flux field values by realurl to do some mapping? Similiar to realurls lookuptable.
  • 18:53:27 <Guest|62313> bjoern, with the new typo 6.2 version comes the function "repsonsive image" which resizes the images for mobile, tablets etc. not with css
  • 19:03:01 <GRIMMCREATIVE> What is TYPO3 doing since 6.2 - it creates multiple images with different sizes. so what you can do is just the same with fluid inside your fluidcontent element. i use the data attribute technique like in the introduction package of TYPO3 6.2
  • 20:30:16 <Outdoorsman> Wow... spent 4 hours trying to upgrade an older TYPO3 site. Apparently there's still a ways to before we have broad extension support of 6.2.x.
  • 20:31:48 <xaver> Outdoorsman: what exts - best way to update is to get rid of old stuff
  • 20:31:51 <xaver> :)
  • 20:32:34 <Outdoorsman> I had some image processing things built into Templavoila that seemed to fail.
  • 20:33:14 <Outdoorsman> Is there a way to still get that to work in TV version 1.9 (TYPO3 CMS 6.2.x compatible)?
  • 20:34:06 <xaver> i hope not :)
  • 20:34:10 * xaver never used TV
  • 20:34:20 <Outdoorsman> I guess I'd like to tackle one thing at a time... upgrade to 6.2.x and then move to fluidtypo3. Maybe that's a bad idea.
  • 20:34:31 <Outdoorsman> You're the man!
  • 20:34:41 <xaver> but i think alex still fixes issues and compatibility
  • 20:34:48 <Outdoorsman> I'm not good enough at TS to do it.
  • 20:35:16 <Outdoorsman> Yes, Alex has been updating like crazy... I was using the latest version from forge.
  • 20:40:51 <Outdoorsman> Can you reuse TS like this in FluidTypo3 or is there a better way? https://gist.github.com/Outdoorsman/77cfd9748aee6f538846
  • 20:42:14 <Outdoorsman> (When I upgraded TV could find the file any more probably because of FAL.)
  • 20:42:45 <Outdoorsman> sorry... [snip]it COULDN'T find[/snip]