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. 

Cheers,



Tim Forrest

Toledoh Enterprises

www.toledoh.com.au

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
PHP Programmer
interactivetools.com