Zh-tw/屬性相互參照
From Textbook
align
應用在 <img /> 圖片標籤的 align 屬性。
allowoverride
以自訂模型覆蓋原始模型。獨立文章頁面無效。
anchor
控制 <txp:comment_permlink> 輸出時連結標籤內含 id 屬性
author
break
break 所指定的字串會用來分隔內容的各項目。建議使用 br 或 hr 作分隔,如果偏好使用列表標記可設為 li。但須注意,Textpattern 的每個區塊都必須要使用正確的巢狀標籤。NB: 當使用 li 做分隔時,wraptag 應該也要設定為 ol 或 ul,反之亦然。
- <txp:category_list />
- <txp:feed_link />
- <txp:image_index />
- <txp:comments />
- <txp:file_download_list />
- <txp:link_feed_link />
- <txp:linklist />
- <txp:recent_articles />
- <txp:recent_comments />
- <txp:related_articles />
- <txp:section_list />
breakclass
button
建立含標示的按鈕
c
category
- <txp:article />
- <txp:article_custom />
- <txp:feed_link />
- <txp:link_feed_link />
- <txp:linklist />
- <txp:recent_articles />
- <txp:file_download_list />
class
指定 (X)HTML 元素的 CSS class。
- <txp:article_image />
- <txp:breadcrumb />
- <txp:category />
- <txp:category1 />
- <txp:category2 />
- <txp:category_list />
- <txp:comments />
- <txp:comments_invite />
- <txp:comments_form />
- <txp:comments_preview /> [en]
- <txp:image />
- <txp:image_index />
- <txp:file_download_list />
- <txp:link_description />
- <txp:link_to_home>
- <txp:linklist />
- <txp:permlink>
- <txp:posted />
- <txp:recent_articles />
- <txp:related_articles />
- <txp:recent_comments />
- <txp:section_list />
customfieldname
decimals
default
escape
excerpted
exclude
filename
flavor
form
用來編排內容的顯示。詳見 模型
- <txp:article />
- <txp:article_custom />
- <txp:comments />
- <txp:comments_form />
- <txp:comments_preview /> [en]
- <txp:file_download />
- <txp:file_download_list />
- <txp:linklist />
- <txp:output_form />
- <txp:search_input />
format
- <txp:css />
- <txp:feed_link />
- <txp:file_download_created />
- <txp:file_download_modified />
- <txp:file_download_size />
- <txp:link_feed_link />
- <txp:posted />
frontpage
hilight
html_id
id
可為 (X)HTML 元素設置指定的 CSS id,或依照識別(id) 區分內容。實際使用請見該標籤參考資料。
- <txp:article />
- <txp:article_custom />
- <txp:comments />
- <txp:comments_form />
- <txp:file_download />
- <txp:file_download_link>
- <txp:image />
- <txp:thumbnail />
include_default
item
keywords
label
若有指定 label 的值,那麼這些文字會被附加到內容的最開始處。當使用列表標記時 (wraptag 是 ol 或 ul),label 會是此列表裡的第一個項目。
- <txp:breadcrumb />
- <txp:category_list />
- <txp:feed_link />
- <txp:image_index />
- <txp:file_download_list />
- <txp:link_feed_link />
- <txp:linklist />
- <txp:popup />
- <txp:recent_articles />
- <txp:recent_comments />
- <txp:related_articles />
- <txp:search_input />
- <txp:section_list />
labeltag
- <txp:category_list />
- <txp:file_download_list />
- <txp:image_index />
- <txp:linklist />
- <txp:recent_articles />
- <txp:recent_comments />
- <txp:related_articles />
- <txp:section_list />
lang
limit
- <txp:article />
- <txp:article_custom />
- <txp:feed_link />
- <txp:file_download_list />
- <txp:linklist />
- <txp:recent_articles />
- <txp:recent_comments />
- <txp:related_articles />
- <txp:search_result_excerpt />
link
- <txp:author />
- <txp:breadcrumb />
- <txp:category />
- <txp:category1 />
- <txp:category2 />
- <txp:section />
linkclass
linktext
listform
login
media
month
n
no_widow
name
- <txp:category />
- <txp:custom_field />
- <txp:if_article_author>
- <txp:if_article_category>
- <txp:if_article_section>
- <txp:if_author>
- <txp:if_custom_field >
- <txp:if_category>
- <txp:if_plugin>
- <txp:if_section>
- <txp:image />
- <txp:thumbnail />
- <txp:section />
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
- <txp:article />
- <txp:article_custom />
- <txp:author />
- <txp:category />
- <txp:feed_link />
- <txp:search_input />
sep
separator
showalways
showcount
size
sort
使用方式就像 SQL 查詢子句 order by 一樣。以 txp_link 資料表為例,它的任何一個欄位名都可指定 。要指定排序方式,後面可跟著 SQL sort order 排序關鍵字 asc(順序、由上至下、第一個到最後一個) 或 desc(逆序、由下至上、最後一個到第一個)。某些標籤的排序可使用 url,linkname desc,description asc,date asc,rand() 等。
- <txp:article />
- <txp:article_custom />
- <txp:file_download_list />
- <txp:linklist />
- <txp:recent_articles />
sortby
Textpattern 4.0.4. 起不支援。請以 sort 代替。
sortdir
Textpattern 4.0.4. 起不支援。請以 sort 代替。
status
style
text
textonly
this_section
- <txp:author />
- <txp:category_list />
- <txp:category />
- <txp:category1 />
- <txp:category2 />
- <txp:popup />
thumbnail
time
title
- <txp:css />
- <txp:email />
- <txp:feed_link />
- <txp:link_feed_link />
- <txp:category />
- <txp:category1 />
- <txp:category2 />
- <txp:section />
type
val
ver
wraptag
用來包覆內容的 (X)HTML 標籤。建議使用 p 包覆一段文字,ol 或 ul 包覆列表。NB: 不支援額外的 HTML 屬性,如 class、style 或 start。
- <txp:article_image />
- <txp:breadcrumb />
- <txp:category />
- <txp:category_list />
- <txp:comments />
- <txp:comments_form />
- <txp:feed_link />
- <txp:image />
- <txp:image_index />
- <txp:file_download_list />
- <txp:link_feed_link />
- <txp:linklist />
- <txp:popup />
- <txp:posted />
- <txp:recent_articles />
- <txp:recent_comments />
- <txp:related_articles />
- <txp:search_input />
- <txp:section />
- <txp:section_list />
- <txp:thumbnail />




