Flexible Content Extended for Advanced Custom Fields

Mô tả

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.

Ảnh màn hình

  • Screenshot of Flexible Content Field Layouts Add Modal
  • Screenshot of Flexible Content Field Layouts
  • Screenshot of Flexible Content Field Layout Edit Modal

Cài đặt

This plugin works only if the ACF Pro >= 5.7.O plugin is installed and activated.

Requirements

  • ACF Pro >= 5.7.O
  • WordPress 4.7+ because of get_theme_file_uri()
  • Tested up to WP 5.3
  • Browser Support:
    • Last 2 Firefox major versions
    • Last 2 Safari major versions
    • Last 2 Edge major versions
    • Last 2 Chrome major versions
  • PHP 5.6+

From your WordPress dashboard

  1. Visit Plugins > Add New
  2. Search for “Flexible Content Extended for Advanced Custom Fields”
  3. Activate Flexible Content Extended for Advanced Custom Fields from your Plugins page
  4. Add images to your theme in THEME/lib/admin/images/acf-flexible-content-extended or customize the path using add_filter( 'acf-flexible-content-extended.images_path', $path );

Đánh giá

31 Tháng Năm, 2020
Adds great user experience when using the flexible content field to add layouts. Lets you add screenshots of each layout to give the admin a nice preview of exactly what they are adding vs just using the names of the layout. Easy to implement and bug free.
Đọc tất cả 1 đánh giá

Người đóng góp & Lập trình viên

“Flexible Content Extended for Advanced Custom Fields” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

1.0.3

Release Date – 7 Apr 2020

  • Fixes a bug related to nested fields

1.0.2

Release Date – 6 Apr 2020

  • Supporting nested flexible content fields
  • Updating dependencies

1.0.1

Release Date – 2 Dec 2019

  • Updating dependencies

1.0.0

Release Date – 26 Aug 2019

  • Initial release