[TYPO3-english] Check with Typoscript if Templavoila "Link field" is set

Loek Hilgersom loek at netcoop.nl
Thu Oct 7 20:46:26 CEST 2010


Hi Søren,

I think you should be able to do this with override. TSref says:

	if "override" returns something else than "" or zero (trimmed), the
	content is loaded with this!

So:

lib.readonlinelink = TEXT
lib.readonlinelink.value = {$readonlinelinktext.da}
lib.readonlinelink.typolink {
           parameter.data = getIndpEnv:TYPO3_REQUEST_URL
           parameter.override.field = your_fieldname
           title = {$readonlinelinktext.da}
}

Cheers,
Loek



On 10/07/2010 03:47 PM, Søren Madsen wrote:
>
> If the "Link field" is set - use that value for the typolink.parameter.data
> If not - use getIndpEnv:TYPO3_REQUEST_URL


More information about the TYPO3-english mailing list