會員登入
帳號:

密碼:

記住我



忘記密碼?

現在註冊!
主選單
文章管理 :: Article

FAQs on Article


On Article Template System
作者簡介: 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
副標題
  1. Basic FAQ
  2. On Article Template System
  3. Module clone guide
頁面:
« 1 (2) 3 »
<< Article Quickstart Guide

跟蹤網址
  • 文章地址: http://www.p1.com.tw/modules/article/view.article.php/c3/4
  • 跟蹤地址: http://www.p1.com.tw/modules/article/trackback.php/4
贊助
API: RSS | RDF | ATOM
Copyright© carnuke & 普林特印刷公司
網友個人意見,不代表本站立場,對於發言內容,由發表者自負責任。

Powered by XOOPS © 2001-2015 The XOOPS Project