Thanks for your reply Susan,
No, the placeholder isn’t set by the snippet. Actually, I may have used the wrong language: the value "myValue" is set with a property from a chunk call. So, for completeness:
In a document (cacheable), I have the following chunk call:
[[$TestChunk?mypropertyvalue=`SomeValue`]]
In TestChunk chunk I have:
[[!TestSnippet? &mypropertyvalue=`[[+mypropertyvalue]]`]]
In TestSnippet I try and access "$mypropertyvalue", either directly or through $scriptProperties
var_dump($scriptProperties);
//Actually, when this is rendered the placeholder gets replaced onscreen, so I do something like
$letters = str_split($mypropertyvalue,1);
foreach($letters as $letter) echo $letter." ";
//Outputs: [ [ + t e s t v a l u e ] ]
// Would expect $mypropertvalue to equal "SomeValue" here
When the snippet is called cached in the chunk it works OK (but for the real implementation I need it to be uncached).
I have tried it with all tags being called uncached too (e.g. the initial chunk call, the "mypropertyvalue" property placeholder in the chunk, and the TestSnippet snippet call).