Page 1 of 1

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

Posted: Tue Mar 02, 2010 3:40 am
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

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

Posted: Wed Mar 03, 2010 12:48 am
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

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

Posted: Wed Mar 03, 2010 2:36 am
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.

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

Posted: Wed Mar 03, 2010 2:49 am
by DCX
Thanks kendo. That worked great! I would have never figured that out on my own.

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

Posted: Wed Mar 03, 2010 5:25 am
by kendo451
Glad it worked for you!

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

Thanks!