Upgraded from 2.05 to 2.17 problem

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 24, 2012   (RSS)

By AKnox - October 23, 2012

I upgraded to 2.17 and now our section editors show html code instead of just the text as in the demo for each record. How do I get this back?

When we click on Modify then we get the wysiwyg editor.

Thanks,

Andy

Re: [AKnox] Upgraded from 2.05 to 2.17 problem

Hi,

This is something we changed in a recent version of CMS Builder. In some cases displaying the html from a wysiwyg editor is a bad idea, for example if you have items with extremely large images or Iframes that could affect the layout of the page, or JavaScript that might run causing clashes with CMS Builders JavaScript.

There is a way around this, but we don't recommend using it as you will have to change core CMS Builder files, and it is untested. Also if you carry out another upgrade this change will be lost.

If you go to the directory: cmsAdmin/lib/menu/list_functions.php, on line 527 you should see a line like this:

if (!is_array($fieldValue)) { $fieldValue = htmlspecialchars($fieldValue); }

if you change it to this:

if (!is_array($fieldValue)) { $fieldValue = $fieldValue; }

the html will be displayed again.

The better solution is to create a custom plugin. If your familiar with creating plugins the filter you need is 'listRow_displayValue'.

If you would like us to create a custom plugin for you send an e-mail to consulting@interactivetools.com and we can look into this for you.

Thanks!
Greg Thomas







PHP Programmer - interactivetools.com