IRC logs

20141202

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

IRC log range: 20141202*

20141202

  • 09:40:44 <jmverges> good morning mates
  • 09:41:08 <jmverges> I have a question: If I doo a flux:field.relation, how could I use it into a foreach?
  • 09:55:45 <jmverges> I'm just trying to build a Language Menu without Sr_Language
  • 10:03:06 <jmverges> I have this: <flux:field.relation
  • 10:03:06 <jmverges> name="settings.languageMenu.languages"
  • 10:03:06 <jmverges> label="language"
  • 10:03:06 <jmverges> transform="array"
  • 10:03:06 <jmverges> multiple="true"
  • 10:03:07 <jmverges> minItems="1"
  • 10:03:09 <jmverges> maxItems="100"
  • 10:03:11 <jmverges> size="8"
  • 10:03:13 <jmverges> table="sys_language"
  • 10:03:15 <jmverges> >
  • 10:03:19 <jmverges>
  • 10:03:21 <jmverges> </flux:field.relation>
  • 10:03:26 <Akii> stahp
  • 10:03:30 <Akii> geez
  • 10:03:58 <jmverges> and I just getting an array of numbers instead of sys_language
  • 10:15:35 <soee> jmverges: !pastebin
  • 10:15:40 <soee> !pastebin
  • 10:15:48 <jmverges> sorry, I'm so sorry
  • 10:15:57 <jmverges> I just have a bit of stress here.
  • 10:16:00 <soee> FT3BOT: pastebin
  • 10:16:08 <soee> nood bot :)
  • 10:16:20 <soee> jmverges: why stress ?
  • 10:16:26 <jmverges> work
  • 10:17:05 <jmverges> ...
  • 10:17:15 <soee> take a 2 deeper breaths, think about green meadow :-)
  • 10:17:25 <jmverges> hehehe I will do it ;)
  • 10:17:48 <jmverges> soee, do you know how to work with flux:field.relation and sys_language?
  • 10:18:24 <soee> what do you want to achieve ?
  • 10:18:37 <jmverges> a Language Menu without static_info_tables
  • 10:19:06 <jmverges> I just need to make a relation with sys_language
  • 10:19:20 <jmverges> and then render sys_language title + uid+�
  • 10:19:29 <jmverges> uid*
  • 10:23:50 <soee> try removing transform="array" first
  • 10:24:11 <soee> i didnt used it before so cant tell out of the box whats wrong
  • 10:27:45 <jmverges> http://pastebin.com/Er3sv6MC
  • 10:29:39 <soee> jmverges: remove transform attribute and tell what it returns
  • 10:37:45 <soee> uh and he left :?
  • 10:40:20 <Akii> the stress, he couldn't handle it anymore
  • 10:40:49 <soee> :)
  • 10:41:51 <soee> hmm he wanted language menu without static_info_tables, i wonder how he get localised labelks for each language
  • 10:49:50 <jmverges> soee, I don't know if you wrote something
  • 10:50:01 <soee> [10:23] <soee> try removing transform="array" first
  • 10:51:11 <jmverges> I did�
  • 10:51:17 <jmverges> and I get an error
  • 10:51:24 <jmverges> the argument "each" was registered with type "array", but is of type "string" in view helper "TYPO3\CMS\Fluid\ViewHelpers\ForViewHelper"
  • 10:53:46 <LightAndWire> I have a question to CoreContent. Is it possible to set a default Content element from my variant/version for only a special type (only for image).
  • 10:53:56 <LightAndWire> I found the settings to change the default variant, but in this case i got an error if I use a content type without a specula variant.
  • 10:54:51 <soee> jmverges: ok sorty than it was wrong shot
  • 10:57:06 <jmverges> I'm creating a viewhelper
  • 11:00:58 <soee> why dont you use static_info_tables ?
  • 11:04:44 <jmverges> because all runs slowers
  • 11:04:47 <jmverges> slower
  • 11:04:49 <NamelessCoder> jmverges v:page.languageMenu does not require static_info_tables. Language menus should never be built from a list of language UIDs - the options the language menu ViewHelper supports means you can hide languages that do not have translations
  • 11:05:30 <jmverges> NamelessCoder, documentation says that is required
  • 11:05:46 <NamelessCoder> where?
  • 11:06:01 <jmverges> https://fluidtypo3.org/viewhelpers/vhs/master/Page/LanguageMenuViewHelper.html
  • 11:06:13 <jmverges> https://fluidtypo3.org/viewhelpers/vhs/development/Page/LanguageMenuViewHelper.html
  • 11:06:26 <NamelessCoder> I don't think that note is correct
  • 11:07:41 <NamelessCoder> nope, don't see anything in there that would require that extension
  • 11:07:53 <jmverges> okey
  • 11:08:54 <NamelessCoder> give it a shot without, I'm pretty sure it works
  • 11:12:17 <jmverges> okey
  • 11:12:25 <jmverges> I will let you know
  • 11:28:37 <drlimbo> good morning
  • 11:28:51 <drlimbo> is there a way to get the "link" to an image with v:media.image?
  • 11:30:06 <soee> drlimbo: use URI ? https://fluidtypo3.org/viewhelpers/vhs/master/Uri/ImageViewHelper.html
  • 11:31:25 <drlimbo> oh awesome soee!
  • 11:32:20 <drlimbo> thanks
  • 11:32:36 <soee> np. hope it helps
  • 11:32:36 <drlimbo> i tried around with v:media.image as="var" =P
  • 13:45:36 <drlimbo> how can i insert the "page-keywords" in the meta-tags?
  • 13:50:31 <jmverges> hey mates, why $settings = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); is not returning always the same values? I'm trying to access to $settings['plugin.']['m8thassets.']['settings.'] but is not always set. This happens into a Service class that doesn't extend from anything
  • 13:52:05 <jmverges> or, how could I get all the typoscript configuration from any place
  • 13:56:18 <soee> if you have several instances of a plugin, it might change
  • 13:56:33 <soee> as teh plugin configuration changes in various places ? just a shoot
  • 13:56:52 <jmverges> uhm
  • 13:57:02 <jmverges> maybe I'm doing it wrong
  • 13:57:12 <jmverges> I have some Constants / Settings in the plugin
  • 13:57:25 <jmverges> and I need to be able to access from anyplace
  • 13:58:38 <soee> maybe Claus can help you more, i havent use it
  • 13:58:41 <jmverges> this service is called from backend
  • 14:07:17 <drlimbo> is there an "inline-content" or something for the v:asset.script viewhelper?
  • 14:07:38 <drlimbo> i have a script with conditional-comments, id like to add to my header
  • 14:08:11 <jmverges> $GLOBALS['TSFE'] is null soee
  • 14:08:40 <soee> jmverges: its for fronted so if you are in backend its not loade dby default
  • 14:10:31 <jmverges> so, where could I define settings in typoscript for frontend and backend?
  • 14:11:11 <soee> what settings are you taling about ?
  • 14:13:19 <jmverges> for example, I need a path for a less file
  • 14:14:31 <soee> what for may i ask ? :)
  • 14:16:58 <jmverges> because I'm rendering some styles in frontend and backend
  • 14:17:03 <jmverges> the same styles
  • 14:17:20 <jmverges> and that was only a example
  • 14:17:34 <jmverges> I'm rendring Less for RTE
  • 14:17:44 <soee> why dont you link to those styles directly in your template ?
  • 14:18:06 <jmverges> is not the case
  • 14:18:15 <jmverges> I also reading a json file
  • 15:18:40 <jmverges> I didn't get it... shit
  • 15:18:56 <jmverges> I was taking a look to http://www.emoticode.net/php/get-typoscript-configuration-everywhere.html
  • 17:28:14 <jmverges> there is some way to modify <body> with flux vhs etc?
  • 21:31:59 <NamelessCoder> jmverges there is no such option for <body>, use page.* in TS
  • 21:33:04 <NamelessCoder> jmverges to clone the typoscript used for BE and FE, do module.tx_yoursignature.settings < plugin.tx_yoursignature.settings