TEST

Blog Pages

Tuesday, February 16, 2010

Add a new field in com_contact administrator view

how we add a new field in com_contact administrator?
Ans:
the below files are exist in Administrator Folder ->components->com_contact

"/com_contact/admin.contact.html.php"
Added just above contact position around line 355

Code:


<>

< class="key" valign="top">

< for="region">< ?php echo JText::_( 'Region' ); ?>:< /label>< /td>

<>

< class="inputbox" type="text" name="region" id="region" size="60" maxlength="255" value="">region; ?>" />

< /td>

< /tr>




"/com_contact/tables/contact.php"
Added just under "alias" string:

code:

"var $region = null;

/** @var string */"


In MySQL:

Code:

"mysql> ALTER TABLE jos_contact_details ADD region VARCHAR(60) AFTER alias;"





Change the readmore link text in joomla

To change the "read more" text
Follow these steps:
-Go to language folder
-Open the en-GB folder
-Find the respective file name like "en-GB.mod_newsflash.ini" or any other, in which the "readmore" link exists.
-Find the read more text in this file and replace it.
Note : In this method its only effect on the module or component you selected, not the whole application.


good luck