joomla中的jdoc:include元素解析
2014-08-22 14:19
337 查看
<jdoc:include type="component" />
<jdoc:include type="head" />
<jdoc:include type="installation" />
<jdoc:include type="message" />
<jdoc:include type="module" name="breadcrumbs" />
<jdoc:include type="module" name="menu" />
<jdoc:include type="module" name="submenu" style="rounded" id="submenu-box" />
<jdoc:include type="modules" name="debug" />
<jdoc:include type="modules" name="icon" />
<jdoc:include type="modules" name="left" style="rounded" />
<jdoc:include type="modules" name="left" style="xhtml" />
<jdoc:include type="modules" name="right" style="xhtml" />
<jdoc:include type="modules" name="status" />
<jdoc:include type="modules" name="syndicate" />
<jdoc:include type="modules" name="title" />
<jdoc:include type="modules" name="toolbar" />
<jdoc:include type="modules" name="top" />
<jdoc:include type="modules" name="top" style="xhtml" />
<jdoc:include type="modules" name="user1" style="xhtml" />
<jdoc:include type="modules" name="user2" style="xhtml" />
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
type 属性
jdoc:include 元素中的type属性指定要渲染的内容类型,属性值可以是component,head,installation,message,module,modules
component
页面内容主输出部分,在模板页面<body>元素中应该只出现一次。
head
填充当前页的style, script,meta的相关元素,应该在模板的<head>元素中只出现一次。
installation
仅仅在安装模板中有用,在前台和后台的模板中没有用到,某种程度上与 component类型相似,渲染安装步骤中中的一个页面主内容。
message
在模板的<body>元素中只出现一次,填充系统或者报错信息。
module
渲染由name属性指定的单一模块,模块必须是发布的并且当前用户有权访问,还可以有layout以及controller属性。
modules
渲染模板中所有指定名称的模块,模块必须是发布的并且当前用户有权访问,还可以有layout以及controller属性。
style 属性
对于module 和modules 类型,style是一个可选属性,这一属性指定了模块被渲染风格,如果没指定style,默认是none
/templates/system/html/modules.php 声明了标准的style:table,horz,xhtml,rounded,outline
模板设计者可以在以下文件自定义style
/user-template/html/modules.php.
<jdoc:include type="head" />
<jdoc:include type="installation" />
<jdoc:include type="message" />
<jdoc:include type="module" name="breadcrumbs" />
<jdoc:include type="module" name="menu" />
<jdoc:include type="module" name="submenu" style="rounded" id="submenu-box" />
<jdoc:include type="modules" name="debug" />
<jdoc:include type="modules" name="icon" />
<jdoc:include type="modules" name="left" style="rounded" />
<jdoc:include type="modules" name="left" style="xhtml" />
<jdoc:include type="modules" name="right" style="xhtml" />
<jdoc:include type="modules" name="status" />
<jdoc:include type="modules" name="syndicate" />
<jdoc:include type="modules" name="title" />
<jdoc:include type="modules" name="toolbar" />
<jdoc:include type="modules" name="top" />
<jdoc:include type="modules" name="top" style="xhtml" />
<jdoc:include type="modules" name="user1" style="xhtml" />
<jdoc:include type="modules" name="user2" style="xhtml" />
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
type 属性
jdoc:include 元素中的type属性指定要渲染的内容类型,属性值可以是component,head,installation,message,module,modules
component
页面内容主输出部分,在模板页面<body>元素中应该只出现一次。
head
填充当前页的style, script,meta的相关元素,应该在模板的<head>元素中只出现一次。
installation
仅仅在安装模板中有用,在前台和后台的模板中没有用到,某种程度上与 component类型相似,渲染安装步骤中中的一个页面主内容。
message
在模板的<body>元素中只出现一次,填充系统或者报错信息。
module
渲染由name属性指定的单一模块,模块必须是发布的并且当前用户有权访问,还可以有layout以及controller属性。
modules
渲染模板中所有指定名称的模块,模块必须是发布的并且当前用户有权访问,还可以有layout以及controller属性。
style 属性
对于module 和modules 类型,style是一个可选属性,这一属性指定了模块被渲染风格,如果没指定style,默认是none
/templates/system/html/modules.php 声明了标准的style:table,horz,xhtml,rounded,outline
模板设计者可以在以下文件自定义style
/user-template/html/modules.php.
相关文章推荐
- joomla的jdoc:include
- python解析XML:ElementTree(元素树)
- 解析Jquery取得iframe中元素的几种方法
- jquery源码解析(第4章元素之理解样式)
- 【MyBatis源码分析】objectFactory解析属性配置元素详述
- DedeCMS程序include目录文件作用解析
- Android 使用Gson解析数组多类型元素
- Jsp之指令元素(include)
- web.xml元素解析
- Joomla源代码解析(十七) JModel是什么
- Spring 3.2 源码解析 -- XML bean 元素到 BeanDefinition 解析过程
- HTML5新增元素全解析
- pom.xml文件元素解析
- 发布开源项目Anaer,解析远程页面元素
- 解析Jquery取得iframe中元素的几种方法
- VC++如何使用微软提供的Mshtml库解析html页面元素
- 详细解析 JavaScript 获取元素的坐标
- 让Apache支持shtml实现include文件解析的配置方法
- 使用BeautifulSoup解析网页时漏掉了元素
- <23>python学习笔记——列表解析,字典解析,集合解析筛选元素