Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.