How to increase the length of the header material and categories in Joomla 1.5

By default, the length of the header material in Joomla 1.5 can not exceed 50 characters. On the forums often ask the question: is it possible to increase the length of the header material? Of course you can, although it is necessary to make some modifications.

Increase the length of the header material (easiest)

  1. Find the file / components / com_content / views / article / tmpl / form.php code:
    <Input class="Inputbox" type ="Text" id ="Title" name ="Title" size ="50" maxlength ="100" value ="<? Php echo $ this-> escape ($ this-> article-> title);?>" />

    and change the attributes of size and maxlength on the need:

    <Input class="Inputbox" type ="Text" id ="Title" name ="Title" size ="50" maxlength ="255" value ="<? Php echo $ this-> escape ($ this-> article-> title);?>" />
  2. Save changes to the file form.php

Increase the length of the header material (recommended)

This method is not very different from the first, but avoids direct edits files in a directory component, implemented at the level of the template.

  1. Copy the file / components / com_content / views / article / tmpl / form.php in the directory / templates / imyashablona / html / com_content / article / form.php
  2. Produce with this file all the modifications described in the previous version, but the component files remain untouched, and as a result, when you upgrade Joomla you do not have to do the editing again.

Increase the length of the header categories

  1. Find the file administrator / components / com_categories / admin.categories.html.php code:
    <Input class="Text_area" type ="Text" name ="Title" id ="Title" value ="<? Php echo $ row-> title;?>" size ="50" maxlength ="50" title ="<? Php echo JText:: _ ('A long name to be displayed in headings');?>" />

    and replace it with:

    <Input class="Text_area" type ="Text" name ="Title" id ="Title" value ="<? Php echo $ row-> title;?>" size ="50" maxlength ="255" title ="<? Php echo JText:: _ ('A long name to be displayed in headings');?>" />
  2. Save changes to a file admin.categories.html.php

Comments are closed.