[TYPO3-english] Link rel=canonical revisited - does anyone have abetter solution than this?
Taras Sajuk
taras.sajuk at googlemail.com
Wed May 19 09:16:09 CEST 2010
Many thanks, looks much better and the parameter selection can be spread to
different templates easily now. I just corrected one brace (the
additionalParams is a subparam to typolink) and dropped the print and type
params as the canonical should always point to the human readable version of
the page:
> temp.buildHeaderData.30 {
> typolink {
> parameter = #
> returnLast = url
> additionalParams.cObject = COA
> additionalParams.cObject {
> 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="|">
> }
>
Taras Sajuk
2010/5/18 JoH asenau <info at cybercraft.de>
> You should get rid of the conditions and use COA + TEXT + if instead:
>
> temp.buildHeaderData.30 = TEXT
> temp.buildHeaderData.30 {
>
....
> }
> wrap = <link rel="canonical" href="|">
> }
>
> HTH
>
> Joey
>
More information about the TYPO3-english
mailing list