I have a scenario where I’d like to include a modal in a query, where the visible portion of each query result links to more content that’s rendered in a corresponding modal. Unfortunately, this doesn’t seem to be possible currently since a modal is linked to by the ID and the static ID is duplicated on every query result.
It seems that the right solution would be to dynamically insert the query result ID into the modal ID, and link it that way, but that level of dynamic control doesn’t seem to be possible at the moment.
So… this might just be a feature request, but am I missing something? Is there a way to accomplish this that’s not apparent?
Although dynamic loading is planned in the future, you can now access the current loop id with the “loop-id” tag in the Dynamic Inserter, available from 1.2.8.7.1.
Good to see you here.
I missed this particular request, so will make sure to add it in the next few updates.
The 1.2.8.7.1 implementation adds the necessary info for the ID when inside a loop (-q-x in a query, -r-x in a repeater etc…)