[solved] Width of input for oneline="true" - where do I adjust it?

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
lone
Forum Members
Forum Members
Posts: 71
Joined: Mon Feb 27, 2006 1:36 pm

[solved] Width of input for oneline="true" - where do I adjust it?

Post by lone »

Hello - If I set the input area of the content to 'oneline="true", I get a narrow input - about a third of the default content textarea. I would like it to be as wide as the default of the textarea.

Where do I find the code that controls it in the admin?
I´m running cmsms version 1.4.1.

regards, Lone
Last edited by lone on Fri Feb 06, 2009 2:42 pm, edited 1 time in total.
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Width of input for oneline="true" - where do I adjust it?

Post by spcherub »

I took a quick look through the code and it looks like there is no way to set the width of this field other than in code.

I have v1.5.1 and the location where I found the reference is in lib/classes/contenttypes/Content.inc.php, line 314. If you have shell access to your install you can edit this file and include the size="xx" attribute yourself. However, this will be overwritten next time you upgrade the system and you will need to remember to make the change again (unless this becomes a configurable parameter) in a future release.

NOTE: I have some experience in PHP and CMSMS but am not an expert.

Hope this helps.
S
lone
Forum Members
Forum Members
Posts: 71
Joined: Mon Feb 27, 2006 1:36 pm

Re: Width of input for oneline="true" - where do I adjust it?

Post by lone »

Hi spcherub - thanks for pointing me in the right direction - in version 1.4.1 I found it in line 247:

Code: Select all

	    $ret[]= array(ucwords($blockName).':','<input type="text" size="80" name="'.$blockNameId['id'].'" 


and put in the

Code: Select all

size=80 
to get a wider view in a oneline="true" content area, which seems to work.

regards, Lone
Post Reply

Return to “CMSMS Core”