Module Questions - changing the text area width in the form
Posted: Mon Jul 02, 2007 9:17 am
I want to be able to change the width of the text area in the questions form in a flexible way i.e. depending on the resolution of the display monitor = available width of the content area.
I have found a way to change the width in a fixed way by modifying the lines 67-68 of the file function.default_form.php from
$smarty->assign('input_question',
$this->CreateTextArea(false,$id,'','input_question'));
to
$textareawidt = 50;
$smarty->assign('input_question',
$this->CreateTextArea(false,$id,'','input_question','','','','',$textareawidt));
I have set the width to a fixed value of 50 columns. This is based on the position of the parameter width in the definition of the function CreateTextArea in class.module.inc.php in which a preset value of 80 columns is used.
Is there any way to set the value of the variable $textareawidt? Is there any Smarty or CMS variable available that I could use to set this width?
I have found a way to change the width in a fixed way by modifying the lines 67-68 of the file function.default_form.php from
$smarty->assign('input_question',
$this->CreateTextArea(false,$id,'','input_question'));
to
$textareawidt = 50;
$smarty->assign('input_question',
$this->CreateTextArea(false,$id,'','input_question','','','','',$textareawidt));
I have set the width to a fixed value of 50 columns. This is based on the position of the parameter width in the definition of the function CreateTextArea in class.module.inc.php in which a preset value of 80 columns is used.
Is there any way to set the value of the variable $textareawidt? Is there any Smarty or CMS variable available that I could use to set this width?