White bar with "index,follow" appearing in Contao 2.10.0
I just completed a first upgrade from a 2.9.5 version to 2.10.0. I've got the .xhtml and .html5 templates updated and replaced the .tpl files initially with the .xhtml flavor for the page layouts.
Immediately, I'm now seeing a white horizontal bar at the top of the screen just above the body background in both Firefox 5.x and IE 9.x that says "index,follow". It seems that the robots setting in the page layout is generating this. I've never seen this before in a Typolight or Contao install, I assume that there is some issue in the new version that is causing this to default to a visible state.
If I comment out the
Code:
<?php echo $this->robots; ?>
and save the .xhtml template file, this error clears. I can control this behavior with a robots.txt file.
Anybody have a thought about how to clear this issue? Shouldn't this be "hidden" by default?
Ernest McDermon
Snellville, GA
Re: White bar with "index,follow" appearing in Contao 2.10.0
I don't have that. Can you post a screenshot, and the HTML source code around that area?
edit: the answer is in the post below
Re: White bar with "index,follow" appearing in Contao 2.10.0
Change from
Code:
<?php echo $this->robots; ?>
to
Code:
<meta name="robots" content="<?php echo $this->robots; ?>" />
SOLVED: White bar with "index,follow" appearing in Contao 2.
Yes, I had received an email from a friend in Australia (hat tip to Peter Bowey) about this issue last night and just applied the fix both of you suggested. This cleared the error immediately, and the page validates properly for .xhtml.
I went ahead and double checked my work and found another tag that I missed regarding IE-6 warning and plugged that in as well. I'm having to go through the templates I use now to upgrade them to Contao 2.10.0 flavor.
Thank you very much for the quick response and fix to the error I was seeing!
Ernest McDermon
Snellville, GA