Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Extending the Meta Keyword Field word count

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4489 Views
  • bod
    Avatar
    Community Member
    72 Posts

    Extending the Meta Keyword Field word count Link to this post

    Is there a way to extend the Meta Keyword field as it seems to be cutting off after 255 chars?

  • rbquirke
    Avatar
    Community Member
    70 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    Hi Bod

    Not really. The column type of MetaKeywords in MySQL is varchar, which has a 255 character limit.
    Extending would mean changing the column type = messing around with core files.

    Personally, I don't rate the importance of meta keywords too highly, so I wouldn't go out of my way trying to increase the field length, but that is just me

  • bod
    Avatar
    Community Member
    72 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    Well I have one p*ssed off client and to be honest I don't blame him, keywords have their place, admittedly not as important as they once were but still....limiting the field to a 255 VarChar is just plain daft, sigh. Yet more SS nonsense...getting to the end of my patience with some of these 'features' tbh....

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    You could create your own Text field in Page.php then include in with the relevant tags around it in the Head of the template, then use is as an alternative to the built in meta-tags.

  • bod
    Avatar
    Community Member
    72 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    Seems in 2.3 the best way to achieve a more verbose keyword structure is to keep the keyword field blank and just input the keyword Meta tag plus keywords into the Custom Meta Tags Field instead.

    Shame no one from SS saw this post in time to reply with that suggestion, but that's the answer that offers the least pain and remains unaffected by future upgrades or patches (unless the Custom function gets dropped in a future edition that is) for now until the keyword field VarChar is changed.

  • gavin
    Avatar
    Community Member
    13 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    I'm running into this problem as well. My client spent a good amount of time inputting keywords, only to find out it removed all but 255 characters after he saved the page. This seems like something that was overlooked by the SilverStripe team. This field should have a Text datatype. It's obvious this field type was the original intention because of the large size of the textarea.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    This seems like something that was overlooked by the SilverStripe team..

    Well apart from reading this thread I would have thought MetaKeywords greater then 255 characters was an edge case rather then the norm?. Maybe I just haven't cared too much for SEO to worry about it

    Ok so lets improve on what we have currently but deciding the best way to go about this -

    a) Make it a Text Field - would result in a (small) DB overhead for a (small?) group of users benefit. Is > 255 really needed for everysite or is it just this one.

    b) Make the MetaKeywords box smaller to convey they should only have 255. No need for a DB table change. Will stop confusion, give a user a good indication.

    c) Leave it as it is.

    I think making it a Text DBField is worth any tiny tiny DB overhead. What do you guys think? If no complaints then I will change it for the next 2.4 release.

  • bod
    Avatar
    Community Member
    72 Posts

    Re: Extending the Meta Keyword Field word count Link to this post

    Hi Willr,

    I think it would be a good call if it's do-able, a lot of sites I come across would use a keyword range larger than 255 chars. I stick to around 500 ish myself (maybe a bit more for meta desc) with our own CMS's with a small js count down script so clients know when they are getting to the end and not wishing to brag but our clients enjoy a good rating in G & Y and verbose keywords would be just one (small but investable) part of a comprehensive approach to SEO we take.

    4489 Views
Page: 1 2 3
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.