cancel
Showing results for 
Search instead for 
Did you mean: 

Changing link.description field length

dwinfield
Champ in-the-making
Champ in-the-making
Has anyone found a way to increase the character limit for Links description fields?  Right now it's 255 (or 256?) characters.  It has been "suggested" to me that that's not enough.  I went through the mysql database and none of the tables seemed to jump out at me.  I've been going through the many lucene indexes (by using luke http://www.getopt.org/luke/ ) but haven't found any sort of definition.
3 REPLIES 3

dwinfield
Champ in-the-making
Champ in-the-making
To give an update, I opened up the alfresco_node_properties table, found a link, and changed the description to contain 400 or so characters.  This was saved to the database correctly

When viewing it, I can view all the characters.  When I click to edit the link, it's truncated.

However, using firebug plugin for firefox, I see that the response does have all the text it the json representation.  So really, what's limiting it?  is it the fact that it's a "<textarea>" and maybe the yahoo SimpleEditor (or tiny mce) is supposed to take control of all of those elements?

mikeh
Star Contributor
Star Contributor
It's in linkedit.js, line #251
// Description
this.widgets.linkForm.addValidation(this.id + "-description", Alfresco.forms.validation.length,
{
   max: 256,
   crop: true
}, "keyup");
Change 256 there - I'd recommend no more than 2048 though, otherwise you might start getting slow page loads, etc.

Thanks,
Mike

dwinfield
Champ in-the-making
Champ in-the-making
Good lord, such an easy change.  I think I searched for "255" instead of 256 and eclipse told me no results found…which is correct.

Much appreciated.