Custom Fields
Re-Envisioned
Support Meta Box Group Combine Group Title using a FIELD => ID + numeric indicator {#}

This topic contains 2 replies, has 2 voices, and was last updated by  Teia Local Studio 4 months, 2 weeks ago.

  • Creator
    Topic
  • #14410
    Resolved
    Teia Local Studio
    Participant

    Hello Ahn!

    I would like to ask if it is possible, for GROUP_TITLE to make a combination between:

    'group_title' => array( 'field' => 'title' )
    and
    'group_title' => '{#}'

    I have no idea how to mix both (or even if it is possible at the current moment). I would like to suggest some extra param to activate the number indicator on each GROUP_TITLE, TRUE or FALSE.

    Something like:

    array(
        'id'     => 'my-block',
        'type'   => 'group',
        'collapsible' => true,
        'group_title' => array( 'field' => 'title' ),
        'counter' => true, // Combines the title with the iterator {#}: Displays a number before the title (#1: My Title)
        'save_state' => true,
        'clone'  => true,
        'sort_clone' => true,
        'fields' => array( ...)
    )

    Nothing essential, but could be nice to have it someway.
    Thanks!
    G.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #14415

    Anh Tran
    Keymaster

    Hi G.,

    In the latest version of Group, we have improved the settings for group title, so you can simply enter something like this:

    'group_title' => '{#} {field_1} {field_2} Something else'

    I have just updated the docs for that.

    #14424

    Teia Local Studio
    Participant

    Oh super.
    I was relying on the documentation info!

    Thanks for the update, Ahn.
    I really, really, love the whole [M]MetaBox world!

    Regards!
    G.

    (I think this topic can be locked!)

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.