Page 1 of 1

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

Posted: Thu Dec 18, 2008 3:59 pm
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

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

Posted: Thu Jan 22, 2009 10:43 pm
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

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

Posted: Fri Feb 06, 2009 2:41 pm
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