Hello all you MODxers,
How do I display the content from another page in the content section of a new page? If I create a chunk, I’m concerned that it won’t be easy for my client to edit it. Ideally, I just want the content to be duplicated so that I don’t have redundant copies that need to be kept up-to-date.
Cheers,
J.
-
☆ A M B ☆
- 24,524 Posts
Use a TV with @DOCUMENT binding.
IMO, you’d have to make @EVAL (or a simple snippet) to retrieve document titles and their IDs to build the list of document you need. Then, the ID chosen in the dropdown could be used in a chunk with GetField (see my sig) call to display ANY part of the document chosen.
This is the web: the only thing you know about who will come is that you don't know who will come.
Grad,
your GetField snippet worked beautifully, but there was an issue with the install: the actual .inc.php file was not placed in the correct location, although the other files were. it was shoved three directories down in it’s own private assets/snippets/getfield/ dir! I just moved it up the heirarchy to where MODx was expecting to find it, and deleted the extra directories.
Many thanks for this feature!
J.