How to hide Diagram entities from document tree

Hey there,

I’m experimenting further with XWiki and also had a look at the Diagram application. So far it looks okay, but I noticed that a Diagram is basically stored as child page under the page where the diagram is displayed in, resulting in a weird entry in the $documentTree:

The Panel is created using the following macro call:

{{documentTree showTranslations="false" showAttachments="false" showRoot="true" compact="true" root="document:${rootPage}.WebHome" openTo="document:${doc.documentReference}" /}}

Any idea how to hide the diagrams?

At the bottom of the page select the Information tab and change the Hidden attribute to Yes.

For individual pages, that would most likely work. It’s not really convenient to tell all users that they must manually change the visibility of each and every diagram that they create. Wondering if there is any better solution

IMHO, a diagram page should have similar behaviors as attachments. They need to be represented somehow, they’re not really a page on its own that the user would be interested in.