Sunday, 13 January, 2013
Create separate templates for a category and its articles
Skrivr has a function that checks if the user has a custom template for a category or articles from a specific category and loads that if so. This way a user can create custom templates for a single category and its posts.
Here's an example
You are running the site beatpoets.com
You have your templates:
article.html category.html footer.html header.html index.html static.html
But you decide to add a category for guest poems. You call the category "Guestspoets" and you want to have a bit different design for just that category. Easy! Just add "category_guestpoets.html" and "article_guestpoets.html" you can create separate designs for just that category and it's posts.
article_guestpoets.html article.html category_guestpoets.html category.html footer.html header.html index.html static.html