Dashboards & Visualizations

How to create a hyperlink in main menu

aditsss
Builder

Hi Everyone,

I need to create one hyperlink in my top menu bar.

I tried with following code. But its not working.

<collection>
<li><a href="O2 Team">O2 Team</a></li>
</collection>

I just want it as a static link as of now.

Can someone guide me how to create it.

 

Labels (3)
0 Karma

bowesmana
Champion

You need to add a label="xxx" to your <collection> and remove the <li> from the line, e.g.

<collection label="This is the label for your collection">
  <a href="O2 Team">O2 Team</a>
</collection>  

but that will create a drop down menu with the label and your link will be in that menu.

If you just use the <a> line without <collection>, then you will have a single entry in your menu with the link to your href

 

0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!