[WordPress] 外掛分享: Supple Forms

首頁外掛目錄 › Supple Forms
10+
安裝啟用
尚無評分
6221 天前
最後更新
問題解決
WordPress 2.5+ v0.1.62 上架:2009-02-12

內容簡介

Supple Forms 讓你輕鬆建立自訂的 meta box 或寫作面板,在新增或編輯文章和頁面時輸入數據。Supple Forms 允許你使用簡碼和 HTML 片段輕鬆格式化和插入數據。以下是一些功能:

自訂寫作面板或 Meta box,顯示在寫文章表單上
使用文本框、下拉選單、單選按鈕、複選框、文字區域和 jQuery DatePicker 的欄位
允許使用具有多個值的欄位
自定義元素框的放置位置的選項 (在標題後面、在 wysiwyg 編輯器後面,或在底部)。
選擇存儲方式,可以使用自定義表格或 WordPress 的自定義欄位儲存數據,但是複數值的欄位會存儲為 WP 自定義欄位。
使用靈活的簡碼 API 在文章/頁面中插入欄位值
創建可重複使用的 HTML(真正的 HTML、Javascript 或任何有效的 XHTML) 片段 - 我們在 Supple Forms 中稱之為 snips - 來使用欄位值
使用簡碼輕鬆地在文章/頁面中插入 snips
指定 CSS 代碼與你的 HTML snips 插入
資料庫檢視包含在內,讓你查看自己的自定義表格數據

用法

使用 Supple Forms 非常簡單:

上傳並啟用 Supple Forms 插件 (請參閱安裝頁面) 後,就可以開始建立表單了
在 Supple Forms 選單中,點擊「表單設置」來設置表單級默認值
輸入表單標題。這將成為顯示在「撰寫文章/頁面」頁面上的表單框中的標題
選擇其他表單級默認值,如是否將數據存儲在自定義表格或 WP 自定義欄位中
在 Supple Forms 選單中,點擊「新增/編輯欄位」來新增欄位到自訂表單中。
通過在選擇欄位下拉框中進行正確的選擇來新增新欄位或編輯現有欄位
如果您在表單設置頁面中選擇了自定義表格作為存儲選項,則在新增/編輯欄位頁面上將有一個「生成表格」按鈕。創建或編輯欄位後,將提示您生成表格。但是,在添加/編輯欄位完成後不要立即生成表格。這不會破壞任何東西,但等到添加/編輯欄位結束後再生成表格是最佳做法。你可以隨時生成表格,但是等到完成編輯欄位後再生成表格可以防止在你的資源庫中創建不必要的欄位。Supple Forms 不會刪除資料表欄位或自訂資料表。為了避免因為遺失點擊而導致數據損失的風險,我們不會刪除這些東西。因此,如果你創建了稍後會被更改的欄位,你可以通過 phpMyAdmin 或其他資料庫管理工具刪除它們。
在添加完欄位並生成表格後,你的欄位現在可以在「新增文章/頁面」頁面上使用
保存或發佈文章/頁面時,也會保存自定義字段數據。自定義字段數據不會保存在修訂版本中。它僅與實際的 Post ID 記錄 (而不是修訂版本 ID) 相關聯
要為插入到文章/頁面中的 HTML snips 創建 HTML 片段,請在 Supple Forms 選單中點擊 HTML Snips 編輯器
在 HTML Snips 編輯器中,您可以創建帶有數據的預格式化 HTML 片段。只需在方括號中放入欄位名稱,然後將它們插入到你的 snips 中。例如: <div class= 'neatbox'>我住在 [城市]</div>
你為你的 HTML snip 提供的名稱將用於插入到文章/頁面中的簡碼中。例如,名為 address_box 的 snip 會在此簡碼中插入:[supple snip='address_box']
最後,將簡碼 (例如 [supple snip='my_snip']) 放入你的文章或頁面中即可。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.62) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Supple Forms」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Supple Forms makes it easy to create a custom meta box or write panel to enter data while adding or editing posts and pages. Supple Forms allows you to easily format and insert your data into posts by using shortcodes and HTML snippets. Following are the features:

Custom write panel or Meta box that displays on the Write Post form
Fields utilizing textboxes, dropdown lists, radio buttons, checkboxes, textareas, and a jQuery DatePicker
Allows fields with multiple values
Options for placement of the custom meta box (after title, after the wysiwyg editor, at the bottom)
Choose between storing data in a Custom Table or as WordPress’ own Custom Fields….note that multiple value fields will be stored as WP Custom Fields
Insert field values into posts/pages with a flexible shortcode api
Create reuseable HTML (really HTML, Javascript or any valid XHTML) snippets – we call them snips in Supple Forms – that can utilize field values
Easily insert snips into posts/pages with a shortcode
Specify CSS code to be inserted with your HTML snips
A database view is included to allow you to view your custom table data

Usage
Using Supple Forms is extremely simple:

After uploading and activating the Supple Forms plugin (see the Installation page), you’re ready to begin building your form
In the Supple Forms menu, click Form Settings to set form level defaults
Enter a Form Title. This will be the title that shows in the form box on the Write Post/Page page
Choose other form-level defaults such as whether to store data in a Custom Table or in WP Custom Fields
In the Supple Forms menu, click Add/Edit Fields to add fields to your custom form.
Add new fields or Edit existing ones by making the proper selection in the Select field dropdown box
If you chose Custom Table as the storage option on the Form Settings page, a Generate Table button will be available on the Add/Edit Fields screen. You will a warning to Generate the table after a field is created or edited until you run the Generate Table option. However, do not Generate Table until you are done adding/editing your fields. It won’t break anything, but it is a best practice to wait. You can generate the table as often as you want, but waiting until you are done editing fields prevents creating extraneous fields in your database. Supple Forms will not Delete table fields or custom tables. We don’t want to risk you losing any data by stray clicks. So if you end up creating fields that later get changed, you will can delete them through phpMyAdmin or another database management tool.
After you’ve added your fields and generated the Your fields will now be available on the Write Post/Page pages
Saving a post/page or publishing a post/page saves your custom field data as well. Custom field data is not saved in the revisions. It is only linked to the actual Post ID record (not the revision IDs)
To create HTML snips for inserting into posts/pages, in the Supple Forms menu, click the HTML Snips Editor
In the HTML Snips Editor, you can create pre-formatted HTML snippets that include your data. Simply place your field names in brackets and insert them in your snips. For example:

I live in [city]

The name you give your HTML snip will be used in the shortcode that you insert into your posts/pages. For example, a snip named address_box would be inserted with this shortcode: [supple snip=’address_box’]
Finally, place shortcodes like [supple snip=’my_snip’] in your posts or pages.
For the programmer in you, you have direct access to your custom table from within your template code. Use the WordPress database object ($wpdb) to perform SQL commands and queries on your data. Your table name (if using Custom Table) is shown in red on the Form Settings page. Supple Forms utilizes your defined WordPress table prefix ($wpdb->prefix) + the prefix “supple_”. So a table that you named destinations would normally be in the database as: wp_supple_destinations (unless you changed your $wpdb->prefix to something other than the default (wp_))

延伸相關外掛

文章
Filter
Mastodon