Forum
Events app pop up rather than go to page
I am trying to create a pop from the calendar rather than it going to an actual page. is this possible? I can almost get thee but am having trouble getting the correct info in the pop up it is just showing the first events info rather than the actual one you have clicked on:
https://alnandcoastland.kubiaktest.co.uk/events/
any help much appreciated.
here is my template:
I have done this on several sites. Basically you have to output all the modals to the page with one template then output all the triggers with another call to a second template. I could look up a working template but it won't be till I get into my office tonight.
Working example would be brilliant. Thanks for the help.
Emily, I thought of one site I worked on that uses this... https://rspgunshop.com
If you view source you will see all the modals grouped at the top, then you will see later all the triggers.
Click on an item and a modal opens, then there is a link to open the actual page in the modal.
See if you can work it out from there... Otherwise I'll get back to you later
after looking again i have tweaked my code:
the only bit i actually need advise on is how to get the correct slug here:
in the href
i tried this
but not working.
I have figured it out:
Emily,
Normally I use perch_item_count to serialize the modals to the buttons. Of course this is when I have multiple modals being output on the same page.
If you got it all working now that's great. Hope I was able to answer your questions.
Robert