
內容簡介
透過將版面配置列表轉換為帶有圖像預覽的對話框,擴展了 ACF 靈活內容欄位 (Flexible Content Field)的功能。同時,在對版面配置進行編輯時,亦採用了更好的編輯用戶體驗的對話框。
圖像慣例
圖像大小應為 730 x 300。
圖像應以版面配置的名稱(text_block)為名,並將底線轉換為破折號(text-block.jpg)。
圖像位置
圖像應儲存在您的佈景主題中。預設情況下,圖像儲存在這裡:THEME/lib/admin/images/acf-flexible-content-extended。
同時請注意,您也可以篩選此路徑,但它必須位於您的佈景主題中:
add_filter( 'acf-flexible-content-extended.images_path', $path );
注意:此路徑不應該有開始或結尾的斜槓!
此外,您也可以篩選所有鍵和/或圖像:
add_filter( 'acf-flexible-content-extended.images', $images );
問題和功能請求
如果您發現任何錯誤或有改善插件的想法,請隨時打開一個 問題或 創建一個拉取請求。請提供盡可能多的信息,以便幫助解決或核准您的請求。
外掛標籤
開發者團隊
② 後台搜尋「Flexible Content Extended for Advanced Custom Fields」→ 直接安裝(推薦)
原文外掛簡介
Extends the ACF Flexible Content Field by transforming the layout list into a modal with image previews. Editing the fields layouts also happens in a modal for a better editing user experience.
Image Conventions
The size of the image should be 730 x 300.
They should be named based on the layout’s name (text_block) with underscores converted to dashes (text-block.jpg).
Image Location
Images should be placed in your theme. By default, images are located here: THEME/lib/admin/images/acf-flexible-content-extended.
Also note that you can filter this path, but it MUST be in your theme:
add_filter( 'acf-flexible-content-extended.images_path', $path );
NOTE: The path should not have a trailing beginning or trailing slash!
Additionally, you could filter all keys and/or images:
add_filter( 'acf-flexible-content-extended.images', $images );
Issues & Feature Requests
If you identify any errors or have an idea for improving the plugin, feel free to open an issue or create a pull request. Please provide as much info as needed in order to help resolving or approve your request.
