3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 2   (RSS)

Would it be a simple thing to make the Section Description in CMSB a WYSIWYG field?  This way I can add support documents & links etc for users. 


Tim Forrest

Toledoh Enterprises


Hi Tim,

Yes, this is fairly simple to do, though it does require modifying core files. In /lib/menus/database/editTable.php look for this block of HTML (around lines 111-116):

<div class="form-group">
  <label class="col-sm-2 control-label" for="sectionDescription"><?php echo t('Section Description'); ?></label>
  <div class="col-sm-9">
    <textarea name="_description" id="sectionDescription" class="form-control textareaGrow" rows="3" data-growsize="10" cols="50"><?php echo htmlencode(@$schema['_description']) ?></textarea>

and add the following after it:

  initWysiwyg('_description', ''); 

If you do decide to add this change, I would make note of it, as upgrading to future CMSB versions is liable to overwrite it.

Hope that helps, let me know if you have any questions!


PHP Programmer