Giter VIP home page Giter VIP logo

acf-fold-flexible's Introduction

ACF Fold Flexible Content

A simple plugin for enhancing the Advanced Custom Fields Flexible Content Field. Collapsed flexible content panels and showing icons representing each field type.

Screenshot

Features

  • Better overview of Flexible Content Fields layout panels
  • Collapsed flexible content layouts initially
  • Displays icons using Dashicons which fields each layout contains, supports all native ACF fields types

Install

  1. Install plugin from the WordPress plugin directory

Install manually

  1. Download zip and extract
  2. Rename the folder from acf-fold-flexible-content-master to acf-fold-flexible-content
  3. Upload the plugin to your plugins directory (/wp-content/plugins)
  4. Activate the plugin

Uninstall

  1. Deactivate plugin

Changelog

  • 1.4.1: Minor.
  • 1.4.0: Added support for the latest versions of ACF PRO.
  • 1.3.1: Added support and match markup changes for the latest ACF PRO.
  • 1.3.0: Icons now line up in the same order that the is placed in the Flexible Field group.
  • 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
  • 1.1.7: Support for ACF PRO 5.3.2.2
  • 1.1.6: Fold everything from start. No longer check open/closed state. Better support for ACF Pro.
  • 1.1.5: No longer check open/closed state
  • 1.1.4: Fixed an issue were the tooltips didn't work together with Gravity forms.
  • 1.1.3: Fixed an issue were the tooltips didn't work like expected on regular ACF. ACF Pro was fine. Now both!
  • 1.1.2: Fixed an issue were newly added field layouts did not get icon tooltips. Also fixed so newly added don't always stay blue, not until clicked.
  • 1.1.1: Minor tooltip adjustment. Smaller arrow and moved it a bit above the Field Group toggle list.
  • 1.1.0: Better support for both ACF and ACF PRO
  • 1.0.3: Bug fix. Solves panel active states for ACF PRO 5.1.0
  • 1.0.2: Bug fix: the css and javascripts did not load correctly after 4.0. Now fixed.
  • 1.0.1: Added support for fields: Gallery, url and email
  • 1.0: No longer beta. Added Support for Advanced Custom Fields PRO
  • 0.15: Field type tooltips: replace underscores with spaces
  • 0.1: First version released

acf-fold-flexible's People

Contributors

urre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acf-fold-flexible's Issues

Correct styling for newly added items

I don't have time to do a pull request, but I notice that the "open" class is not correctly added/removed from newly added fields when they are collapsed/expanded. (i.e. they always stay blue)

This could be fixed by passing a selector to on() at line 96 of acf-fold-flexible.admin.js:

$('.acf-postbox').on('click', '.acf-fc-layout-handle', function() {

Support for ACF PRO

This doesn't seem to work with ACF pro. Would be nice to see some support for it :)

Collapse sometimes doesn't work

When clicking on the header area, sometimes the field doesn't hide its content. The header gets gray and a plus icon appears though.

selection_162

Icons "not working"?

Hey! Seems to be an issue with the icons on the foldable fields in the latest versions of your plugin + ACF Pro.

They're all showing by default, and on toggling a field they all disappear.

Uploaded a video here: http://quick.as/22jzcpej2

Advanced Custom Fields PRO v5.3.10
ACF Fold Flexible Content v1.3.1

Section highlighted when section is closed

Sometimes, the active state of a section gets wrong. I think your plugin assumes that all sections are initially closed. But starting from ACF PRO v5 (I think), the open/closed states of the flexible content sections is saved. An open section will be kept open when reloading/updating the edit screen.

This screenshot illustrates the problem:
acf flex

Section 6 is ok.
Section 7 is closed but highlighted.
Section 8 is open but not highlighted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.