How to increase 250 character limit for Title field for Custom Fields?

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 week ago #123482 by Dave
Hello, I use descriptive text, img tags, and basic html inline styling for a few of my Titles for Custom Fields.

I need more than 250 characters for a few of these Titles.

I changed maxlength from 250 to 400 in this file:

root/administrator/components/com_jdonation/view/field/tmpl/default.php

and also in

root/administrator/components/com_jdonation/view/plugin/tmpl/default.php,

but these changes did not have any effect.

How can I change the maxlength character limit for Title fields from 250 to 400?

Thanks.

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #123484 by Mr. Dam
Hi,
In database of Joom Donation -> Table #__jd_fields, field: Title has attribute is Varchar 255 already
Dam

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 week ago #123486 by Dave
Hey, thanks!

For other readers: open this table in phpMyAdmin, then use the Structure tab to access the varchar setting for this Title element.

Question:
Is the database varchar change the only required change, or is it also necessary to change the limits in the php files I linked above?

Thx.

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #123489 by Mr. Dam
Hi Dave,
You don't need to change anything in the PHP file
Dam

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 week ago #123493 by Dave

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt