[TYPO3-english] LinkParameter
Bernhard Kraft
kraftb at think-open.at
Wed May 5 13:56:13 CEST 2010
Victor Livakovsky wrote:
> lib.userLink = TEXT
> lib.userLink {
> value = Link with username
> typolink {
> parameter = {$SomePageId}
> additionalParams.data = TSFE:fe_user|user|name //
> TSFE:fe_user|user|username
> additionalParams.wrap = &username=|
> }
> }
If you want to Link the name of a user to some page you should use this
code:
lib.userLink = TEXT
lib.userLink {
data = TSFE:fe_user|user|name
typolink {
parameter = {$SomePageId}
}
}
But in both cases you should use a COA_INT instead of directly a TEXT
object as the username could be different on every request to the server
and this would cause problems with the cache:
lib.userLink = COA_INT
lib.userLink.10 = TEXT
lib.userLink.10 {
# same code as above
}
greets,
Bernhard
More information about the TYPO3-english
mailing list