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
[solved] Width of input for oneline="true" - where do I adjust it?
[solved] Width of input for oneline="true" - where do I adjust it?
Last edited by lone on Fri Feb 06, 2009 2:42 pm, edited 1 time in total.
Re: Width of input for oneline="true" - where do I adjust it?
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
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?
Hi spcherub - thanks for pointing me in the right direction - in version 1.4.1 I found it in line 247:
and put in the to get a wider view in a oneline="true" content area, which seems to work.
regards, Lone
Code: Select all
$ret[]= array(ucwords($blockName).':','<input type="text" size="80" name="'.$blockNameId['id'].'"
and put in the
Code: Select all
size=80
regards, Lone