Using SharePoint 2013 I have a Content Search web part that I'm using to display 5 News Articles using the following display templates:
- Control: List
- Item: Picture on Left, 3 lines on right
And this is working just fine.
What I would like to include is a link after the 5 News Articles that will take the user to a "News Archive" page where it displays all the News Articles.
I'm thinking of creating a custom Control display template based off the OOTB Control_List.js display template. I suppose I could hard code the link to the News Archive in the display template, but I would like to make it reusable. Is there a way I could dynamically pass data to the Control display template?
Any other suggestions on how to approach this?