IRC logs

20160404

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

IRC log range: 20160404*

20160404

  • 03:22:38 <Guest|25034> Hi, how to render header field from FCC in ext:news plugin, searched logs but no help, and some 'I got it' - not very helpfull.
  • 03:24:07 <cweiske> what is FCC?
  • 03:24:47 <Guest|25034> fluidcontent_core
  • 11:28:30 <justcasoer> Hi, i could need some help.
  • 11:29:07 <justcasoer> i just updated vhs and after i updated all namespaces i get a new errormsg: Could not analyse class:FluidTYPO3\Vhs\ViewHelpers\Var\SetViewHelper maybe not loaded or no autoloader?
  • 11:29:17 <justcasoer> can someone help mich with this one?
  • 11:32:42 <NamelessCoder> replace v:var.set with v:variable.set (and check the change log, there are others!)
  • 11:43:23 <justcasoer> Thank you very much! You saved my day!
  • 11:48:53 <NamelessCoder> you're welcome :)
  • 11:51:47 <justcasoer> The Homepage is running, but now i have the problem that i get the error :
  • 11:51:47 <justcasoer> Fluid Content type not selected - edit this element in the TYPO3 backend to fix this!
  • 11:53:06 <justcasoer> If i try to choose a type, "there is just: fluid Content typ" and i cant choose anything.
  • 11:54:03 <Guest|65234> hey guys
  • 11:54:08 <Guest|65234> anyone still on?
  • 11:54:20 <Guest|65234> i got a problem with vhs
  • 11:54:37 <Guest|65234> and its rendering of links
  • 11:54:42 <Guest|65234> tried this
  • 11:54:44 <Guest|65234> <v:link.typolink configuration="{parameter: '{buttonListObject.item.link}',ATagParams: 'class=button','onClick=something()'}">
  • 11:55:30 <NamelessCoder> code contains syntax error in ATagParams. String escaping required.
  • 11:55:55 <Guest|65234> sorry?
  • 11:56:02 <Guest|65234> what woulod be the correct way?
  • 11:56:07 <Guest|65234> *would
  • 11:56:40 <Guest|65234> each param on its own works
  • 11:56:50 <Guest|65234> but it is not working with bot params
  • 11:57:23 <NamelessCoder> ATagParams: 'class=button','onClick=something()'
  • 11:57:59 <Guest|65234> but this is what i did?
  • 11:58:57 <NamelessCoder> but that's not what you should do. Check the typolink reference what it requires as type of the "ATagParams" configuration array member then make sure you pass that format
  • 11:59:21 <NamelessCoder> if it wants an array, you need to pass ATagParams: {class: 'button', onClick: 'something();'}
  • 11:59:48 <NamelessCoder> if it wants a string, that string likely needs a custom format for those properties, for example 'class=button onclick=something();'
  • 12:01:04 <Guest|65234> in doc it is said to do it like this:
  • 12:01:10 <Guest|65234> <v:link.typolink configuration="{parameter: '{buttonListObject.item.link}',additionalParams: 'class=button','onClick=something()'}">
  • 12:01:26 <Guest|65234> but this doesn't work too
  • 12:01:46 <NamelessCoder> that's probably not from our docs, if it is, someone made a pretty big mistake.
  • 12:02:25 <Guest|65234> https://fluidtypo3.org/viewhelpers/vhs/master/Link/TypolinkViewHelper.html
  • 12:02:26 <NamelessCoder> multiple things tell me it's not official docs, for one thing the formatting. We always put spaces between array keys and previous values
  • 12:02:53 <NamelessCoder> the code you gave does not appear on that page
  • 12:03:12 <Guest|65234> last example
  • 12:04:08 <Guest|65234> please could you just give me an example how to generate a vhs link with class and onclick
  • 12:04:11 <NamelessCoder> the docs really do not say to do it that way. They say that "configuration" is supposed to be an array, can be defined inline if you wish, or come from a variable. How that array must be structured is noted in the docs the main text links to, on the official TYPO3 docs site (since we do not document that array - it is entirely TYPO3 core and also applies many other places than Fluid)
  • 12:05:11 <NamelessCoder> that depends on how you defined that link - the TCA of buttonListObject.item.link.
  • 12:05:28 <NamelessCoder> if it contains an URL I would just use simple <a href=""> tags.
  • 12:06:21 <NamelessCoder> if it is a link wizard then you do need this v:link.typolink but may consider plain <a href=""> combined with the URI version https://fluidtypo3.org/viewhelpers/vhs/master/Uri/TypolinkViewHelper.html and put your onclick stuff in the a-tag properties as normal
  • 12:06:21 <Guest|65234> no it is coming form link wizard
  • 12:06:59 <NamelessCoder> use the URI version of the ViewHelper as value of the "href" attribute of your <a> tag
  • 12:09:40 <Guest|65234> you mean like this?
  • 12:09:41 <Guest|65234> <a href="<v:uri.typolink configuration='{buttonListObject.item.link}'" class="button" onclick="something()"> Link-Label </a>
  • 12:10:50 <NamelessCoder> you should take a closer look at the fluid syntax documentation (or you will have a pretty hard time in the future after I give you the facit on this one)
  • 12:11:17 <NamelessCoder> <a href="{v:uri.typolink(parameter: buttonListObject.item.link)}" class="button" onclick="something">Link label</a>
  • 12:12:03 <NamelessCoder> it'll be very hard to solve many use cases unless you know about such alternative versions of viewhelpers as well as how to use inline syntax
  • 12:14:31 <justcasoer> NamelessCoder: can i ask you one more questen, when you are finished?
  • 12:14:40 <Guest|65234> : Argument "parameter" was not registered.
  • 12:14:54 <Guest|65234> used the code you wrote in
  • 12:17:13 <NamelessCoder> <a href="{v:uri.typolink(configuration: {parameter: buttonListObject.item.link)}}" class="button" onclick="something">Link label</a>
  • 12:17:52 <NamelessCoder> I wouldn't expect you to catch that one - but it would have been more likely if you were comfortable with the inline syntax instead of just copy/pasting ;)
  • 12:18:13 <NamelessCoder> justcasoer don't ask to ask, just ask
  • 12:18:31 <Guest|65234> this generates this:
  • 12:18:31 <Guest|65234> <a href="{v:uri.typolink(configuration: {parameter: buttonListObject.item.link)}}" class="button" onclick="something">Link label</a>
  • 12:22:28 <justcasoer> sorry i already asked but then the guest joinded an i dont wanted to be impolite.
  • 12:22:37 <justcasoer> i geht this error on the page: Fluid Content type not selected - edit this element in the TYPO3 backend to fix this!
  • 12:22:45 <justcasoer> but i cant chose a type
  • 12:24:53 <NamelessCoder> justcasoer if your TCA or ACL doesn't allow tx_fed_fcefile you should fix that
  • 12:25:21 <NamelessCoder> if it does and the values don't include your template, you may have a parsing error
  • 12:25:55 <NamelessCoder> <a href="{v:uri.typolink(configuration: {parameter: buttonListObject.item.link}})" class="button" onclick="something">Link label</a> (gotta know that inline syntax)
  • 12:26:02 <justcasoer> i dont really understand what you mean. i just updated from 6.1.x to 6.2.x . before the update everything worked
  • 12:27:21 <NamelessCoder> justcasoer is the "Content type" set to "Fluidcontent" and do you see the field "Fluid content type" when editing the content and does the selector have any values?
  • 12:28:21 <justcasoer> "Fluid content type"
  • 12:28:34 <justcasoer> just this one
  • 12:29:53 <NamelessCoder> justcasoer you are looking for this field: http://i.imgur.com/ZEJNpAy.png
  • 12:30:39 <Guest|65234> thank you, you made my day. and yes you are right i have to know more about the correct syntax. i am still in learning process.
  • 12:30:45 <NamelessCoder> when "Type" (which is CType in database) is set to "fluidcontent_content" (the value behind the label "Fluid Content" in the left selector), then you should see the right selector listing all your templates
  • 12:31:10 <NamelessCoder> you're welcome Guest|65234
  • 12:31:52 <Guest|65234> you changed the ending brackets:
  • 12:31:54 <Guest|65234> <a href="{v:uri.typolink(configuration: {parameter: buttonListObject.item.link})}" class="button" onclick="something">Link label</a>
  • 12:32:01 <Guest|65234> this worked :)
  • 12:32:16 <NamelessCoder> yeah, 4K monitor + distance + hurry = typos :)=
  • 12:32:32 <Guest|65234> have a good day furthermore
  • 12:32:36 <NamelessCoder> you too!
  • 12:32:40 <justcasoer> http://s23.postimg.org/b4xjixj17/typo3.jpg
  • 12:33:36 <NamelessCoder> justcasoer if the selector has no values then my comment from 18:25 applies - you probably have a parsing error in the template
  • 12:33:47 <NamelessCoder> (which would cause it to be excluded from configuration)
  • 12:34:15 <NamelessCoder> that, or you have additional migrations to perform after updating one or more extensions (vhs, flux) - see changelogs of each to know what to migrate
  • 12:35:06 <justcasoer> i updated an activated everything like before. thank you for the hint. i will try to find the error tomorrow.
  • 12:35:19 <justcasoer> i hope i gonna find it
  • 12:36:23 <justcasoer> have a nice day!
  • 12:36:27 <NamelessCoder> you too :)