Assistance with displaying a dropdown above all template content

I’m trying to create a dropdown list between the page header and page content that displays classifications like ‘Management’, ‘Confidential’, and a few others. I’ve set up a Classification class along with associated Class Sheet, Template and Provider so it appears and works in the ‘Create’ menu. However, the template only shows the dropdown without any of the usual page functionality. Is this the right approach, or is there a better way to handle it? Thanks in advance.

Hello! It seems like you want to have a feature similar to Tags. The tag application is bundled in XWiki Standard. If it’s not in your instance yet, it should be easy to add it. If you don’t want to code, you should look into extensions. There might be some that fit your use case even better. With a quick look I found https://extensions.xwiki.org/xwiki/bin/view/Extension/Classification%20Application but it doesn’t seem to be the same as what you’re talking about.

If the existing tag system is not enough for your use case, please report the missing features or bugs on our issue tracker (or even propose improvements yourself to the existing tag application!).

If you want to use a custom application for your use case, I believe what you’re looking for is UI extensions (UIX): those are points where you can add your own interface.

You’re probably looking to add your classification items in https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/ExtensionPoint/AfterHeaderUIX from what I understand.

In your UIX, you want a select with a button to add/remove data in a custom object (let’s name it: ClassificationList) from the current page. The select can query all its options from the Classification objects you created beforehand on their own pages. Then, the info contained in the ClassificationList object value set on the current page can be displayed however you want in the UIX.


With the model you followed, you created a page to display a classification and all the info about it. E.g. The page displays the properties of the Management classification. I understand that it’s not what you wanted and what I described above should get you closer to what you expected.


Good luck to make it work for your use case!
Lucas C.

@CharpentierLucas thanks for the detailed response. That’s really helpful and I think it sounds like I’ll be going down the UIX route and giving that a go.

1 Like