Quote from: zakary at Jan 16, 2007, 06:05 AM
Are templates applied to a whole page or can a template be applied to document / a section of a page ?
A template describes the entire structure of a page, including the positioning of all the items, and contains a mixture of static HTML, and some MODx tags like [*pagetitle*], [*content*] and so on.
Each individual page has a template assigned to it individually (obviously many pages can share the same template) and when that particular page is constructed, the tags are then replaced by the actual values relevant to that page .. so the [*pagetitle*] tag in the template gets replaced by the ACTUAL page title, and the [*content*] tag gets replaced by the actual content and so on.
So you don’t really "apply a template" to a page ; its more that you "fill in a template" to make a page...
In short, you can’t immediately do what you want using the normal MODx features.
However, it may be possible to do this is some clever way, but I’m too new at MODx myself to see clearly how to do it .. the sort of thing that I am thinking of is a snippet that could "import" the data from a particular document. Then you could put the snippet into a second page (with a different template) and get the content re-formatted...
Gordon