Dear All
I am brand new to CS-Cart addon development and I am trying to figure some things out.
I would like to ask if there is a way to add a second editor (WYSIWYG) in each category and if what should I do with the category template in the admin.
May I override it with an addon ?
Should I also alter the category table with this addon?
Dear All
I am brand new to CS-Cart addon development and I am trying to figure some things out.
I would like to ask if there is a way to add a second editor (WYSIWYG) in each category and if what should I do with the category template in the admin.
May I override it with an addon ?
Should I also alter the category table with this addon?
Yes, you can use several WYSIWYG editors on one page. For example, enable the My changes module and create the following file:
design/backend/templates/addons/my_changes/hooks/categories/detailed_content.pre.tpl
with the following content:
{__("short_description")}:
{$category_data.short_description}
Then clear the cache and check the result in the Addons tab on the Update category page
Note: additional changes in the cscart_category_descriptions table are required to save entered data
Thanks for the nice and detailed answer. I will try it out!
Dear eComLabs,
everything is great , I added another db table as well. The only weird issue is that although I use the "cm-wysiwyg" class, it does not format the redactor editor, but a plain textarea.
Why does this happens? Is it because the "pre" hook?