WordPress.org

Forums

Tabify Edit Screen
[resolved] Compatibility with other custom fields plugins (40 posts)

  1. lupetalo
    Member
    Posted 2 years ago #

    Hi again,

    Okay, so after re writing the ACF plugin to add metaboxes to all post types, is appears there is a new issue.

    The Tabify plugin is using JS to hide / show the metaboxes based on the tab. This causes ACF field groups (which should remain hidden) to appear.

    I just don't think these 2 plugin can integrate easily. Any ideas?

    Can you share edited version?

  2. Marko Heijnen
    Member
    Plugin Author

    Posted 2 years ago #

    I will look into that later today. I can see the issue since it will automatically set the metaboxes that didn't got added to the list on the last tab if I remember correctly.

    There is a filter for that. tabify_default_metaboxes or tabify_default_metaboxes__{$post_type}.

  3. Scott Kingsley Clark
    Member
    Posted 2 years ago #

    Does ACF toggle any classes on the meta boxes? If so, maybe Tabify can exclude show/hide if the 'acf-hidden' class isn't on the meta box. (or whatever the name is, maybe we can generalize it so any plugins can use it)

  4. elliotcondon
    Member
    Posted 2 years ago #

    @Scott Kingsley Clark

    Yep, I think this would be a good idea. Something like "tabify-ignore".

    Then all 3rd party plugins which need tabify to ignore the metabox can use that.

    What do you think?

  5. Scott Kingsley Clark
    Member
    Posted 2 years ago #

    That's what I was thinking, something generalized for more compatibility. I think that would be perfect and the easiest for both plugins to live along side each other without compromising functionality or additional dev time.

  6. elliotcondon
    Member
    Posted 2 years ago #

    @Marko Heijnen

    How does this sound to you?

    In the next version of ACF, I'll add classes of "tabify-ignore" to the metaboxes which need to remain hidden.

    Cool beans

  7. Marko Heijnen
    Member
    Plugin Author

    Posted 2 years ago #

    Yes that is fine too. I still think the filter 'tabify_default_metaboxes' would be the best solution but having a javascript seems a good idea.

    Reason why the filter is better is that I don't add the classes my javascript code tries to manipulate.

  8. elliotcondon
    Member
    Posted 2 years ago #

    Aah,

    I see! I'll look into the hook this weekend!
    Doe you have any online docs for the hook?

  9. Marko Heijnen
    Member
    Plugin Author

    Posted 2 years ago #

    Unfortunately not. It is something on my list. I will try to release an update of the plugin tomorrow and then I start to get some docs online.

  10. elliotcondon
    Member
    Posted 2 years ago #

    I've solved the issue.
    I added a class to my metaboxes that use a style of "display:none !important"

    This overrides the js hide / show and makes ACF work perfectly with Tabify.

    These patches will be in the next version (3.5.1)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tabify Edit Screen
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic