Different template per category?

46 views
Skip to first unread message

Diego Bonilla

unread,
Jun 17, 2013, 6:05:49 AM6/17/13
to gela...@googlegroups.com
Hi there!
I had a question about the Gelato CMS. This is EXACTLY what I need, but there is one problem.

Is it possible to use a different blog "template" for a post in a different category?

My plan is to build a website with themes and layouts, but I would need my themes' "template" (so to speak) to be different from my main news posts'.
So, is it possible?

If not, is there a way it can work? Some help would be VERY appreciative!

Thanks!

Dawid Ogiegło

unread,
Jun 17, 2013, 7:59:00 AM6/17/13
to gela...@googlegroups.com
Hi,
You will need to change few lines in main index.php to add such function. In pseudo-code:
if (post_category==1)
 use theme1
else
 use theme2

Diego Bonilla

unread,
Jun 17, 2013, 9:52:06 AM6/17/13
to gela...@googlegroups.com
Thank you so much! Hopefully this feature can be added to the actual code! There are other content systems that offer this, but I want to move away from complicated systems.

I'll see if I can get this going. If I can, I'll comeback and explain the process in case there are others out there that are curious. I'm not experienced at all in PHP, so wish me luck!
Reply all
Reply to author
Forward
0 new messages