Search code examples
typo3typo3-7.6.xviewhelper

TYPO3 <f:link.action> viewhelper that renders only the url (href) not the a tag


I have the need in a fluid template to create a link for a complete table row, this syntax requires the following html code (taken from this question) <tr class="clickable-row" data-href="url://http://domain.com/index.php?..."> which I try to produce with an inline viewhelper annotation:

<tr class="clickable-row" data-href="url://{f:link.action(pageUid: settings.detailPid, absolute: 'TRUE', controller: 'Object', pluginName: 'Objects', action: 'detail', arguments: {object:item})}">

this wraps the link in an <a tag> that messes all up


Solution

  • The ViewHelper you are looking for is <f:uri.action> https://fluidtypo3.org/viewhelpers/fluid/master/Uri/ActionViewHelper.html