[TYPO3-templavoila] Print Version: <meta name="robots" content="noindex">
Christopher
bedlamminusspamhotel at gmail.com
Thu Jun 8 18:29:12 CEST 2006
Florian Seirer wrote:
> Another Post answered by myself. :-/
>
> I couldn't fix the problem itself, the (wrong) meta tag is still there.
> But I wrote the line "Disallow: /*print=1" into my robots.txt.
>
> At first I was confused because the famous selfHTML tutorial told me
> that wildcards aren't allowed in the robots.txt.
>
> According to the robots.txt-check on
> http://www.google.com/webmasters/sitemaps/ at least google won't index
> my print version pages...
>
> Florian Seirer schrieb:
>> Hi list!
>>
>> I successfully made a print version like described in the TV manual.
>> Everything's working fine so far, but typo3 uses its own meta tags
>> (well, those from the default template of course).
>> So in my case there's
>> <meta name="robots" content="all" > written into the source code of
>> the print page which doesn't really mak sense.
>>
>> I'm looking for a way to add the line
>> <meta name="robots" content="noindex">
>> to the print version pages so that google and other search engines
>> won't index them.
>>
>> Is there any way to accomplish this? There is no DS for print
>> templates so I have no idea where else to look...
>>
>> BTW: I'm using typo3 v3.8.1 and TV 0.4.0
You could also have used the same condition that you use to display the
link back to the normal view from the print page:
[gpVar gp:print > 1]
# Assuming you have page.headerData defined
# somewhere else in the main part of the template:
page.headerData.100 = HTML
page.headerData.100.value = <meta name="robots" content="noindex">
[global]
-Christopher
More information about the TYPO3-project-templavoila
mailing list