晚9点 :: Article

FAQs on Article


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
Subtitles
  1. Basic FAQ
  2. On Article Template System
  3. Module clone guide
Pages:
« 1 2 3 »
<< Article Quickstart Guide 如何阅读一本书 >>

Copyright© carnuke & xos
The comments are owned by the author. We aren't responsible for their content.
Author Thread
friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)