Hi all, In my template, ServiceProductHolder.ss, I have a control loop listing multiple ServiceProducts and within the control block I have:
<p><a href="$saveToMember">Add to My Programme</a></p>
I want saveToMember to run when the link is clicked, but it is obviously running for every ServiceProduct listed when the page loads. This must be a problem with my template syntax - how can I stop this and run it only when the link is clicked?
I have something similar working elsewhere using something like:
<a href="{$Top.Link}functionName">Do function</a>
but because this function is on the page controller it's slightly different.
Any help much appreciated!