Results 1 to 4 of 4

Thread: White bar with "index,follow" appearing in Contao 2.10.0

  1. #1
    User
    Join Date
    09-08-09.
    Location
    Snellville, GA
    Posts
    194

    Default 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

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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

  3. #3
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default 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; ?>" />
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  4. #4
    User
    Join Date
    09-08-09.
    Location
    Snellville, GA
    Posts
    194

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •