
內容簡介
「Custom Field Template 外掛」在「編寫文章/頁面」時,新增自訂欄位的預設設定。這個模板格式基本上跟「rc:custom_field_gui 外掛」差不多,不同處在於:
你可以設定任意數量的自訂欄位範本,並於寫文章/頁面時切換使用。
這個外掛不會使用 ini 檔案作為範本,而是在外掛的選項設定中設定。
支援在 textarea 內使用 TinyMCE。
支援在 textarea 內使用媒體按鈕 – 至少需 WordPress 2.5。
支援相同欄位鍵值的多個欄位。
支援 hideKey 和 label 選項。
在外掛的設定頁面中,可以看到完整的選項清單。
可以使用 CSS 自訂自訂欄位模板的設計。
可以用標籤替換自訂欄位鍵值。
可以使用 wpautop 函式。
可以使用 PHP 代碼來設定值。(實驗性功能,code = 0)
可以在每個欄位中設定存取使用者的權限等級。(level = 1)
支援自動將自訂欄位值插入標籤中。(insertTag = true)
新增 [cft] 簡短碼,以顯示自訂欄位範本。(只顯示有 output = true 的屬性)
新增範本說明區段。
新增值標籤選項,以處理檢視值不同的情況。(valueLabel = apples # oranges # bananas)
新增空白選項。(blank = true)
新增斷行選項。設定 CSS 的 ‘#cft div’。(type = break)
新增 [cft] 簡短碼格式。
新增排序選項。(sort = asc、sort = desc、sort = order)
支援自訂欄位的快速編輯。(目前不支援 TinyMCE 和媒體按鈕)
支援自訂欄位搜尋。(只顯示有 search = true 的屬性)
新增 [cftsearch] 簡短碼格式。(正在開發中)
可用於輸出值的 PHP 代碼。(outputCode = 0)
在儲存值之前新增 PHP 代碼。(editCode = 0)
新增儲存功能。
新增類別選項。(class = text)
自動連接 the_content()。(實驗性功能)
可在 textarea 中使用 HTML 編輯器。(htmlEditor = true)
新增方塊標題替換選項。
新增文章類型選擇選項。
新增值計數選項。
新增於小工具中使用簡短碼的選項。
新增 JavaScript 事件處理程式的屬性。(onclick = alert('ok');)
新增初始化按鈕。
新增前置文字和後置文字的屬性。(before = blah、after = blah)
新增匯出和匯入功能。
新增樣式屬性。(style = color:#FF0000;)
新增最大長度屬性。(maxlength = 10)
新增多個欄位的屬性。(multiple = true、startNum = 5、endNum = 10、multipleButton = true)
新增在 text 類型中使用的日期選擇器的屬性。(date = true、dateFirstDayOfWeek = 0、dateFormat = yyyy/mm/dd)
新增頁面範本檔案名稱篩選的屬性(感謝 Joel Pittet)。
新增 shortCode 屬性,以便輸出經簡短碼篩選的值。(shortCode = true)
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The Custom Field Template plugin adds the default custom fields on the Write Post/Page. The template format is almost same as the one of the rc:custom_field_gui plugin. The difference is following.
English Custom Field Template Manual
We have finally published a manual site for the custom field template plugin. You can also use the custom field refinement search for posts in the admin panel. Please check here.
You can set any number of the custom field templates and switch the templates when you write/edit the post/page.
This plugin does not use the ini file for the template but set it in the option page of the plugin.
Support for TinyMCE in the textarea.
Support for media buttons in the textarea. – requires at least 2.5.
Support for multiple fields with the same key.
Support for hideKey and label options.
You can see the full option list in the setting page of the plugin.
You can customize the design of custom field template with css.
You can replace custom keys by labels.
You can use wpautop function.
You can use PHP codes in order to set values. (experimental, code = 0)
You can set an access user level in each field. (level = 1)
Supprt for inserting custom field values into tags automatically. (insertTag = true)
Adds [cft] Shortcode to display the custom field template. (only shows the attributes which have output = true)
Adds template instruction sections.
Adds the value label option for the case that values are diffrent from viewed values. (valueLabel = apples # oranges # bananas)
Adds the blank option. (blank = true)
Adds the break type. Set CSS of ‘#cft div’. (type = break)
Adds [cft] Shortcode Format.
Adds the sort option. (sort = asc, sort = desc, sort = order)
Support for Quick Edit of custom fields. (tinyMCE and mediaButton are not supported yet)
Support for the custom field search. (only shows the attributes which have search = true.)
Adds [cftsearch] Shortcode Format. (under development)
Adds PHP codes for the output value. (outputCode = 0)
Adds PHP codes before saving the values. (editCode = 0)
Adds the save functionality.
Adds the class option. (class = text)
Adds the auto hook of the_content(). (experimental)
You can use the HTML Editor in the textarea. (htmlEditor = true)
Adds the box title replacement option.
Adds the select option of the post type.
Adds the value count option.
Adds the option to use the shortcode in the widhet.
Adds the attributes of JavaScript Event Handlers. (onclick = alert('ok');)
Adds the Initialize button.
Adds the attributes of before and after text. (before = blah, after = blah)
Adds the export and import functionality.
Adds the style attribute. (style = color:#FF0000;)
Adds the maxlength attribute. (maxlength = 10)
Adds the attributes of multiple fields. (multiple = true, startNum = 5, endNum = 10, multipleButton = true)
Adds the attributes of the date picker in text type. (date = true, dateFirstDayOfWeek = 0, dateFormat = yyyy/mm/dd)
Adds the filter of page template file names (Thanks, Joel Pittet).
Adds the attribute of shortCode in order to output the shortcode filtered values. (shortCode = true)
Adds the attribute of outputNone in case there is no data to output. (outputNone = No Data)
Adds the attribute of singleList attribute in order to output with
- if the value is single. ex) singleList = true
Adds the file upload type. (type = file)
Adds the fieldset type. (type = fieldset_open, type = fieldset_close)
Adds the option to deploy the box in each template.Localization
Belorussian (by_BY) – Marcis Gasuns
Catalan (ca) – Andreu Llos
Czech (cs_CZ) – Jakub
German (de_DE) – F J Kaiser
Spanish (es_ES) – Dario Ferrer
Farsi (fa_IR) – Mehdi Zare
French (fr_FR) – Nicolas Lemoine
Hungarian (hu_HU) – Balazs Kovacs
Indonesian (id_ID) – Masino Sinaga
Italian (it_IT) – Gianni Diurno
Japanese (ja) – Hiroaki Miyashita
Dutch (nl_NL) – Rene
Polish (pl_PL) – Difreo
Brazilian Portuguese (pt_BR) – Caciano Gabriel
Russian (ru_RU) – Sonika
Swedish (sv_SE) – Pontus Carlsson
Turkish (tr_TR) – Omer Faruk
Ukranian (uk_UA) – Andrew Kovalev
Uzbek (uz_UZ) – Alexandra Bolshova
Chinese (zh_CN) – hurri zhuIf you have translated into your language, please let me know.
Japanese Custom Field Template Manual
Are you interested in other plugins? See the following site CMS x WP.
Known Issues / Bugs
UninstallDeactivate the plugin
That’s it! 🙂延伸相關外掛
