Support

Account

Home Forums Add-ons Gallery Field Gallery Field options per image Reply To: Gallery Field options per image

  • Hi guys,

    I’ve not yet “coded” anything, but I had a few minutes to think about it.
    Here’s what I’ll probably try to do (if you guys just enter this discussion, make sure to refer to my initial post):

    • Gallery field
    • Repeater field containing two fields: one to identity the image I want to attribute a specific size (width), one to set the size value.

    ┌─────────────────────────────────────────────────────────────────────┐
    │Gallery Field                                                        │
    │                                                                     │
    │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐              │
    │ │        │ │        │ │        │ │        │ │        │              │
    │ │        │ │        │ │        │ │        │ │        │              │
    │ │        │ │        │ │        │ │        │ │        │              │
    │ │        │ │        │ │        │ │        │ │        │              │
    │ └────────┘ └────────┘ └────────┘ └────────┘ └────────┘              │
    │                                                                     │
    │                                                                     │
    │                                                                     │
    └─────────────────────────────────────────────────────────────────────┘
                                                                           
    ┌─────────────────────────────────────────────────────────────────────┐
    │Image Size                                                           │
    │                                                                     │
    │                    ┌───────────────────────┐       ┌─────────┐      │
    │   Image reference: │IMG_8452             ▼ │  Size:│3        │      │
    │                    └───────────────────────┘       └─────────┘      │
    │                                                                     │
    │                                                       ┌───────────┐ │
    │                                                       │ Add Size  │ │
    │                                                       └───────────┘ │
    └─────────────────────────────────────────────────────────────────────┘

    What I would love to achieve is filling the “Image Reference” dropdown automatically depending the gallery content. This is where acf/input/admin_head could help?

    Cheers