catalog: html in menu parameter field description
- mischa13
- Topic Author
- Offline
Less
More
- Posts: 1
- Thank you received: 1
12 years 2 months ago #1193
by mischa13
catalog: html in menu parameter field description was created 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:
In both xml-files you have to add the filter="safehtml" attribute to the description parameter field:
in both php files you have to cut the nl2br command:
Maybe in a further release there is an option in the menuparameters to allow / disallow html in description?
/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
<field name="description" type="textarea" filter="safehtml"
default="" label="Intro text" rows="5" cols="30" description="Intro on first page"/>
<?php echo nl2br($this->params->get('description')); ?>
to
<?php echo $this->params->get('description'); ?>
The following user(s) said Thank You: postmaster.planet.placomusophile
Please Log in to join the conversation.
- Dirk
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
12 years 2 months ago #1216
by Dirk
Replied by Dirk on topic Re: catalog: html in menu parameter field description
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: Dirk, joest