


Like with IMAGE objects, TSFE also holds some interesting info whenever a typolink is created.
Here's an example that retrieves the last link and target after the typolink has been created.
lib.lastTypoLink = COA lib.lastTypoLink { 10 = TEXT 10.value = test # Remember to change this to a page that exists in your system. 10.typolink.parameter = 26 10.wrap = |<br /> 20 = TEXT 20.data = TSFE:cObj|lastTypoLinkUrl 20.wrap = lastTypoLink Url = |<br /> 30 = TEXT 30.data = TSFE:cObj|lastTypoLinkTarget 30.wrap = lastTypoLink Target = |<br /> }
Related snippets:
More fun with TSFE - Getting image information
Fun with TSFE Part 1: Getting additional IMAGE imformation
Fun with TSFE Part 3: Getting client information
Fun with TSFE Part 4: Other useful information
This snippet was submitted by Peter Klein


Comments (0)