Hello, friends, really need your help!
At our organization, we’ve implemented to XWiki section templates for project management. These already include pages for analytics, development, testing, and so on.
When a new project starts, the project manager creates a new section using this template, and a large tree of pages with standard content is created in XWiki.
On the one hand, this is very convenient: we can create a ready-made section with an internal structure and pages in one click.
On the other hand, all these pages are displayed in the structure by default as regular wiki pages. The user begins navigating through them, but they don’t yet contain useful information, only a template. This irritates the user—they’ve navigated to this page in vain. Since there are many such draft pages in the project section, user frustration grows, as they can’t distinguish in the navigation draft pages and pages with full-fledged working information.
How can we make draft pages appear specially in the XWiki structure (for example, in 50% gray)? This way, users can identify them as drafts in the navigation bar and other navigation elements, and avoid having to navigate to them unnecessarily.
Essentially, we need special rendering for such pages in navigation elements (the “Navigation panel” macro, the “Children” macro, and the “Document Tree” macro).
Possible scenario:
To identify such pages, we can include a special tag (“draft”) for them in the template.
When XWiki finds this tag, it will identify the page as a draft and, according to the rendering rules defined in the CSS, display it appropriately in the navigation (for example, in 50% gray).
And when work on the page is finished, the author removes the “draft” tag, and the page appears in the navigation as a standard wiki page (without special CSS styling).
Questions:
- How feasible is this scenario for XWiki?
- How can we force XWiki to parse page tags and, upon detecting the “draft” tag, classify this page as a special class of draft pages?
- And how can we enable an alternative rendering option for this class of pages in navigation elements (“Navigation Panel” macro, “Document Tree” macro, and “Children” macro)?
We are using XWiki version 17.4.5.
I’d be very grateful for any advices ))