[solved] How to change Title and Menu Text input field length in control panel?

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
DCX
Forum Members
Forum Members
Posts: 31
Joined: Fri Jan 09, 2009 7:35 am

[solved] How to change Title and Menu Text input field length in control panel?

Post by DCX »

I wish to change the form fields input length displayed in editcontent.php. I am using V1.6.6.

I manage many CMSMS sites and when editing pages in the control panel I find the "Title" and "Menu Text" input fields too short, about 25 characters. I want them to be about 100.

I thought I found it by editing admin/templates/copycontent.php like this...

Code: Select all

    <div class="pageoverflow">
      <p class="pagetext">{$lang_pagemenutext}:</p>
      <p class="pageinput"><input type="text" name="to_menutext" size="50" maxlength="255" value="{$fromobj->MenuText()}" /></p>
    </div>
I changed the value size="50" to size="100" but no joy.

Can anyone please help me to lengthen the fields for Title and Menu Text when editing pages in control panel?

Thank you
Last edited by DCX on Wed Mar 03, 2010 5:56 am, edited 1 time in total.
DCX
Forum Members
Forum Members
Posts: 31
Joined: Fri Jan 09, 2009 7:35 am

Re: How to change Title: and Menu Text: input field length in control panel?

Post by DCX »

Pardon the bump but I thought a screenshot would make this clear in case it wasn't. Since posting this I have tried many ways to accomplish my goal with no success. Help is really appreciated.

Image
kendo451

Re: How to change Title: and Menu Text: input field length in control panel?

Post by kendo451 »

You are using the N-Clean-Grey theme.

You can over-ride the default width by editing the style.css stylesheet found in:

/admin/themes/NCleanGrey/css/style.css

You could add this styles after line 97:

.pageoverflow .pageinput input[type="text"] { width:300px;}

You can adjust the width to make it what you prefer.

However it will not work for IE6.

Also, whenever you upgrade to a new version of CMS Made Simple, it will overwrite the theme, so you will need to change the stylesheet again.
DCX
Forum Members
Forum Members
Posts: 31
Joined: Fri Jan 09, 2009 7:35 am

Re: How to change Title: and Menu Text: input field length in control panel?

Post by DCX »

Thanks kendo. That worked great! I would have never figured that out on my own.
kendo451

Re: How to change Title: and Menu Text: input field length in control panel?

Post by kendo451 »

Glad it worked for you!

Please add [solved] to the title of this post.

Thanks!
Post Reply

Return to “CMSMS Core”