Dashboards & Visualizations

How to personalize a link label to a view into the navigation menu?

RiccardoV
Communicator

Hi guys,
I've this issue.

I want to personalize the navigation menu in my App. I added all the dashboard manually into the xml, as indicated here:

http://docs.splunk.com/Documentation/Splunk/5.0.2/AdvancedDev/BuildNavigation#Build_the_navigation_X...

If I want to change a collection name, I can use the attr "label".

If I add a link to a dashboard, it will be displayed the value inside the tag "label" into the view's xml file. How can I personalize the label displayed into the menu withouth changing the xml of the view? I tried with the attr "label" but it doesn't work.

thanks in advance for your help!

Tags (2)
1 Solution

sideview
SplunkTrust
SplunkTrust

A strange thing about the default.xml file that powers the app navigation - you can actually put <a> tags right in there and they will get turned into menu items, alongside your <view> and <saved> nodes.

 `<a href="my_custom_view">This is a custom label for my_custom_view</a>`

This is a common trick in Splunk apps, both to customize the label in the navigation separately from the label in the view itself, and to do weird tricks like have the same view linked in the navigation from more than one place, with more than one label.

View solution in original post

sideview
SplunkTrust
SplunkTrust

A strange thing about the default.xml file that powers the app navigation - you can actually put <a> tags right in there and they will get turned into menu items, alongside your <view> and <saved> nodes.

 `<a href="my_custom_view">This is a custom label for my_custom_view</a>`

This is a common trick in Splunk apps, both to customize the label in the navigation separately from the label in the view itself, and to do weird tricks like have the same view linked in the navigation from more than one place, with more than one label.

mattymo
Splunk Employee
Splunk Employee

2021 and this still bangs. 

Thx @sideview 

- MattyMo
0 Karma

jeffland
SplunkTrust
SplunkTrust

Why hasn't this found its way into the documentation?

0 Karma

SwatiApte
Path Finder

Hi,

The tag works well, but the problem with it, is that we cannot make that particular Dashboard to be the default one. Splunk automatically searches for the first 'View' tag declared in the default.xml and makes it the default Dashboard. It does not take the link into account.

Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...