Textpattern logo

Help?

Zh-tw/屬性相互參照

From Textbook

Contents

align

應用在 <img /> 圖片標籤的 align 屬性。

allowoverride

以自訂模型覆蓋原始模型。獨立文章頁面無效。

anchor

控制 <txp:comment_permlink> 輸出時連結標籤內含 id 屬性

author

break

break 所指定的字串會用來分隔內容的各項目。建議使用 brhr 作分隔,如果偏好使用列表標記可設為 li。但須注意,Textpattern 的每個區塊都必須要使用正確的巢狀標籤。NB: 當使用 li 做分隔時,wraptag 應該也要設定為 ol 或 ul,反之亦然。

breakclass

button

建立含標示的按鈕

c

category

class

指定 (X)HTML 元素的 CSS class。

customfieldname

decimals

default

email

escape

excerpted

exclude

filename

flavor

form

用來編排內容的顯示。詳見 模型

format

frontpage

hilight

html_id


id

可為 (X)HTML 元素設置指定的 CSS id,或依照識別(id) 區分內容。實際使用請見該標籤參考資料。

include_default

item

keywords

label

若有指定 label 的值,那麼這些文字會被附加到內容的最開始處。當使用列表標記時 (wraptagolul),label 會是此列表裡的第一個項目。

labeltag

lang

limit

link

linkclass

linktext

listform

login

media

month

n

no_widow

name

number

offset

pageby

parent

pass

pgonly

Used to return pagination statistics without rendering the article list. Care must be taken to remain consistent with article tag attributes to keep statistics accurate.

poplink

preview

rel

searchall

searchsticky

section

sep

separator

showalways

showcount

size

sort

使用方式就像 SQL 查詢子句 order by 一樣。以 txp_link 資料表為例,它的任何一個欄位名都可指定 。要指定排序方式,後面可跟著 SQL sort order 排序關鍵字 asc(順序、由上至下、第一個到最後一個) 或 desc(逆序、由下至上、最後一個到第一個)。某些標籤的排序可使用 urllinkname descdescription ascdate ascrand() 等。

sortby

Textpattern 4.0.4. 起不支援。請以 sort 代替。

sortdir

Textpattern 4.0.4. 起不支援。請以 sort 代替。

status

style

text

textonly

this_section

thumbnail

time

title

type

val

ver

wraptag

用來包覆內容的 (X)HTML 標籤。建議使用 p 包覆一段文字,olul 包覆列表。NB: 不支援額外的 HTML 屬性,如 classstylestart

Translations [?]...

About Textbook