I installed pdoTools in MODX 2.8.6, without noticing that it needed an update. I tried pdoMenu on one page (didn’t work). Then I found that the content was missing from all resources.
The content tag in all Templates was changed from
[[*content]]
to
[[*#content]]
which MODX failed to parse.
At first I suspected pdoTools, but there’s nothing in its code that would do this. My apologies for at first suggesting that it had caused the problem – I should have checked the code before posting.
Everything is fine since I removed the #
tokens.
My next theory was that FastField was the culprit, though I have no memory of ever installing or using it.
FastField does use that #
token:
class modResourceFieldTag extends modFieldTag {
/**
* Overrides modTag::__construct to set the Field Tag token
* {@inheritdoc}
*/
function __construct(modX & $modx) {
parent :: __construct($modx);
$this->setToken('#');
}
But nothing in the code of the current version would cause my problem.
I’m left with a mystery. My only conjecture is that at some point in the dim past, I installed FastField to help someone with a problem here, and put in the #
tokens to test it. Then I recently uninstalled it without removing the tokens. Why I would put them on every content
tag in about a dozen templates would still be a mystery.
Other theories welcomed.