Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a link on the page of the MODx site. By clicking on this link I turn to another page. I want to transfer all [content] from the first page to a new page and display it. How can I do this

share|improve this question

Use a TV with the @DOCUMENT binding or the getField-Snippet. Both methods work for MODx Evolution.

On MODx-questions, please include whether your are using Evolution or Revolution, since the code base differs heavily, as so does the functionality.

share|improve this answer
Thanx feela, I just did not happen. In both proposed methods for solving my problem, I get the message "Unable to locate document" I use Evolution MODx – Astraport May 1 '11 at 15:51
If i use [!GetField? &docid=??? &field=content!] in second page, what i must set in &docid ? Second page can run from any of handreds pages. – Astraport May 1 '11 at 16:15
@Astraport if there is a message "Unable to locate document", your document-id seems to be wrong. If you don't know what a doc-id within MODx is, you should refer to their documentation. Your second question: I don't know, what in your terminology is "first-" or "second-page". If you don't want to set a static doc-id, you can use another snippet within the GetField-snippet-call, to determine the document-id. This may be something like UltimateParent or a self-created snippet, which may read the referer or a session-variable, to output a doc-id. – feeela May 2 '11 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.