Hi!
I’m creating an snippet and now I need to get the plain content html from an resource I created , I tried some things with getDocument but can’t get it working.
Does anyone know how to solve this issue?
Kind regards,
Boyd
edit: Excuse me for placing this topic in the wrong forum
hi,
have you find the solution ?
i want to get plain html of a resource in snippet.
Laurent
-
☆ A M B ☆
- 24,524 Posts
That depends on which version of MODx you are using. For Evo (1.0.x) use $modx->getDocument(id, ’content’).
http://wiki.modxcms.com/index.php/API:getDocument
-
☆ A M B ☆
- 24,524 Posts
Ah, you want the complete, parsed page. That’s another matter altogether.
yes,
I try to retrieve the contents of a div to display it via javascript ($.post)