catalog: html in menu parameter field description

More
13 years 10 months ago #1193 by mischa13
In some cases it would be helpful to show some formatted description text before the catalog list (eg: headers, lists, links). To allow html code in description-text you just have to change 4 files:
Code:
/joomlaroot/jupgrade/components/com_joodb/views/catalog/tmpl/default.php /joomlaroot/jupgrade/components/com_joodb/views/catalog/tmpl/default.xml /joomlaroot/jupgrade/components/com_joodb/views/catalog/tmpl/notepad.php /joomlaroot/jupgrade/components/com_joodb/views/catalog/tmpl/notepad.xml
In both xml-files you have to add the filter="safehtml" attribute to the description parameter field:
Code:
<field name="description" type="textarea" filter="safehtml" default="" label="Intro text" rows="5" cols="30" description="Intro on first page"/>
in both php files you have to cut the nl2br command:
Code:
<?php echo nl2br($this->params->get('description')); ?> to <?php echo $this->params->get('description'); ?>
Maybe in a further release there is an option in the menuparameters to allow / disallow html in description?
The following user(s) said Thank You: postmaster.planet.placomusophile

Please Log in to join the conversation.

More
13 years 10 months ago #1216 by d.hoeschen
changed it.... will be corrected in the next version
The following user(s) said Thank You: mischa13

Please Log in to join the conversation.

Moderators: d.hoeschenjoest
Powered by Kunena Forum