Main Content

Magnolia Community Forums: Get help with Magnolia: Always visible custom info in adminCentral


  • prism
    prism
    Full name: Marc Johnen
    Posts: 13
    Last post: Jul 25, 2017 3:41:34 PM
    Registered on: May 11, 2016
    Always visible custom info in adminCentral
    #1 by prism on May 8, 2017 7:06:09 PM

    Hi *,

    similar to my (unanswered) previous question.

    I'd like to show some infos that should always be visible like the magnolia logo, it does not matter in which part of adminCentral, to show e.g. if we are in a productive or test environment.

    It's easy to add something to the statusbar in the pages-app via
    /modules/pages/apps/pages/subApps/detail/statusBar/extensions, but I can't find anything similar for a more general solution.

    Any idea?

    Thanks
    Marc

  • mgeljic
    mgeljic
    Full name: Mikaël Geljić
    Posts: 71
    Last post: Nov 10, 2017 11:28:08 AM
    Re: Always visible custom info in adminCentral
    #2 by mgeljic on May 9, 2017 2:53:55 PM

    Hi Marc,

    There is no such config of environment info. You could have some luck with CSS though.

    Basically, one may swap the 'admincentral' Vaadin theme through magnolia.properties (magnolia.ui.vaadin.theme). You may create a set of themes, one per environment.
    This requires a decent understanding of Vaadin themes and Sass, but you may then complete something like:

    .v-shell-user-menu-wrapper::before {
    content: '#PROD';
    right: 20px;
    color: #FFF;
    font-size: 11px;
    padding: 4px 5px;
    background-color: #9A3332;
    display: inline-block;
    border-radius: 3px;
    }


    Please read these two sections in the App theme documentation:
    https://documentation.magnolia-cms.com/display/DOCS/App+theme#Apptheme-Customizingtheadmincentraltheme
    https://documentation.magnolia-cms.com/display/DOCS/App+theme#Apptheme-CompilingyourSassthemes

    By the way, a similar improvement request came through the "suggestion box": https://jira.magnolia-cms.com/browse/MGNLUI-3840
    I invite you (as well as other interested parties) to vote on this issue.

    Cheers,
    Mika

    PS: I would have advised to reply to your previous thread, instead of creating a mostly duplicate one. ;)

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/