<?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 menu dropdown default.xml migration to Splunk 6 in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143076#M2320</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've also been looking at this and it is possible.&lt;/P&gt;

&lt;P&gt;Assuming that you're working with the 'Search' app, you can take most of what is in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/apps/search/local/data/ui/nav/default.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in Splunk 5 and use it with Splunk 6, by creating a similar file in the same location.&lt;/P&gt;

&lt;P&gt;For example, we use the &lt;CODE&gt;&amp;lt;collection&amp;gt;&lt;/CODE&gt; tag to group Dashboards together.&lt;/P&gt;

&lt;P&gt;So the 'default' default.xml for the Search App looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav search_view="search" color="#65A637"&amp;gt;
  &amp;lt;view name="search" default='true' /&amp;gt;
  &amp;lt;view name="data_models" /&amp;gt;
  &amp;lt;view name="reports" /&amp;gt;
  &amp;lt;view name="alerts" /&amp;gt;
  &amp;lt;view name="dashboards" /&amp;gt;
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could change this to include all your dashboards by doing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav search_view="search" color="#65A637"&amp;gt;
  &amp;lt;view name="search" default='true' /&amp;gt;
  &amp;lt;view name="data_models" /&amp;gt;
  &amp;lt;view name="reports" /&amp;gt;
  &amp;lt;view name="alerts" /&amp;gt;
  &amp;lt;collection label="Dashboards" &amp;gt;
    &amp;lt;view name="dashboards" /&amp;gt;
    &amp;lt;divider /&amp;gt;
    &amp;lt;view source="unclassified" /&amp;gt;
  &amp;lt;/collection&amp;gt;
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you've worked with &lt;CODE&gt;&amp;lt;collection&amp;gt;&lt;/CODE&gt; tag in Splunk 5, you should be able to do the same in Splunk 6. You can use the 'match="xxx"' to create dynamic menus, as described here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/BuildNavigation"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/BuildNavigation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;One slight downside with this in Splunk 6, is that the drop-down menus have a maximum height, so you then have to scroll inside them. You could probably fix this by hacking away at the .css, but this seems a bit overkill.&lt;/P&gt;

&lt;P&gt;Hopefully the UI people at Splunk will see the value in having drop-down menus without internal scroll bars. Please just make it work like Splunk 5!&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Graham&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2013 14:12:14 GMT</pubDate>
    <dc:creator>gmor</dc:creator>
    <dc:date>2013-11-15T14:12:14Z</dc:date>
    <item>
      <title>Navigation menu dropdown default.xml migration to Splunk 6</title>
      <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143074#M2318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Is there any documentation out there on migration to Splunk 6 regarding nav menus and the default.xml file? We have numerous dashboards grouped into different match categories that didn't seem to be grouped in our dev environment after going from 5 to 6. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 19:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143074#M2318</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-11-14T19:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation menu dropdown default.xml migration to Splunk 6</title>
      <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143075#M2319</link>
      <description>&lt;P&gt;There is a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Installation/ChangesforSplunkappdevelopers"&gt;Changes for Splunk app developers&lt;/A&gt; topic in the upgrade chapter of the Installation Manual. I don't see your specific issue there, though, unless you have JavaScript in your default.xml file.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 20:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143075#M2319</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2013-11-14T20:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation menu dropdown default.xml migration to Splunk 6</title>
      <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143076#M2320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've also been looking at this and it is possible.&lt;/P&gt;

&lt;P&gt;Assuming that you're working with the 'Search' app, you can take most of what is in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/apps/search/local/data/ui/nav/default.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in Splunk 5 and use it with Splunk 6, by creating a similar file in the same location.&lt;/P&gt;

&lt;P&gt;For example, we use the &lt;CODE&gt;&amp;lt;collection&amp;gt;&lt;/CODE&gt; tag to group Dashboards together.&lt;/P&gt;

&lt;P&gt;So the 'default' default.xml for the Search App looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav search_view="search" color="#65A637"&amp;gt;
  &amp;lt;view name="search" default='true' /&amp;gt;
  &amp;lt;view name="data_models" /&amp;gt;
  &amp;lt;view name="reports" /&amp;gt;
  &amp;lt;view name="alerts" /&amp;gt;
  &amp;lt;view name="dashboards" /&amp;gt;
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could change this to include all your dashboards by doing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav search_view="search" color="#65A637"&amp;gt;
  &amp;lt;view name="search" default='true' /&amp;gt;
  &amp;lt;view name="data_models" /&amp;gt;
  &amp;lt;view name="reports" /&amp;gt;
  &amp;lt;view name="alerts" /&amp;gt;
  &amp;lt;collection label="Dashboards" &amp;gt;
    &amp;lt;view name="dashboards" /&amp;gt;
    &amp;lt;divider /&amp;gt;
    &amp;lt;view source="unclassified" /&amp;gt;
  &amp;lt;/collection&amp;gt;
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you've worked with &lt;CODE&gt;&amp;lt;collection&amp;gt;&lt;/CODE&gt; tag in Splunk 5, you should be able to do the same in Splunk 6. You can use the 'match="xxx"' to create dynamic menus, as described here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/BuildNavigation"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/BuildNavigation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;One slight downside with this in Splunk 6, is that the drop-down menus have a maximum height, so you then have to scroll inside them. You could probably fix this by hacking away at the .css, but this seems a bit overkill.&lt;/P&gt;

&lt;P&gt;Hopefully the UI people at Splunk will see the value in having drop-down menus without internal scroll bars. Please just make it work like Splunk 5!&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Graham&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 14:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143076#M2320</guid>
      <dc:creator>gmor</dc:creator>
      <dc:date>2013-11-15T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation menu dropdown default.xml migration to Splunk 6</title>
      <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143077#M2321</link>
      <description>&lt;P&gt;Perfect. Just what I needed! Any idea which stylesheet sets the height of the drop down?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 23:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143077#M2321</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-11-26T23:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation menu dropdown default.xml migration to Splunk 6</title>
      <link>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143078#M2322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;With regard to 'aaronkorn's comment above...&lt;/P&gt;

&lt;P&gt;I haven't found a successful way of changing the height, but you could play around with the "max-height:" variable in ".dropdown-menu ul":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/share/splunk/search_mrsparkle/exposed/css/bootstrap.min.css
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I changed it to 1000px, which works up to a point, but breaks other menus, as the element is used elsewhere.&lt;/P&gt;

&lt;P&gt;I wouldn't recommend it.&lt;/P&gt;

&lt;P&gt;This is the full line in that file if you want to search for it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.dropdown-menu ul{list-style:none;margin:0;border:1px solid #a9a9a9;border-bottom-color:#909090;border-top-color:#b6b6b6;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#ffffff;*zoom:1;overflow-x:hidden;overflow-y:auto;*position:relative;max-width:100%;max-height:270px;box-sizing:border-box;}.dropdown-menu ul:before,.dropdown-menu ul:after{display:table;content:"";line-height:0;}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2013 08:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Navigation-menu-dropdown-default-xml-migration-to-Splunk-6/m-p/143078#M2322</guid>
      <dc:creator>gmor</dc:creator>
      <dc:date>2013-11-27T08:13:18Z</dc:date>
    </item>
  </channel>
</rss>

