[TYPO3-english] Link rel=canonical revisited - does anyone have abetter solution than this?
JoH asenau
info at cybercraft.de
Tue May 18 17:51:35 CEST 2010
> Here is my TS solution where a list of "to be included" GPvars can be
> specified, all other will be dropped:
You should get rid of the conditions and use COA + TEXT + if instead:
temp.buildHeaderData.30 = TEXT
temp.buildHeaderData.30 {
typolink {
parameter = #
returnLast = url
}
additionalParams.cObject = COA
additionalParams.cObject {
10 = TEXT
10 {
dataWrap = &type={GPvar:type}
if.isTrue.data = GPvar:type
}
20 = TEXT
20 {
dataWrap = &print={GPvar:print}
if.isTrue.data = GPvar:print
}
30 = TEXT
30 {
dataWrap =
&tx_rlmpofficeimport_pi1[page]={GPvar:tx_rlmpofficeimport_pi1|page}
if.isTrue.data = GPvar:tx_rlmpofficeimport_pi1|page
}
40 = TEXT
40 {
dataWrap = &tx_ttnews[tt_news]={GPvar:tx_ttnews|tt_news}
if.isTrue.data = GPvar:tx_ttnews|tt_news
}
}
wrap = <link rel="canonical" href="|">
}
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english
mailing list