On Article Template System
Author profile: carnuke
carnuke is the Xoops Documentation Team Lead and a member for the Article Module Group.
The "Article" module provides option for admins to add extra templates so that end users can choose his desired template for his article, mean while module can choose template for the global module and category moderators choose category template.
How to make your extra templates?
1 Compose a new template for a page, for say, index.php, whose template file name is "article_index.html" by default, and name your file as "article_index_myarticle.html".
2 Upload this file to modules/article/templates/
3 Update the module "article"
4 You will find template options in admin->module preferences->article->General setting->template: "default", "myarticle"
Optional:
5 You could add extra CSS for your template "myindex": create CSS file art_myarticle.css and upload to modules/article/templates
6 You could also create extra templates for article pages or category pages: art_article_myarticle.html, art_category_myarticle.html. They will present on article edit and category edit pages respectively.
Summary:
template file name rule: (moduleDirname)_(pageName)[_customTemplatename].html
CSS file name rule: style[_customTemplatename].css
How to make your extra templates?
1 Compose a new template for a page, for say, index.php, whose template file name is "article_index.html" by default, and name your file as "article_index_myarticle.html".
2 Upload this file to modules/article/templates/
3 Update the module "article"
4 You will find template options in admin->module preferences->article->General setting->template: "default", "myarticle"
Optional:
5 You could add extra CSS for your template "myindex": create CSS file art_myarticle.css and upload to modules/article/templates
6 You could also create extra templates for article pages or category pages: art_article_myarticle.html, art_category_myarticle.html. They will present on article edit and category edit pages respectively.
Summary:
template file name rule: (moduleDirname)_(pageName)[_customTemplatename].html
CSS file name rule: style[_customTemplatename].css
Pages: