-
February 6, 2015, 04:51 AM
#1
Member
Add different text on each category
Dear,
I add customised text in (blocks/grid.tpl) that will appear at the bottom of the ads listing page.
I need this text changes when changing category.
Exemple on category (autos) I will see text : welcome on auto category, here you will find all auto you need ... bla bla
In category (games) I will see text : here you find all nintendo games, bla bla bla
It is possible to use the function (if) (category name) = (customized text) (and if)
thanks
-
February 6, 2015, 12:44 PM
#2
Guru
? You just need to go to admin panel > categories, select you category and then select edit the category and add your wanted text to description section.
-
February 6, 2015, 04:18 PM
#3
Member
Thanks @Pete Young but this solution will dont work for me.
I need to use variable with fonction IF ELSE
If the page detect "category computer" I will get new texte customised.
-
February 6, 2015, 04:39 PM
#4
Member
I found it, I just move this fonction to my customised page:
{if !empty($category.des)}
{$category.des}
{/if}
Solved