Questions tagged [evolution-cms]
3 questions
2
votes
1 answer
How to parse the document content and then process the final HTML within a snippet? (EVO2)
In Evolution CMS (former MODx Evolution) I have some scenarios where I use a snippet to go through the document content using the DOM in PHP.
The document content contains HTML and several snippets. Those snippets generate custom HTML output (when…

Avatar
- 14,622
- 9
- 119
- 198
0
votes
1 answer
How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?
I am using Evolution CMS (Modx) and have several functions declared (in snippets).
Those functions I can include in Evo CMS by calling e.g. $modx->runSnippet('functions_main');.
Now I have an external PHP script (independent from Evo CMS) and would…

Avatar
- 14,622
- 9
- 119
- 198
0
votes
1 answer
Load Resource content of other document into recent document and execute its snippets - Evolution CMS (former ModX Evo)
I like to use a snippet (that I place in document A) to load content of document B and display it.
If it would be only HTML, it would be easy to load like that using the snippet:
$docdata = $modx->getDocument($docid, 'content', 1);
return…

Avatar
- 14,622
- 9
- 119
- 198