XCEPTION
XCEPTION

Reputation: 1753

How to customise the admin bar in ApostropheCMS?

I am new to ApostropheCMS. I went through the documentation and tried out demos of it. I have created a user listing with filters on it as per the tutorial but I have not got the gist of it completely. I was trying to customise the admin bar. How can I do that? Will I have to override the apostrophe-admin-bar module?

Upvotes: 0

Views: 355

Answers (1)

Thomas Vuillaume
Thomas Vuillaume

Reputation: 81

In Apos-v3 you can edit the modules\@apostrophecms\admin-bar\index.js file, to add an item to the groups array.

You can group your modules, like I did for my 'preview', 'navigation' and 'home' pieces :

module.exports = {
    options: {
      groups: [
        {
          name: 'media',
          label: 'Media',
          items: [
            '@apostrophecms/image',
            '@apostrophecms/file',
            '@apostrophecms/image-tag',
            '@apostrophecms/file-tag'
          ]
        },
        {
          name: 'home',
          label: 'Gestion Accueil',
          items: [
            'preview',
            'navigation',
            'home'
          ]
        },
]

Upvotes: 0

Related Questions