IRC logs

20160321

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

IRC log range: 20160321*

20160321

  • 05:54:11 <mddz> hi there
  • 05:54:58 <mddz> is it possible to access a page template backend variable from a content element template?
  • 06:00:51 <cweiske> only if you pass the variable to it
  • 06:01:00 <cweiske> wait
  • 06:01:33 <cweiske> yes, I'd try passing the variable to <v:content.render> in the page template
  • 06:01:41 <cweiske> (but I did not try to do this yet)
  • 06:03:54 <mddz> ah, I see, I will try that :)
  • 06:04:34 <cweiske> hm, that will not work
  • 06:04:38 <cweiske> https://fluidtypo3.org/viewhelpers/vhs/master/Content/RenderViewHelper.html does not accept variables
  • 06:07:37 <cweiske> mddz, maybe you can use https://fluidtypo3.org/viewhelpers/vhs/master/Variable/Register/SetViewHelper.html
  • 06:21:56 <mddz> hmm, that looks interesting cweiske
  • 06:22:13 <mddz> how would I access $GLOBALS["TSFE"]->register['myVar'] from a content element template? jus {myVar}?
  • 06:22:17 <mddz> just*
  • 06:27:00 <cweiske> no, with v:variable.register.get
  • 07:25:48 <mddz> cweiske: if v:variable.register.get works, it should be in the output of <f:debug>{_all}</f:debug>, shouln't it?
  • 07:26:35 <mddz> I tried {v:variable.register.set(value: [{helloWorld}], name: 'hello')} but it doenst seem to work
  • 07:27:24 <mddz> where helloWorld is defined by <flux:field.input name="helloWorld" required="true" /> in the same template
  • 07:28:15 <mddz> does v:variable.register.set need to be in a special section like Configuration or elsewhere?
  • 07:32:52 <mddz> hmm ok, it does work with a hardcoded value, but I can't get my page backend variable into it
  • 07:35:09 <mddz> ok, nevermind, I just put the register.set viewhelper into the Content section
  • 07:35:16 <mddz> thanks for your help :)
  • 07:48:12 <cweiske> mddz, no, it should not be in _all
  • 07:52:01 <mddz> ah, I see. That was confusing me, but I got it working now. It even works as a condition in an f:if viewhelper
  • 07:53:18 <cweiske> _all only contains variables directly available in the current template
  • 07:53:25 <cweiske> the register is outside that scope
  • 07:53:38 <cweiske> which is why you need separate view helpers to access them
  • 10:36:09 <drlimbo> good afternoon
  • 10:36:19 <drlimbo> does anybody already tried my_user_management ext?