五
11月
30
2007
Txp:body
Classification-类型
The body tag is a Single_Tag which is used to return the text, or content, of the article being displayed. (The article itself)
body这个标签用来显示文章内容。
Syntax-语法
The body tag has the following syntactic structure…
按照下面的方法使用。
<txp:body />
Attributes
This tag has no attributes.
这个标签没有属性。
Examples-例子
Example 1: Display the body, or article text, as part of an article form
在一个文章模块中显示相应的内容文字。
<p><txp:title /></p><divclass="post"><p><txp:author />
<txp:posted /><br /><txp:body /></p></div>
五
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_/”
五
11月
30
2007
Txp:author
Classification -类型
The author tag is a Single Tag which is used to return the name of the author of the currently displayed article. Its context is an aricle form.
author标签是一个独立标签,用来返回相应文章的作者,根据上下文的内容显示相应的作者,比如多用户时候,a发表的文章显示作者是a,b发布的显示作者是b。
Syntax-语法
The author tag has the following syntactic structure…
该标签的语法如下:
<txp:author />
Attributes -属性
Tag will accept the following attributes (case-sensitive):
这个标签接受以下属性(属性区分大小写):
- link=“boolean”
Make text a link to author’s posts. Available values: 0 (no) or 1 (yes). Default is 0 (no).
作者名称是否用链接显示,如果用链接显示,将会把作者名称连接到其文章列表。属性值为1或者0
- section=“section_name”
Only link to articles from the named section. Default is unset.
链接到作者文章列表是否只显示某一个版面下的文章,没有预设值。
- this_section=“boolean”
Only link to articles from the same section as the current article’s. Available values: 1 (yes) or 0 (no). Default is 0 (no).
只链接到该文章对应的当前版面下的文章。属性值为1或者0,预设值是0.
Examples -例子
Example 1: As a linked element in an article Form
在文章模块内显示作者的链接。
An article form can be created any way you want it by using a combination of article-related Tags. Following is just one possibility:
利用这些标签,你可以随意的创建你的模块,下面只是一种简单的应用。
<h1><txp:title /></h1>
<p class="author-date">Posted By: <txp:author link="1" /> <txp:posted /></p>
Tags used: <txp:posted />, <txp:title />
五
10月
05
2007
Txp:article url title
Classification-分类定义
The article_url_title tag is a Single_Tag which returns the dumbed-down “URL title” of the article being displayed. This URL title may also be part of the page’s address depending on the chosen permanent link mode.
文章链接标题 标签是一个独立的标签,他将在文章显示后返回一个链接标题。如果你在永久链接的选择用链接标题的话,这个链接标题就会成为页面地址的一部分。
- Syntax-语法
The article_url_title tag has the following syntactic structure…
“txp:article_url_title ”
- Attributes- 属性
There are no attributes associated with article_url_title.
这个标签没有属性。
Genealogy Version 4.0.5 Tag support addedRetrieved from “http://textpattern.net/wiki/index.php?title=Txp:article_url_title_/”
在4.0.5版本中加入了Tag的支持。
由于最近公司忙的很,网站更新很慢了,过段时间在多翻译一些。其实Textpattern的官方,虽然英文,但是很简单的都是,非常容易理解。
日
9月
30
2007
Txp:article image
Classification-分类/类别
The article_image tag is a Single_Tag Textpattern will replace this tag with the IMG SRC html tag matching the numeric “ID” or URL assigned when the article is posted. Its context is in an article form or article content. The image to be associated with the tag is set under the content tab. Display advanced options and enter either the URL of the image, or the Textpattern ID (a number set by Textpattern at upload), Simply put: just the number, in the Article image field.
article_image是一个独立标签,在文章发布的时候,Textpattern将会把html中的 img src 标签替换成相应id和url的标签。他包含在文章模块或者内容里面。图片和标签是放在内容菜单下的。调用的时候,可以使用图片的链接或者上传时候Textpattern系统给的id,非常简单:只需要把那个数字放在文章的image位置。
Syntax-语法
The article_image tag has the following syntactic structure…
“txp:article_image”
同以前的说明。
Attributes -属性
Tag will accept the following attributes (case-sensitive):
这个标签接受以下属性:
thumbnail=“boolean”
Use thumbnail rather than full-size image. Available values: 1 (yes) or 0 (no). Default is 0 (no).
这个标签用来设置是否开启图片的相册方式显示,有两个有效值:1(yes)和0(no)。默认的是0,不开启。
escape=“value”
Escape (X)HTML entities for the image’s (X)HTML alt and title attributes. Available values: html. Default is unset.
设置图片的alt和title属性,默认的不设定。
align=“value”
(X)HTML align attribute. Default is unset. Recommended that you use CSS via class or id attribute instead.
设置图片的位置属性,默认是没设置的,你可以使用css的class或者id属性来替换这个。
style=“value”
(X)HTML style attribute. Default is unset. Recommended that you use CSS via class or id attribute instead.
设置style属性值,默认是没有设置的。你可以使用css的class和id来替换这个效果。
class=“class name”
(X)HTML class attribute. Default is unset.
html的class属性,默认是没有设置的。
html_id=“html id”
(X)HTML id attribute. Default is unset.
html的id属性,默认没有设置。
wraptag=“tag”
(X)HTML tag (without brackets) to wrap around image. Default is unset.
设置图片的边缘属性,默认是没有设置的。