[WordPress] 外掛分享: Contact Form 7 Polylang Module

首頁外掛目錄 › Contact Form 7 Polylang Module
5,000+
安裝啟用
★★★★
4/5 分(11 則評價)
826 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.6+ v2.4.1 上架:2016-05-05

內容簡介

注意:現在 NOTE v2 是 CF7 Smart Grid-layout 外掛的一個延伸。使用此外掛程式前需先安裝它。為什麼呢?可以閱讀這個主題和這個文章。
此外插程式可使用 Polylang 多語言插件來進行多語言聯絡表單 7 管理。此外插程式的 2.0 版本現在已被開發為使用 CF7 Smart Grid-layout 的延伸內容。在安裝此外掛程式之前,需要先安裝 Polylang、CF7 Smart Grid-layout 和 Contact Form 7 這三個外掛程式。此外,它還支援多站台的安裝。

現在,您可以使用單一的 CF7 表單短碼來實現所有的翻譯功能。
警告:請確保遵循安裝說明以及 PolyLang 設置的調整。

讓您的 CF7 表單更具可攜性

此外掛程式引入表單鍵(您可以在 CF7 管理表格中修改)。每個表單的鍵都是唯一的,這樣可以通過其鍵識別表單,而非使用 ID。為什麼這是無價的呢?因為 ID 是 WordPress 安裝所屬的自訂文章 ID,因此在開發本地機器上的表單時,ID 因為更換到生產伺服器而錯誤。為解決此問題,我們建議您在此外掛程式的聯絡表單短碼中使用表單鍵,如: [cf7-form key="contact-us"]。不用擔心,舊的聯絡表單 7 短碼仍然可用,背景下,我們僅將鍵映射到 ID,並調用常規聯絡表單 7 短碼。

同樣地,您可以使用任何翻譯表單的短碼,而此外掛程式將確保載入正確的語言。

請務必仔細遵循安裝 說明,尤其是在啟用此外掛程式後保存 Polylang 設置的部分。

在 YouTube 上有英文字幕的視頻:西班牙文 和 法文 字幕可在字幕設置中使用。

查看我們的其他 CF7 外掛程式擴展

CF7 Polylang 模組 – 此外掛程式讓您可以為多語言網站創建不同語言的表單。該插件需要安裝 Polylang 多語言插件來管理翻譯。

CF7 Multi-slide 模組 – 使用此外掛程式,可以使用幻燈片構建多步驟的表單。每個幻燈片都藏有 CF7 表單,它們互相鏈接並以單個表單提交。

Post My CF7 Form – 使用此外掛程式,可以將您的表單提交保存到自定義文章中,將字段映射到元字段或分類。還可以在顯示表單之前預填充欄位。

CF7 Google Map – 允許在聯絡表單 7 中插入 Google 地圖。與其他外掛程式不同的是,此外掛程式允許在表單級別上進行地圖設置,

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4.1) 或搜尋安裝

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

原文外掛簡介

NOTE v2 is now an extension of the CF7 Smart Grid-layout plugin. You need to install it to use this plugin. Why is this? You can read this thread, and this post.
This plugin allows multilingual contact form 7 management using the polylang plugin. As of version 2.0 of this plugin, it is now developed as an extension of the CF7 Smart Grid-layout plugin. All 3 plugins, Polylang, CF7 Smart Grid-layout and Contact Form 7 need to be installed prior to installing this plugin. Works with multisite installations too.

Now you can use a single CF7 form shortcode for all your translations.
WARNING: ensure you follow the installation instructions along with the PolyLang settings adjustments.

Make your CF7 Form more portable
this plugin introduces form keys (which you can modify in the CF7 admin table). Keys are unique for each form, allowing you identify a form my its key rather than an ID. Why is this priceless? IDs changes from one server to the next because they are the custom post ID attributed by the WordPress installation, and therefore you develop your form in a local machine only to find out that the IDs are different when you move your form to your production server. To overcome this problem, we suggest you use a form key along with this plugin’s contact form shortcode, [cf7-form key="contact-us"]. Don’t worry your old contact form 7 shortcodes will still work too, behind the scenes we simply map the key to the ID and call the regular contact form 7 shortcode.
Similarly you can use any translated form shortcode, and the plugin will make sure the right language is loaded.
Please follow the Installation instructions carefully, especially the part about saving your Polylang settings after you have activated this plugin.
English subtitled video on youtube, Spanish & French subtitles available in the caption settings.

Checkout our other CF7 plugin extensions

CF7 Polylang Module – this plugin allows you to create forms in different languages for a multi-language website. The plugin requires the Polylang plugin to be installed in order to manage translations.

CF7 Multi-slide Module – this plugin allows you to build a multi-step form using a slider. Each slide has cf7 form which are linked together and submitted as a single form.

Post My CF7 Form – this plugin allows you to save you cf7 form submissions to a custom post, map your fields to meta fields or taxonomy. It also allows you to pre-fill fields before your form is displayed.

CF7 Google Map – allows google maps to be inserted into a Contact Form 7. Unlike other plugins, this one allows map settings to be done at the form level, enabling diverse maps to be configured for each forms.

Smart Grid-Layout Design for CF7 – allows responsive grid layout Contact Form 7 form designs, enabling modular designs of complex forms, and rich inter-linking of your CMS data with taxonomy/posts populated dynamic dropdown fields.

Thanks to
Gérard Mathiuet for providing a fix for PolylangPro.
Peter J. Herrel for improving the language folder management.
Didier (@swissspaceboy) for pointing out an issue with the CF7 Special Mail tag [_site_url].
Privacy Notices
This plugin, in itself, does not:

track users by stealth;
write any user personal data to the database;
send any data to external servers;
use cookies.

2.5.0

introduce ‘cf7pll_sync_form_metakeys’ to filter the synchronised form metakeys between translations.
improve translation sync from original post.

2.4.1

fix language update.
add notice to post-new pages.

2.4.0

enable other plugins to add their translation files.
added ‘cf7pll_load_plugin_translation_resource’ filter.

2.3.4

fix broken translations of new form templates.

2.3.3

fix ZipArchive class missing Fatal error for PHP 7.3 onwards.

2.3.2

fix continue warning.

2.3.1

clean up deprecated delete posts code.

2.3.0

added hidden field _wpcf7_lang to front-end form.
instroduce special mail tag [_home_url].

2.2.0

fix for CF7 bug on special mail tag _site_url.

2.1.1

fix notices.
improved translations

2.1.0

allows plugin update without cf7 smart grid, but restricted functionality.

2.0.1

removed empty front-end css/js from script queue.

2.0.0

major update to plugin to integrate with WP std admin pages for cf7 offered by cf7 smart grid plugin.
code update to fix issue with polylang v2.3+ changes.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon