[WordPress] 外掛分享: ACF Timber Integration

WordPress 外掛 ACF Timber Integration 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「ACF Timber Integration」是 2017-12-18 上架。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2021-02-10,距離現在已有 1543 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.7 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sticksu | danieltelbis | dream-production |

外掛標籤

acf | twig | Timber | integration | advanced custom fields |

內容簡介

這個外掛程式是針對使用 Advanced Custom Fields 和 Timber 開發佈景主題的開發人員所設計。

啟用這個外掛程式後,使用者定義的進階自訂欄位將會在 Timber context 變數中提供以下功能:

針對設定頁面所定義的欄位將會在「options」金鑰下的任何地方都可以使用
針對文章、頁面和自訂文章類型所定義的欄位將會在 Timber\Post 物件的「fields」金鑰下可以使用
針對分類所定義的欄位將會在 Timber\Term 物件的「fields」金鑰下可以使用

針對使用者所定義的欄位將會在 Timber\User 物件的「fields」金鑰下可以使用

定義的選單也會在「menus」金鑰下提供所有地方都可以使用

此外,它還增加了用於圖像的 twig functions:

srcset – 用於生成 srcset 屬性標籤。
用法:
image_attr – 用於生成 srcset、width、height 和 alt。
用法:

原文外掛簡介

This plugin is intended for developers that are using Advanced Custom Fields and Timber to develop their themes.
By enabling this plugin the user-defined advanced custom fields will be available in the Timber context variable as follows:

Fields defined for settings pages will be available everywhere under the “options” key
Fields defined for posts, pages and custom post types will be available on the \Timber\Post object under the “fields” key
Fields defined for terms will be available on the \Timber\Term object under the “fields” key

Fields defined for users will be available on the \Timber\User object under the “fields” key

Defined menus will also be available everywhere under the “menus” key

Also adds twig functions for images:

srcset – used to generate srcset attribute tag.
Usage:
image_attr – used to generate srcset, width, height and alt.
Usage:

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「ACF Timber Integration」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Timber 》Timber 讓您能使用更持久的程式碼更快速地建立自訂 WordPress 佈景主題。透過 Timber,您可以使用 Twig Template Engine 撰寫 HTML,這可與您的 PHP 檔案分離...。
  • Timber Debug Bar 》安裝完成後,Timber Debug Bar 提供了當前模板的名稱、在伺服器上的絕對位置,以及發送到模板的上下文(陣列)的完整內容。。
  • Clear cache for Timber 》這是一個小型的 WordPress 外掛程式,可以清除 Timber(一個在 WordPress 上使用 Twig 模板引擎的外掛程式)的快取。
  • Dataverse Integration 》這個外掛直接連接 WordPress 和 Dataverse (前稱 Common Data Service)、Dynamics 365 / CRM,為您的業務創建強大的門戶解決方案。, Dataverse (前稱 Common...。
  • Query monitor Twig profile 》查找緩慢的網頁,並發現原因!立即在您的 Query Monitor 工具欄中查看 twig 的分析信息。, Query Monitor 的 Twig profile 擴展可幫助您注意到頁面使用的模板...。
  • Editor for Timber 》功能特色, , 為可配置的文章類型添加元框,以建立並編輯 Twig 模板, 為 WP 主題和外掛程式編輯器添加 Twig 支援, , 甚至可以自訂 CodeMirror 主題, , , , 外...。
  • TwigPress 》本外掛可為你提供使用Twig模板引擎與WordPress主題的簡便方法。WordPress主題的一個問題是創建混合了PHP和HTML的模板非常容易。這對工作不好,也沒有關注分離...。
  • Content Template Engine 》此外掛讓你在 WordPress 內容中使用Twig 模板引擎。, 你可以在文章或頁面中使用 Twig 模板。, {% if post.my_custom_field %}, Hello {{ post.my_custom_...。
  • Remote Snippets 》在您的 WordPress 網站上顯示從 JSON API 或 Web 服務中取得的即時數據, 使用此外掛程式,您可以從外部來源中以 JSON 或 CSV 格式獲取數據。, 然後,您可以使...。
  • WordPress Symfony2 Wedlock 》這個外掛允許將 Symfony2 元件集成到 WordPress 中。需要 PHP5.3,但不是強制性的。, 我強烈建議您在提出任何問題之前閱讀這篇文章。, 捐款, 請考慮捐款以更...。
  • Twigify 》這個外掛使用TWIG建立模板系統,您可以在WordPress管理介面中進行管理。不再需要為每個內容類型或上下文創建數十個模板文件。模板可以應用於每個頁面或文章,...。

文章
Filter
Apply Filters
Mastodon