|
[
Permalink
| « Hide
]
James Mortimer added a comment - 20/Mar/07 06:23 PM
another way to achieve this would be to request to have the include macro parameterized so that you specifically include a portion of the page, or to use the metadata-plugin or zones plugin to pull back only a specific section of the page. so there are several (less elegant) ways to achieve this currently.
Hiding details if a page is included would help us a lot, too.
It would also be important that a "type=include" would also detect secure-included pages, as now there's no other way to hide content if you use the "secure-include" -macro. (Cause it uses the rights of the person who created the secure-include macro) I think a {hide-if:type=included} would be the best option! 1) see also this user macro: http://confluence.atlassian.com/display/CONFEXT/no-include+User+Macro
2) in addition to Christian's comment, there are several ways to 'include' content from another page. There is a user macro called 'edit-include', and there is a plugin called "zones plugin" which both can be used to simply include one page in another. Metadata-from and checklist-attribute also perform a similiar function. Would it be possible for type=include to detect edit-include, zone-template-instance, metadata-from, and checklist-attribute calls aswell? Or will it always be the responsibility of the 'include' macro to do so. Perhaps what we need is a better, well rounded single 'include' macro, as part of the visibility plugin, which incorporates the best features from 'edit-include', 'snippet','zone-template-instance','metadata-from','secure-include','include'. This 'include' macro could override the built in one, and respect the {no-include} or {hide:type=include} or {hide:mode=include} tags. 3) Try this paradigm: Page One, Two, Three like this {toc}
h3. Intro
{metadata:Intro}
{metadata}
h3. Details
{metadata:Details}
...details...
{metadata}
Summary Page like this {toc}
h3. Children Pages
{metadata-report:Title,Intro,Details|root=@self|pages=@children}
or Summary Page like this {toc}
h3. Children Pages
{checklist:Title|depth=1}
{checklist-wiki:Page}
h5. Intro
{metadata-from:Intro}
h5. Details
{metadata-from:Details}
{checklist-wiki}
{checklist}
or Summary Page using the more eleborate "Reporting Plugin" to have fine control over display. |
|||||||||||||||||||||||||||||||||||||||||||||