Jump to:

17488 Posts in 4473 Topics by 1978 members

Archive

SilverStripe Forums » Archive » Meta tags get cut short

Our old forums are still available as a read-only archive.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1918 Views
  • Scotty
    Avatar
    Community Member
    2 Posts

    Meta tags get cut short Link to this post

    I'm running silverstripe 2.1.0 and I'm having problems with my meta keywords being cut short.

    E.g. <meta name="keywords" http-equiv="keywords" content="christchurch website design, christchurch web site design, christchurch website designers, new zealand web site design company, christchurch website design company, website design, new zealand website designers, new zealand web site designers, website d" />

    Notice the last keyword finishes with d that's meant to be designers.

    Does anyone one know why this might be happening?

    Much appreciated.

  • dio5
    Avatar
    Community Member
    503 Posts

    Re: Meta tags get cut short Link to this post

    My guess is that for the db a Varchar is used and you are exceeding the allowed width.

    Try changing it in sapphire/core/model/sitetree.php

    at line 73 it says

    "MetaKeywords" => "Varchar(255)",

    if you change that too something like

    "MetaKeywords" => "Text",

    does that solve it? (you probly have to flush/ and rebuild the db )

    1918 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.