[TYPO3-templavoila] Optional Link
Jigal van Hemert
jigal at xs4all.nl
Sun Jul 19 19:40:50 CEST 2009
Chris Bernhard wrote:
> how can i setup an optional link field in TV?
Make the field with the link (url) of type "Not mapped". Don't forget to
change the mapping of the link text to include the a-tag (OUTER) you are
mapping it to, otherwise the a-tag from the template will still be
displayed.
You can then change the Data Structure XML to make the link with Typoscript.
The part with the link text will have something like:
<TypoScript>
10 = TEXT
10.current = 1
</TypoScript>
If the field with the link URL is called 'field_url' you can add
10.stdWrap.typolink.parameter.field = field_url
If that still renders an a-tag with an empty link field you can easily
surpress it with an if-property.
Regards,
--
Jigal van Hemert.
More information about the TYPO3-project-templavoila
mailing list