五
11月
30
2007
breadcrumb
Classification 类型
The breadcrumb tag is a Single_Tag which is used to create breadcrumb navigation. Its context is page or column and it provides either hyperlinked navigation, or plain text positional display, anytime you are off the Home page.
此标签是独立标签,用来创建用户导航。他可提供链接或者文章的导航,显示访问者所在的页面。
Syntax-语法
The breadcrumb tag has the following syntactic structure…
此标签的语法如下:
<txp:breadcrumb />
Attributes
Tag will accept the following attributes (case-sensitive):
这个标签接受以下的属性:
- label=“value”
This string will be prepended to the output. Default is Site name.
此标语文字会输出在导航的前面,默认的是网站的名称。
- sep=“value”
Character to be used as the breadcrumb seperator. Default is » .
“更多”,比如文章摘要下面显示 “继续阅读” 这样类似的,我想是的,默认的是一个“»”,用来分割导航的单元。
- title=“boolean”
Whether to display title. Available values: 1 (yes) or 0 (no, display name). Default is 0.
是否显示标题。属性值为1或者0,默认是0。
- link=“value”
Whether to hyperlink breadcrumbs. Available values: y (yes) or n (no). Default is y (yes).
是否在导航上显示链接。属性值为y或者n,默认是y。
- linkclass=“class name”
(X)HTML class attribute applied to breadcrumb links. Default is noline.
导航链接项目的css class,默认的是noline。
- class=“class name”
(X)HTML class attribute applied to wraptag.
Examples
Example 1: Display a hyperlinked breadcrumb trail
导航列用链接展示。
<txp:breadcrumb label="Navigation" sep="::" link="y" wraptag="p" />
Provides hyperlinks to sections or categories in breadcrumb style, linking back to your home page. (Breadcrumbs are not displayed on the “Default” section of your site)
Example 2: Display a text only breadcrumb trail
导航列用文字展示。
<txp:breadcrumb label="Navigation" sep=":" link="n" wraptag="p" />
Provides a breadcrumb guide that reflects where a user is within the site’s navigation.
Retrieved from “http://textpattern.net/wiki/index.php?title=Txp:breadcrumb_/”
本文评论功能已关闭。