Forum Discussion

tripp-bishop's avatar
10 years ago

Changing Menubar text

Hi everyone,

 

So I have a standard menu-bar component that I'm using on an IdeaPage quilt. I have one menu-bar that controls options for the idea itself and then one for each comment on the idea. The problem is that both types of menu-bar dropdown utilize the same text key, menubar.button.thread_options. This is problematic because I'd like the Idea options to use the default, "Idea options" but for each comment, I'd like the dropdown text to read "Comment options". How can I get the dropdown to use different text depending on the context? Does the "menu-bar" component take any parameters that would help with this?

 

Cheers,

 

Tripp

 

  • KaelaC's avatar
    KaelaC
    10 years ago

    Our text keys are not node aware.  They would know the difference between a root message and a comment, an Idea and a Blog, but not one Idea from another Idea.  

     

    Best bet might be using a psuedo class like:

     

    options-menu:after{

    content: 'Comment Options';

    }

  • as a corrollary to this:

    Is there a way in textdefs to pin-point a specify board when defining a text definition?

    something along the lines of:

    menubar.button.board_options@coreNode.id:myideas = My shiny options

    or something along those lines. I know that I can hone in a specific page type using something like:

    menubar.button.board_options@page:IdeaExchangePage = Ideas options

    but if I have multiple idea boards this doesn't really work.
    • KaelaC's avatar
      KaelaC
      Lithium Alumni (Retired)

      Our text keys are not node aware.  They would know the difference between a root message and a comment, an Idea and a Blog, but not one Idea from another Idea.  

       

      Best bet might be using a psuedo class like:

       

      options-menu:after{

      content: 'Comment Options';

      }

      • tripp-bishop's avatar
        tripp-bishop
        Mentor
        Thanks Kaela. The pseudo class did the trick along with some other CSS to hide the actual label text.