WordPress.org

Forums

Advanced Custom Fields Repeater & Flexible Content Fields Collapser
[resolved] Flexible content, collapses for some not all (5 posts)

  1. rpb1001
    Member
    Posted 3 years ago #

    Nice plugin.

    I have set up two types of flexible content (and no repeater fields)

    One is a simple wysiwyg field. Another is for a document library which has 4 fields including file selectors etc.

    The button collapses the former content type but not the latter.

    Any clues?

    Thank you.

    http://wordpress.org/extend/plugins/advanced-custom-field-repeater-collapser/

  2. Mark Root-Wiley
    Member
    Plugin Author

    Posted 3 years ago #

    Hi @rpb1001,

    The plugin only collapses Repeater or Flexible fields that use the Row layout. In its eyes, there's essentially nothing to collapse in the Table layout because the fields occupy a single row.

    You'll even notice that a Flexible Field with both row and table layouts will show the collapse button and only collapse the Row fields in use. This is certainly imperfect but the table layout in the plugin makes doing anything else challenging and we haven't figured out a way around that limitation yet.

    If this isn't the case, let me know a bit more about how your fields are configured and we'll try to figure out what's going on.

  3. rpb1001
    Member
    Posted 3 years ago #

    Thanks for your swift reply!

    I am using row layout, I should have mentioned. I had a look at the HTML and I see what you mean.

    Here is the set up http://oi43.tinypic.com/2mmv0og.jpg

    Given the distance I would have to drag a new item to reach the top, I'd be happy just to be able to collapse them totally as the click action on the meta bar does even if I have to remember what the content contained is.

    Thanks however for the work on this plugin as it remains useful in other situations.

  4. Mark Root-Wiley
    Member
    Plugin Author

    Posted 3 years ago #

    The second field in your screenshot that isn't collapsed is using the table layout. (The row layout only has one field per row. The table has multiple fields per row.)

    Unfortunately, I don't think the plugin will support the table layout anytime soon, though if you can come up with a good solution to collapse it, by all means please submit it as a pull request on GitHub.

  5. rpb1001
    Member
    Posted 3 years ago #

    Sorry - I am the fool!
    Sure, will let you know if I have inspiration.
    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields Repeater & Flexible Content Fields Collapser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic