Access ALM Query result in repeater template
-
Hi Darren,
is there a way to access the ALM Query result in a repeater template?
The reason I’m asking is I use the repeater template to display posts and a hidden modal, which opens by clicking the post.Additionally i have a previous and next button in the modal, to open the previous or next modal. Live Example, see reference section.
The way I’m solving this right now is using the repeater variable $alm_item (-1 for previous button, +1 for next button).
Currently I’m developing a Google Map which displays the posts as markers (got this already working local). If a marker gets clicked the modal should open. So I need to use the post ids instead of $alm_item to open the modal, since the map is not generated by ALM.
What I want to do: Create an array containing all post ids in the same order as ALM outputs them. Then I can assign the ids properly to the modals. The only way I can imagine this is knowing the query result before the repeater template gets called.
Thanks for your help.
Tobias
- The topic ‘Access ALM Query result in repeater template’ is closed to new replies.