Skip to content

Tracking dynamic placeholder position with containing item #1

@kmac23va

Description

@kmac23va

We're trying to use the Dynamic Placeholders package in an accordion system, where each panel of the accordion is created as a child item to an accordion container. We drop the dynamic placeholder into place, and everything works great to start. However, if we reorder the panels, the placeholder content doesn't move with it. For example, if we have panel 1 with content 1 and panel 2 with content 2 and transpose them, the content in the placeholders is now attached to the wrong panel technically (panel 2 has content 1 and panel 1 has content 2).

I'm wondering if there's some way to make the placeholder track with the panel item, perhaps by using the panel item ID for the second half of the key instead of an integer? I'm looking through the source code to see if I can figure out how to make the modification, but I was wondering if you had any immediate thoughts, being closer to the code?

Thanks much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions