Seeing some odd behavior - hope this is right place to post. When I use the non-cached call the snippet does not seem to populate the placeholder.
The ’tester’ snippet code:
<?php
global $modx;
$modx->setPlaceholder("nonform_ph_test", "non-form placeholder text");
?>
Template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<base href="[(site_url)]" />
</head>
<body>
<br />
[[tester]]
Non-Form snippet ph = [+nonform_ph_test+]<br />
[*#content*]<br />
</body>
</html>
If I call the snippet as above ([[tester]]), it works fine. If I however change the call to [!test!] it no longer works - so the placeholder no longer seems to be populated.
Any ideas on what I am doing wrong?
I’ll have a follow up question on forms, but figured I start here. I’m running 0.9.6.3 if that matters.
Thanks!