Multi-Select Vertical Align Top in Admin
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 18, 2010 (RSS)
Hi there,
I have a few fields which are set to pulldown (multi value) and noticed that the label for the field in the admin does not align top like some other fields.
On viewing the source code I see that the code is different for each:
<td valign="top">Label for pulldown (multi value)</td>
vs
<td style="vertical-align: top;">Label for wysiwyg</td>
Which files do I edit in the admin to change this?
Thanks,
Jan
I have a few fields which are set to pulldown (multi value) and noticed that the label for the field in the admin does not align top like some other fields.
On viewing the source code I see that the code is different for each:
<td valign="top">Label for pulldown (multi value)</td>
vs
<td style="vertical-align: top;">Label for wysiwyg</td>
Which files do I edit in the admin to change this?
Thanks,
Jan
Re: [aquaman] Multi-Select Vertical Align Top in Admin
By Chris - January 18, 2010 - edited: January 18, 2010
Hi Jan,
Nice catch, thanks! I've fixed this for the next version of CMS Builder, but if you want to apply the patch to your own copy, open up cmsAdmin/lib/menus/default/edit_functions.php and change this line:
to this:
I hope this helps! Please let me know if you have any more questions.
Nice catch, thanks! I've fixed this for the next version of CMS Builder, but if you want to apply the patch to your own copy, open up cmsAdmin/lib/menus/default/edit_functions.php and change this line:
$valignTop = ($fieldSchema['listType'] != 'pulldown') ? 'valign="top"' : '';
to this:
$valignTop = ($fieldSchema['listType'] != 'pulldown') ? 'style="vertical-align: top;"' : '';
I hope this helps! Please let me know if you have any more questions.
All the best,
Chris
Chris