-
☆ A M B ☆
- 1,780 Posts
What exactly are you trying to do, and where?
Where is the snippet call? Are you trying to pull a whole "page's" output into another resource with the *content tag? (that won't work btw).
The content tag is not associated with the template's TV's and won't, by itself produce anything other than what is in the content field in a resource. If you're wanting to get the content from a resource (or resources) and display it in another resource (regardless of template) and maintain TV output, you can do that with getResources (see package management).
Additionally, I am pretty sure that "echo" should be "return" in your snippet code. Although if you're looking to produce what I think you are, you don't need it. I could be entirely wrong though.
I need to get full template output for first document first template, for second document - second. Each template has individual parameters.
getResources uses one chunk to render document list, I need to use for each document self-attached template
-
☆ A M B ☆
- 1,780 Posts
Yeah, I'm still confused. Which is normal.
What do you mean by document and template?
i.e. does Document=Page=Resource? (resource being a page, or document in the resource tree)
and for template, you are referring to a MODX element, a Template that is associated with a Resource(page/document)?
Are you looking to produce a list of links, and/or content from fields and TV's? Or complete page renders of the resource including the template and then another complete page render of a different resource and template?
Checking again... yep. Still confused :~}
I can get 'modDocument' or 'modResource'. I mean the document is page with attached template and show in frontend and I need to get this page content (with TVs) which user can see in frontend, but I need to get it in my snippet
That's it! Thank you very much!