[TYPO3-project-formidable] hide/disable {link_delete} tag from tempelte doing runetime.
Asbjørn Morell
atmorell at gmail.com
Mon May 21 20:51:52 CEST 2007
Hello,
I am trying to use the same listing form for normal view and auther mode.
This is a part of my template:
<!-- ###ROW1### begin-->
<tr class="row1">
<td>{title}</td>
<td>{image}</td>
<td><a href = "{link_delete}">delete</a></td>
</tr>
<!-- ###ROW1### end-->
I need to hide/remove the {link_delete} if a fe_user does not own this
record. The link_delete is generated from a custom tag:
<customtags>
<tag_link_delete>
<name>link_delete</name>
<value>
<userobj>
<extension>this</extension>
<method>_populateArtLinkDelete</method> //this function checks
permissions and returns an url if access is granted.
</userobj>
</value>
</tag_link_delete>
</customtags>
Best regards.
Asbjørn Morell.
More information about the TYPO3-project-formidable
mailing list