<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Navigation href attribute with default attribute in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186414#M11555</link>
    <description>&lt;P&gt;Hi @martin_mueller,&lt;/P&gt;

&lt;P&gt;Thanks! okey, I will have to figure out some other workaround to it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;
Anyways thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2015 23:32:15 GMT</pubDate>
    <dc:creator>shrirangphadke</dc:creator>
    <dc:date>2015-07-01T23:32:15Z</dc:date>
    <item>
      <title>Navigation href attribute with default attribute</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186410#M11551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to create a navigation menu with HTML href attribute as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav color="3075AB"&amp;gt;
    &amp;lt;collection label="My Label"&amp;gt;
        &amp;lt;a href="/app/myappname/firewall__overview" default='true'&amp;gt;Overview&amp;lt;/a&amp;gt;
          ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I click on '&lt;STRONG&gt;myappname&lt;/STRONG&gt;' I am redirected to alerts page instead of myapp default page which is &lt;STRONG&gt;firewall__overview&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;When I specify same page with View XML tag my default page becomes &lt;STRONG&gt;firewall__overview&lt;/STRONG&gt; which is expected behavior. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;nav color="3075AB"&amp;gt;
        &amp;lt;collection label="My Label"&amp;gt;
            &amp;lt;view name="firewall__overview" default="true"/&amp;gt;
              ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I am wondering whether default tag does not work with href attribute.&lt;BR /&gt;
If I want to make it work with href attribute is there any workaround?&lt;/P&gt;

&lt;P&gt;If that is not possible then is there any way to override View name in Navigation menu?&lt;BR /&gt;
Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186410#M11551</guid>
      <dc:creator>shrirangphadke</dc:creator>
      <dc:date>2015-07-01T21:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation href attribute with default attribute</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186411#M11552</link>
      <description>&lt;P&gt;The name attribute is not used in the nav bar.    The nav bar use the &lt;STRONG&gt;label&lt;/STRONG&gt; tag within the dashboard xml to display within the Navigation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard showsource="false" script="contents.js" stylesheet="contents.css"&amp;gt;
    &amp;lt;label&amp;gt;Examples FooBar&amp;lt;/label&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Example FooBar&lt;/STRONG&gt; will be the text with the nav bar.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186411#M11552</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-01T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation href attribute with default attribute</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186412#M11553</link>
      <description>&lt;P&gt;Hi @bmacias,&lt;/P&gt;

&lt;P&gt;Thanks for your answer,&lt;/P&gt;

&lt;P&gt;Actually the problem I am trying to solve is as follows:&lt;/P&gt;

&lt;P&gt;My page label is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;label&amp;gt;Firewall-Alerts&amp;lt;/label&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On some other page I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;label&amp;gt;Firewall-Overview&amp;lt;/label&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But on navigation menu I want to represent navigation as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Firewall
   Alerts
   Overview
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thus I want to override label in Navigation to make it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Firewall-Alerts --- Alerts
Firewall-Overview -- Overview
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way to achieve this?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186412#M11553</guid>
      <dc:creator>shrirangphadke</dc:creator>
      <dc:date>2015-07-01T21:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation href attribute with default attribute</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186413#M11554</link>
      <description>&lt;P&gt;Unlike the &lt;CODE&gt;view&lt;/CODE&gt; tag, the &lt;CODE&gt;a&lt;/CODE&gt; tag does not have a &lt;CODE&gt;default&lt;/CODE&gt; attribute. See the RelaxNG schema for &lt;CODE&gt;nav.xml&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
View = element view {
    (
        attribute name { text }
        | (
            attribute source { "all" | "unclassified" }
            &amp;amp; attribute match { text }?
        )
    )
    &amp;amp; attribute default { text }?
}

A = element a {
    attribute href { text }
    &amp;amp; text
}
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Conversely, the &lt;CODE&gt;view&lt;/CODE&gt; tag doesn't have a &lt;CODE&gt;label&lt;/CODE&gt; attribute or plain xml text to override the displayed label &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 22:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186413#M11554</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-01T22:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation href attribute with default attribute</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186414#M11555</link>
      <description>&lt;P&gt;Hi @martin_mueller,&lt;/P&gt;

&lt;P&gt;Thanks! okey, I will have to figure out some other workaround to it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;
Anyways thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 23:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Navigation-href-attribute-with-default-attribute/m-p/186414#M11555</guid>
      <dc:creator>shrirangphadke</dc:creator>
      <dc:date>2015-07-01T23:32:15Z</dc:date>
    </item>
  </channel>
</rss>

