how do i include a document to another document?
example: if i have a page named BLA and i want to include the page BOO to him
how do i do it?
tnx ahead :]
Do you mean include the content from one document on another document? You can do this in a few different ways. With a snippet like Ditto or GetField. Or you could bind a TV to a document ussing the @DOCUMENT binder.
-
☆ A M B ☆
- 24,524 Posts
1. Create a new Template Variable. Name it what you like, say IncludeDoc. As the default value, put @DOCUMENT 12.
2. In the document where you want this displayed, put the TV tags [*includeDoc*]. Now the content of document 12 will be inserted where you put the TV tags.
And a little intermediate step (which could also be done afterwards but I think it’s more logical to put it in between)
1.5 When you create the TV tick off template access for the template where you’ll use [*includeDoc*]
MODx snippet-glossary 101:
Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control
When you edit your template variable, go to the section called "Template Access" and put a check-mark at the template where you want to use your template variable.
(If you don’t it will not be available, and no output will be shown.)
MODx snippet-glossary 101:
Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control
OK now i can see that the [*blablabla*] works.
cause its shows me "Unable to locate document 12" no matter what page id i put ...
=\
-
☆ A M B ☆
- 24,524 Posts
Is document #12 published? Or was it assigned to a document group you don’t have permission to view?
offcourse hes published man