How to make the "Profile of Admin" pages hidden?

Hi all,

XWiki will automatically create a “Profile of XXX” user profile page in XWiki space. That will result in a long list under XWiki if there are many users created.

I wonder if there’s a way to make these user profile pages default hidden when they were created?

Regars.

Hi, there’s no such feature ATM. May I ask what is your use case for hiding them?

You mentioned a “long list under XWiki” but why is this a problem? (trying to understand the use case :)).

Thx

Hi Vincent,

Thanks for your reply. I want the profile page to be hidden mainly because that I do like the list to be tidy. :slight_smile:

I think that there should be some macro or script that will be triggered during the creation of users. Is it possible to modify the script and make the page hidden when the page is created?

Regards.

If the “XWiki” space could be hidden from the Navigation Panel, would that be enough for your need? Or do you also want profile pages to not be able to be found in Search, Page Index, etc?

Right now, the clean way to implement it is by writing an EventListener and listen to XWiki.XWikiUsers xobject creation, and set the doc to hidden. Some info on http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutorial.

If there’s a way to hide “XWiki” space from the Navigation Panel, it would be great for me. Any solution for it?

Unfortunately there’s no way to blacklist some locations in the Navigation Panel ATM, see Loading...

We need to convince @mflorea that the feature is needed :slight_smile:

You could develop some custom tree if you’re a dev (see Loading...).

Hi @vmassol & @mflorea,

Actually normal users pay little attention to the pages under “XWiki” space since most of them are system generated and have less meaning for common user.

XWiki provide a feature that the hidden pages can be made invisilble in the navigation tree. However if there’s any page that is not hidden in a space then the space item will be visible in the tree. That makes it hard for people to hide “XWiki” since a new non-hidden profile page will be added when a user is created.

So hope there’s an easy way to make it happen.

Thanks again for your effort.

Regards.