<?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: LayoutPanel name for Help | About menu section in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94661#M5174</link>
    <description>&lt;P&gt;Thanks for the JS info. I might give it a try. Thanks for the different options.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Nov 2010 00:48:34 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2010-11-27T00:48:34Z</dc:date>
    <item>
      <title>LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94656#M5169</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I want to place a HTML link in the position where the Help | About menu resides in Splunk Web.&lt;/P&gt;

&lt;P&gt;Does anyone know the layoutPanel value (e.g. appHeader) that will make this possible?&lt;/P&gt;

&lt;P&gt;Also does anyone know where I can get a list of all of the layoutPanel positions that I can use in Advanced XML? This will be useful for positioning modules in a view.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2010 20:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94656#M5169</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2010-11-25T20:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94657#M5170</link>
      <description>&lt;P&gt;That sould be &lt;CODE&gt;navigationHeader&lt;/CODE&gt;. You can take a look at the (mako-) template that renderes the view at &lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/view/dashboard.html&lt;/CODE&gt; and &lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/view/search.html&lt;/CODE&gt; (search form).&lt;/P&gt;

&lt;P&gt;Available regions for a dashboard (might not be complete):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;appHeader&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;navigationHeader&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;viewHeader&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;splSearchControls-inline&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;mainSearchControls&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;panel_row{n}_col{n}[_grp{n}]&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;One option to position the content to the right of the Help | About Links is to add it before the AppBar:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="StaticContentSample" layoutPanel="navigationHeader"&amp;gt;
    &amp;lt;param name="text"&amp;gt;&amp;lt;![CDATA[ &amp;lt;span&amp;gt;|&amp;lt;/span&amp;gt;&amp;lt;a href="#"&amp;gt; Test&amp;lt;/a&amp;gt; ]]&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and set the CSS (application.css) to float right:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.navigationHeader .StaticContentSample { float: right; }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tweaking the padding/margin in the CSS might help in positioning it.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;An easier option as well, is to just use JS to add the link to the menu. In application.js:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$('&amp;lt;a href="#"&amp;gt;Test&amp;lt;/a&amp;gt; &amp;lt;span&amp;gt;|&amp;lt;/span&amp;gt;').prependTo(".AppBar .auxLinks");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$('&amp;lt;span&amp;gt;|&amp;lt;/span&amp;gt; &amp;lt;a href="#"&amp;gt;Test&amp;lt;/a&amp;gt;').appendTo(".AppBar .auxLinks");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you only want to do this in one view, you can do this by surround this statements with something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if($('body.splView-flashtimeline').length) { ... }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Nov 2010 20:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94657#M5170</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-11-25T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94658#M5171</link>
      <description>&lt;P&gt;Hi Ziegfried. Thanks for the info. I tried navigationHeader before but it puts my link just below the menu bar. Is there a (simple) way of positioning the module so that it appears on the right hand side and not the left?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 00:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94658#M5171</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2010-11-26T00:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94659#M5172</link>
      <description>&lt;P&gt;Modified answer&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 00:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94659#M5172</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-11-26T00:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94660#M5173</link>
      <description>&lt;P&gt;It works! but I am not surprised. Clever thinking as usual from yourself. Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 00:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94660#M5173</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2010-11-26T00:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: LayoutPanel name for Help | About menu section</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94661#M5174</link>
      <description>&lt;P&gt;Thanks for the JS info. I might give it a try. Thanks for the different options.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2010 00:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/LayoutPanel-name-for-Help-About-menu-section/m-p/94661#M5174</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2010-11-27T00:48:34Z</dc:date>
    </item>
  </channel>
</rss>

