Forum Discussion
Dries Verdonckt
Mar 27, 2017Copper Contributor
ID (or other attributes) linked to next search item
Hi,
I need to create some display templates for SharePoint and when a user clicks on an item, shows a preview in a lightbox (no problem here). Now the user should be able to see the preview of the next/previous search item directly by using his arrow buttons.
Example:
- end-user clicks on search result b, system opens a preview lightbox
- when he clicks his right arrow, the system shows the preview lightbox of result c
- he clicks again right arrow and the system shows the preview lightbox of result d
- etc. etc.
My question: how can i know what the ID is (or another attribute) from my next search item. I think i have to pass this from my item display template to my control display templates, but still searching how i'm able to do this.
Thanks in advance!
Dries
- Dries VerdoncktCopper Contributor
Elio Struyf: do you have any experience/advise on this?