[WordPress] 外掛分享: Dynamic Populate Button Maker

首頁外掛目錄 › Dynamic Populate Button Maker
全新外掛
安裝啟用
尚無評分
3845 天前
最後更新
問題解決
WordPress 4.2+ v1.0 上架:2015-10-02

內容簡介

這是一個按鈕製作外掛,它允許您透過使用 shortcode 實現由查詢變數動態生成的內容的鏈接。使用 buttonid 和 buttonclass 來設置 A 標籤的樣式,使用 forpageid 來聲明具有表單的登陸頁面,其中填入字段;使用 buttontext 設置 A 標籤的文字部分,然後設置變數名稱與參數名稱相對應的變數值。當使用參數名稱時,應使用小寫字母且不以數字開頭。在 Gravity Forms 中,這是「允許字段動態生成」選項。 因此,允許一個字段動態生成,並將其命名為 var1,則 var1 將被設置為 shortcode 中引號內的任何值。

[dpb-button formpageid=”922″ buttonid=”uniqueId” buttonclass=”classStyle” buttontext=”點擊此處文本” var1=”傳遞的變量1” var2=”變量2″]

將在您的代碼中生成以下的 a tag

<a href="http://wpcms.ninja/passing-to-variable-button-maker/?var1=Variable+1+to+pass&var2=Variable+2" class="classStyle" id="uniqueId">點擊此處文本</a>

這樣,您就可以根據自己的需求在樣式表中設置此超鏈接的樣式,例如將其替換為圖像或以任何所需方式進行樣式設置。

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dynamic Populate Button Maker」→ 直接安裝(推薦)

原文外掛簡介

This is a button maker that allows you to implement a link that will populate something that is dynamically populated by query variables using a shortcode. Using buttonid and buttonclass for styling of the A tag, forpageid to declare the landing page that has the form where the fields are being populated, buttontext for the text part of the A tag, and then whatever variables you assigned to the parameter names in where what query variables are used with what they are to be set too.  Parameter names should be in lowercase when used and not starting with a number. In Gravity Forms this is the “Allow field to be populated dynamically” option. So allowing a field to be dynamically populated and naming one var1 will be set to what ever is between the quotes in the shortcode.
[dpb-button formpageid=”922″ buttonid=”uniqueId” buttonclass=”classStyle” buttontext=”Click Here Text” var1=”Variable 1 to pass” var2=”Variable 2″]
will generate the following a tag within your code
Click Here Text
This then allows you to style this hyperlink in your stylesheet how you see fit either by replacing it with an image or styling it however you would like.

延伸相關外掛

文章
Filter
Mastodon