日
2月
24
2008
textpattern的4.0.6版本
Textpattern的4.0.6版本出来已经有一段时间了,在textpattern的EmailList中,有谈论textpattern4.1.0的,官方现在放出了4.0.6的,大家可以去下载:
Textpattern的更新应该说比大家熟悉其他程序要慢很多了,比如wordpress等,不过我到是非常期待txp的更新,这种欲望比wp要高很多:)。
如果你要升级,textpattern的升级是非常方便的,只需要把新的程序文件(除了config.php)上传覆盖,然后你登录后台的时候就会更新了,很好很强大。
不过,更新之前,请一定记得要备份你的网站哦。
五
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月
31
2007
<txp:recent_articles /> 标签使用技巧
刚刚在百度搜索textpattern这个关键词的时候,去了个朋友的blog,用的是txp,看到一篇分享“ textpattern的热文排行榜 ”,大家可以看看,对于textpattern的使用者来说,这样简洁的中文分享很少,大家珍惜。