Ok. Here’s exactly what I did.
1. Create a TV named price, input type text, no output widget. Assign it to the template.
2. Create a snippet named price_check with this code (if you copy/paste this, make sure you don’t leave duplicate <?php and ?> tags in the field)
<?php
if(isset($_SESSION['webValidated'])) {
$tv = $modx->getTemplateVar('price');
// format TV value for display
return $tv['value'];
}
return;
?>
3. In my resource content I put [!price_check!] and [!WebLogin!]
4. Created a web user.
When I’m not logged in I don’t see anything. When I log in, I see the value of the TV.