WYSIWYG Section Description

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

By daniel - January 2, 2020

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>
  </div>
</div>

and add the following after it:

<?php 
  loadWysiwygJavascript();
  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!

Thanks,

Daniel
Technical Lead
interactivetools.com

By Toledoh - January 2, 2020

Perfect - thanks

Cheers,

Tim (toledoh.com.au)