Elxis CMS Forum

Support => Administration => Topic started by: gsot on November 12, 2010, 12:33:00

Title: Change dimension of textbox
Post by: gsot on November 12, 2010, 12:33:00
Hallo.

I had a problem with the size of the titles in my content items, cutting off lengths with more than 100 characters. I realised  it was due to the length of the title textbox in the administration panel.

So, I ended up in changing maxlength=100 to maxlength=255 in administrator->components->com_content->admin.content.html.php on line 823

Now it works fine.

My thoughts are though, if that would generate any malfunctions. If anyone has any objection, plz inform me.
Title: Re: Change dimension of textbox
Post by: CREATIVE Options on November 12, 2010, 13:39:25
The proper solution is to change it from the table from your Database, because now you have change one of the basic files of the Elxis distribution and in a future upgrade / patch you must be careful for not loosing any data.

So i suggest, to restore the file & make that change at your database.
Title: Re: Change dimension of textbox
Post by: gsot on November 12, 2010, 14:03:12
Thanks for the comment! I would take into consideration that fact in elxis next update.

By the way, the database field is set to 255. It is the textbox length that reduces the title to 100 characters.
Title: Re: Change dimension of textbox
Post by: CREATIVE Options on November 12, 2010, 14:41:44
Ok, strange, I must not understand witch "textbox" you mention.
Title: Re: Change dimension of textbox
Post by: gsot on November 12, 2010, 15:00:10
It is strange indeed, but it is a customisation that must be done! Cant afford titles below 100 chars.

The textbox code:
Code: [Select]
<td>Τίτλος:</td>
<td colspan="3">
<input type="text" name="title" class="inputbox" size="30" maxlength="255" value="" />
</td>

The textbox position:

[attachment deleted by admin]
Title: Re: Change dimension of textbox
Post by: CREATIVE Options on November 12, 2010, 15:19:20
your Elxis version ?
Title: Re: Change dimension of textbox
Post by: gsot on November 12, 2010, 21:26:33
Sorry for the late response. It is 2009.2 Electra

To specify my question: I am wondering if modifying the html code of the administration panel (i.e. the length of a textbox) generates any malfunctions in elxis. Why the title textbox, as shown in the image above, is reduced to 100 chars while the field in the database can afford up to 255?

Title: Re: Change dimension of textbox
Post by: apkoutsou on November 14, 2010, 15:35:40
The field in the database may hold more if you select a different field type (see for example the text field that holds your item intro- or main-text)...

You may change the "maxlength" option from the textbox input tag up to 255 characters without any problem! But make sure you change also the size of the textbox (it's really annoing to write a 255-character long text in a small textbox  ;) )