How/where to edit Admin area labels

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Ulysses
Forum Members
Forum Members
Posts: 64
Joined: Sat Jan 27, 2007 11:41 pm

How/where to edit Admin area labels

Post by Ulysses »

I ned to edit some Admin area labels and add some explanations next to the fields. Where do I make changes to the Add New Content and Edit Content panels?

Here's a screengrab of the panel in Add New Content > Main as an example.

Thanks.

[gelöscht durch Administrator]
chrisl
Forum Members
Forum Members
Posts: 57
Joined: Fri Dec 30, 2005 10:08 am

Re: How/where to edit Admin area labels

Post by chrisl »

To change the admin labels go to

/admin/lang/en_US/admin.inc.php

and change

$lang['admin']['title'] = 'Title';

This will of course change every instance of the variable 'title' but you can change the variable and put it into admin/addcontent.php

to put new text is a little trickier but try this

in the admin/addcontent.php file look for (about line 444)

Code: Select all

<div class="pageoverflow">
					<p class="pagetext"><?php echo $contentarray[$i][0]; ?></p>
					<p class="pageinput"><?php echo $contentarray[$i][1]; ?></p>
				</div>
and change to

Code: Select all

<div class="pageoverflow">
					<?php if ($i == 0 & $currenttab == 0 )	{
					$extratext = ' put your new text here';
					} else {
					$extratext = '';
					}
					?>
					<p class="pagetext"><?php echo $contentarray[$i][0]; ?></p>
					<p class="pageinput"><?php echo $contentarray[$i][1] .$extratext; ?></p>
				</div>
Not tested for all ramifications and please back up all files before changing
Last edited by Anonymous on Sat Mar 03, 2007 2:59 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”