Note that there are some explanatory texts on larger screens.

plurals
  1. POTypo3 Fluid: What is the correct way to render flux:flexform.field.wizard.link?
    text
    copied!<p>I'm working with the Typo3 6.1 and Fluid templates, using the <a href="http://fedext.net" rel="nofollow">fedext.net</a> set of tools. I have the content element back-end template defined like this:</p> <pre><code>{namespace flux=Tx_Flux_ViewHelpers} {namespace v=Tx_Vhs_ViewHelpers} &lt;f:layout name="Content" /&gt; &lt;div xmlns="http://www.w3.org/1999/xhtml" xmlns:flux="http://fedext.net/ns/flux/ViewHelpers" xmlns:v="http://fedext.net/ns/vhs/ViewHelpers" xmlns:f="http://fedext.net/ns/fluid/ViewHelpers"&gt; ... &lt;flux:flexform.object name="item"&gt; &lt;flux:flexform.field.input name="url"&gt; &lt;flux:flexform.field.wizard.link /&gt; &lt;/flux:flexform.field.input&gt; &lt;/flux:flexform.object&gt; </code></pre> <p>And then I'm rendering it in the front-end like this</p> <pre><code>&lt;f:link.external uri="{section.item.url}"&gt; {section.item.url} &lt;/f:link.external&gt; </code></pre> <p>And the problem is that link backend wizards allows user to set the links like <code>http://www.google.com/ _blank - Google</code> which stands for <code>href target css-class title</code> and that ends up in the following front-end HTML render:</p> <pre><code>&lt;a href="http://www.google.com/ _blank - Google"&gt; http://www.google.com/ _blank - Google &lt;/a&gt; </code></pre> <p>I wonder is there already any ViewHelper which allows to render link widget data properly? Or I should implement one myself? I already checked these docs:</p> <ul> <li><a href="http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartV/FluidViewHelperReference.html#f-link-external" rel="nofollow">FluidViewHelperReference</a></li> <li><a href="https://fedext.net/viewhelpers/vhs/Page/LinkViewHelper.html" rel="nofollow">LinkViewHelper</a></li> </ul> <p>and I've sticked to the first one, but it is a bit simpler than what I really need. Probably there is also a ViewHelper which can split the link data by space character and then I can render the link but sound like a not reliable work-around.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload