The process() method uses this to set the properties as placeholders and then unsets those and restores any that were overwritten in the scope of the chunk.
This raised a question - i use process() in the following way (which works) - but now after I see your reply, I doubt if I should setPlaceholders or i can pass the extra tags in an array?
class memberPost extends modResource {
public function process($properties= null, $content= null) {
$this->xpdo->toPlaceholders($this->getManyDetails('MemberPostEmbeds'));
parent :: process($properties, $content);
return $this->_content;
}
}
(code is a fragment only)
I’ve looked at modResource.class and modtemplatevar.class to understand how this works. is that correct?
another question - is there anyway to get the template/chunk name used to render this view in the process() ? as far as i see - not. but if ’yes’ it would be a very good place to handle per-view caching (by chunk name).
Thanks