[solved]News: how to change the detailpage according to the category?
Posted: Sun May 25, 2008 1:10 pm
Hi,
I am currently working on a site with CMSMS 1.2.5 and the News Module 2.6.1
I use the News Module to display projects; I have 3 categories and one page "Projects" to show them all with:
Works well, but...
I would like to be able to stylise differently with CSS the different projects, according to the different categories. So my idea was to make one detailpage per category, with the same name and alias as the category, and then to call it with something like that:
but it doesnt work... 
Any smart idea to achieve something similar?
Thanks in advance for your help and your time.
I am currently working on a site with CMSMS 1.2.5 and the News Module 2.6.1
I use the News Module to display projects; I have 3 categories and one page "Projects" to show them all with:
Code: Select all
{news detailpage='details'}
I would like to be able to stylise differently with CSS the different projects, according to the different categories. So my idea was to make one detailpage per category, with the same name and alias as the category, and then to call it with something like that:
Code: Select all
{news detailpage=$entry->category}

Any smart idea to achieve something similar?
Thanks in advance for your help and your time.