Burnt 2 hours trying to find a solution to this now - figure it’s time to check my thinking. Thanks to anyone who casts their eye over this. I’m using Evolution 1.0.0 and I’m having issues accessing variables I believe I’m passing correctly from a chunk to a snippet call.
I have a chunk which is being called by Ditto with the contents:
[[GraphHLStarter? &toLinkTo=`[+GraphicLink+]`]]<img src="[+GraphicHighlight+]" />[[GraphHLFinisher? &toLinkTo=`[+GraphicLink+]`]]
I’ve whittled my snippets (named GraphHLStarter and GraphHLFinisher) all the way down to:
<?php
return 'Test' . $toLinkTo;
?>
When I run the page, all that gets returned is ’Test’ and no value in place of $toLinkTo. I noticed that there’s some mention around the place of using [!...!] calls (non-cachable). When I do that though, the snippet doesn’t run I just end up with the call listed in my code. I do know that [+GraphicLink+] does have content which isn’t getting through because when I break the call by using the exclamation marks, I see can see the full call in my output (e.g. [!GraphHLStarter? &toLinkTo=`Get-Connected/life_groups`!] )
I’m using no editor to edit my chunk, so it’s not that it’s ending up with extra garb around it. The snippet definitely gets called - I just don’t seem to be able to access my variable to work with it.
Any help/thoughts would be very much appreciated!