
Originally Posted by
lijith
Did any one have a solution for this one.
I have to use html tags on the description fields. How can I use that.
Hi Lijith:
Definitively, the best solution I found is composed by the WYSIWYG module from David Bories (Post #2 in this page) and a little customization to the "description" field, let's say from Documents module. I created the file custom/Extension/modules/Documents/Ext/Vardefs/description_customized.php to contain the following customizations:
PHP Code:
// created: 2011-10-20 23:00
$dictionary['Document']['fields']['description'] = array(
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'type' => 'wysiwyg',
'dbType' => 'text',
'required' => true,
'source' => 'custom_fields',
'id' => 'Documentsdescription',
'custom_module' => 'Documents',
'massupdate' => '0',
'default' => NULL,
'comments' => 'From now on, you can create rich text contents for your descriptions',
'help' => 'Use the WYSIWYG editor to use text, tables, images and a lot more in this description',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
);
Then a QuickRepair and voilá!, your description field is now HTML able
Bookmarks