A meta description should be allow us to go longer than 255 characters.

I propose the following change to nodewords.install:

/* Removing 255-char maximum limitation for meta tags */
function nodewords_update_6() {
  $items = array();
  $items[] = update_sql("ALTER TABLE {nodewords} MODIFY content TEXT;");
  return $items;
}

This was necessary during a Movable Type import, which utilizes an 'Excerpt' (NOT Drupal's Teaser) as the meta description as well as in the RDF feed.

Comments

Robrecht Jacques’s picture

Version: master » 5.x-1.5
Status: Needs review » Fixed

Will be fixed in nodewords-5.x-1.6. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

eshbaugh’s picture

Title: Remove 255-char tag value limitation. » Increase Keyword field size to 1023 in 6.x
Version: 5.x-1.5 » 6.x-1.0-rc1
Status: Closed (fixed) » Active

Here is a method I used to circumvent this issue on 6.x.

1.) In the database within the nodewords table, increase the content field size from 255 to 1023
Note: that the content field is used for both description and keywords

2.) Edit nodewords.module and change the max_size in function _nodewords_get_settngs() from 255 to 1023.

3.) Make sure to logout and restart your browser session, had a little trouble seeing this change at first.

...Now you can enter a very long description and keywords.

Keep in mind that you will need to revisit this whenever you upgrade the nodewords (Meta Tags) module.

eshbaugh’s picture

Title: Increase Keyword field size to 1023 in 6.x » Remove 255-char tag value limitation
Version: 6.x-1.0-rc1 » 5.x-1.5
Status: Active » Closed (fixed)

Mistakenly changed the issues settings. Just changing them back... sorry.