Template FAQ
These FAQ is the result of questions coming from you, users. You may recognize parts or direct copy paste of your emails, thank you for your contributions.
Different templates for different parts of a site?
What I am wondering is how I can use different templates for different parts of the site. Specifically I am looking at 3 different options right now:
- News
- Articles - Special Format (Specific to articels I create)
- Extra Pages - Pages that just have a main title and then the text for that page or custom HTML
For the articles and the news it is possible to have an unlinited number of templates. The way to get different template for different resources is to create a subtype of resources. By default the system is configured with one subtype of articles and one subtype of news. The default templates for the news and the articles are:
/manager/templates/default/resource_news.php /manager/templates/default/resource_article.php
The first website has the default id. If you create a new website you may find them in for example:
/manager/templates/websitecom/resource_news.php /manager/templates/websitecom/resource_article.php
In your case it means that you already have templates for the news and the articles. But you want also extra pages. The best way is I think to use the article type of resources for that. Just proceed the following way:
- Create a new template resource_extrapage.php in the template folder. Just upload it with your ftp client.
- Click on the Sites tab in the manager interface. You will see that you have a link to manage the subtypes of resources for your website. Just go there.
- Create a new subtype of article and select the template extrapage.php and give this subtype the name Extra page.
Now you can go back the content management and add an article. You will see that just after the Status dropdown box, you have the choice between Article or Extra page.
You can do the same for the news if you want another template for special news.
Share your ideas about this article.


