Is it possible to put the content of a document in another one? Also, how to load document informations in a snippet? the document object do the job for the current document, but how to fetch external data ?
thansk in advance,
Blaise Bernier
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
-
☆ A M B ☆
- 24,524 Posts
You can also use a TV with the @DOCUMENT binding.
Thanks a lot for reminding me that there was a binding for that! Sadly in the current situation, I would prefer to include the documents with a snippet because I got many documents to include at many places, and creating a TV for each of them will make things dirty (at least, in my view).
Would you kn how to retrieve document content in a snippet to output it?
thanks again,
Blaise
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
Quote from: grunt_lord at Jan 13, 2007, 07:04 AM
Would you kn how to retrieve document content in a snippet to output it?
Try GetField.
This is the web: the only thing you know about who will come is that you don't know who will come.
Thanks a lot for your replies! In my case, user permissions are not a problem, but I think I’ll rewrite my thing with getDocumentObject. I’m gonna look at the wiki more carefully I think! I’ll also take a look at the get field snippet just to see its features.
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
-
MODX Staff
- 10,725 Posts
Hang on folks...getDocumentObject is an internal function, not an API function. It is only used by the core and should not be used by add-on developers.