<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Different Sidebar submenu for each top level page??</title>
		<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page</link>
		<description>Support Forum - Topic: Different Sidebar submenu for each top level page??</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 16:32:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/different-sidebar-submenu-for-each-top-level-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-8037</link>
			<pubDate>Sun, 31 Oct 2010 07:37:52 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">8037@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that we could help you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-8020</link>
			<pubDate>Sat, 30 Oct 2010 15:44:49 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">8020@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks - I think that's as close as I'm going to get it! It seems a little temperamental on some pages, but I will have a fiddle with the CSS etc. and see what I can do.&#60;/p&#62;
&#60;p&#62;It would be a fantastic idea to turn this functionality into a widget or plugin or something so you can have the choice to turn it on or off depending on the page - I've seen a few very similar requests on these forums, and it really helps bridge the gap between being a blog used for business info, and a proper website with cms - once you can get better control of sub menus, it makes such a difference to the navigation of a site. &#60;/p&#62;
&#60;p&#62;This is my first experience with wordpress, and it's the only thing letting it down tbh.&#60;/p&#62;
&#60;p&#62;Can't fault the support though,  you guys have been really helpful.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-8016</link>
			<pubDate>Sat, 30 Oct 2010 14:39:17 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">8016@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You can use following code to achieve what you want:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $k_option, $custom_widget_area;
if ($k_option[&#38;#39;custom&#38;#39;][&#38;#39;bodyclass&#38;#39;] == &#38;quot;&#38;quot;) // check if its a full width page, if full width dont show the sidebar content
{
			##############################################################################
			# Display the sidebar menu
			##############################################################################

				$default_sidebar = true;

				echo &#38;quot;&#38;lt;div class=&#38;#39;sidebar&#38;#39;&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_top&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth start of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_bottom&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth end of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;; ?&#38;gt;

&#38;lt;?php
if($post-&#38;gt;post_parent)
  $children .= wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;post_parent.&#38;quot;&#38;amp;echo=0&#38;quot;);
  else
  $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
  if ($children) { ?&#38;gt;
  &#38;lt;div class=&#38;quot;widget widget_pages&#38;quot;&#38;gt;

  &#38;lt;h3&#38;gt;Sub-Navigation&#38;lt;/h3&#38;gt;
  &#38;lt;ul&#38;gt;
  &#38;lt;?php
  echo $children; ?&#38;gt;
  &#38;lt;/ul&#38;gt;
  &#38;lt;/div&#38;gt;
  &#38;lt;?php } 

				//Frontpage sidebars:
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;frontpage&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Frontpage Sidebar&#38;#39;) ) : $default_sidebar = false; endif;

				// general blog sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;blog&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Blog&#38;#39;) ) : $default_sidebar = false; endif;

				// general pages sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;page&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Pages&#38;#39;) ) : $default_sidebar = false; endif;

				//unique Page sidebars:
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Page: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//unique Category sidebars
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Category: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//sidebar area displayed everywhere
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Displayed Everywhere&#38;#39;)) : $default_sidebar = false; endif;

				//default dummy sidebar
				if ($default_sidebar &#38;amp;&#38;amp; $k_option[&#38;#39;includes&#38;#39;][&#38;#39;dummy_sidebars&#38;#39;] == 1)
				{

					if(is_page()){
					?&#38;gt;
					&#38;lt;div class=&#38;quot;box_small box widget community_news&#38;quot;&#38;gt;&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Features we offer&#38;lt;/h3&#38;gt;
						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Absolutley Striking Designs&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, usmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Multiple color options&#38;lt;/strong&#38;gt;Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Unique Features&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

					&#38;lt;!--end box--&#38;gt;
					&#38;lt;/div&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;

					&#38;lt;?php }else{ ?&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;
					&#38;lt;?php dummy_widget(2); ?&#38;gt;
					&#38;lt;?php dummy_widget(3); ?&#38;gt;

				&#38;lt;?php
					}
				}
				echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

}	       	?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-8008</link>
			<pubDate>Sat, 30 Oct 2010 10:22:22 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">8008@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;OK!  Thanks a lot for all the help BTW it is really appreciated.&#60;/p&#62;
&#60;p&#62;Not quite right yet though - the sub menu appears only on pages that have child pages. When you go on one of the child pages, How can we stilll get the menu to stay, and indicate which page we are currently on?&#60;/p&#62;
&#60;p&#62;Using your getting started content, when I'm on the about the theme page, I get:&#60;/p&#62;
&#60;p&#62;Sub Pages&#60;br /&#62;
------------------------------------&#60;br /&#62;
# Basic Shortcodes&#60;br /&#62;
# Advanced Shortcodes&#60;br /&#62;
# HTML Styles&#60;br /&#62;
# Fullwidth &#38;amp; Columns&#60;br /&#62;
# Popular Treatments&#60;br /&#62;
# Tab Example&#60;br /&#62;
# Even more Tabs&#60;/p&#62;
&#60;p&#62;which is perfect - however, when I click on one of those pages, the sub menu goes away.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7969</link>
			<pubDate>Fri, 29 Oct 2010 15:36:48 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">7969@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I corrected your code - it should work now.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $k_option, $custom_widget_area;
if ($k_option[&#38;#39;custom&#38;#39;][&#38;#39;bodyclass&#38;#39;] == &#38;quot;&#38;quot;) // check if its a full width page, if full width dont show the sidebar content
{
			##############################################################################
			# Display the sidebar menu
			##############################################################################

				$default_sidebar = true;

				echo &#38;quot;&#38;lt;div class=&#38;#39;sidebar&#38;#39;&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_top&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth start of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_bottom&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth end of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;; ?&#38;gt;

&#38;lt;?php $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
if ($children != &#38;quot;&#38;quot;) { // conditional so only shows up if there are sub pages ?&#38;gt;
&#38;lt;div class=&#38;quot;box_small box widget&#38;quot;&#38;gt;
&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Sub Pages&#38;lt;/h3&#38;gt;&#38;lt;!-- You can remove this line if you don&#38;#39;t want a title :) --&#38;gt;
	&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
		&#38;lt;?php echo $children; ?&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;?php }
				//Frontpage sidebars:
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;frontpage&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Frontpage Sidebar&#38;#39;) ) : $default_sidebar = false; endif;

				// general blog sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;blog&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Blog&#38;#39;) ) : $default_sidebar = false; endif;

				// general pages sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;page&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Pages&#38;#39;) ) : $default_sidebar = false; endif;

				//unique Page sidebars:
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Page: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//unique Category sidebars
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Category: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//sidebar area displayed everywhere
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Displayed Everywhere&#38;#39;)) : $default_sidebar = false; endif;

				//default dummy sidebar
				if ($default_sidebar &#38;amp;&#38;amp; $k_option[&#38;#39;includes&#38;#39;][&#38;#39;dummy_sidebars&#38;#39;] == 1)
				{

					if(is_page()){
					?&#38;gt;
					&#38;lt;div class=&#38;quot;box_small box widget community_news&#38;quot;&#38;gt;&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Features we offer&#38;lt;/h3&#38;gt;
						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Absolutley Striking Designs&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, usmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Multiple color options&#38;lt;/strong&#38;gt;Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Unique Features&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

					&#38;lt;!--end box--&#38;gt;
					&#38;lt;/div&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;

					&#38;lt;?php }else{ ?&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;
					&#38;lt;?php dummy_widget(2); ?&#38;gt;
					&#38;lt;?php dummy_widget(3); ?&#38;gt;

				&#38;lt;?php
					}
				}
				echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

}	       	?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7964</link>
			<pubDate>Fri, 29 Oct 2010 13:32:53 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">7964@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok, tried that - it results in the sidebar and footer completely disappearing... aaargghh!&#60;/p&#62;
&#60;p&#62;I've tried it everywhere, nothing works..&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $k_option, $custom_widget_area;
if ($k_option[&#38;#39;custom&#38;#39;][&#38;#39;bodyclass&#38;#39;] == &#38;quot;&#38;quot;) // check if its a full width page, if full width dont show the sidebar content
{
			##############################################################################
			# Display the sidebar menu
			##############################################################################

				$default_sidebar = true;

				echo &#38;quot;&#38;lt;div class=&#38;#39;sidebar&#38;#39;&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_top&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth start of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_bottom&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth end of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;

&#38;lt;?php $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
if ($children != &#38;quot;&#38;quot;) { // conditional so only shows up if there are sub pages ?&#38;gt;
&#38;lt;div class=&#38;quot;box_small box widget&#38;quot;&#38;gt;
&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Sub Pages&#38;lt;/h3&#38;gt;&#38;lt;!-- You can remove this line if you don&#38;#39;t want a title :) --&#38;gt;
	&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
		&#38;lt;?php echo $children; ?&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;?php } ?&#38;gt;
				//Frontpage sidebars:
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;frontpage&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Frontpage Sidebar&#38;#39;) ) : $default_sidebar = false; endif;

				// general blog sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;blog&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Blog&#38;#39;) ) : $default_sidebar = false; endif;

				// general pages sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;page&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Pages&#38;#39;) ) : $default_sidebar = false; endif;

				//unique Page sidebars:
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Page: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//unique Category sidebars
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Category: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//sidebar area displayed everywhere
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Displayed Everywhere&#38;#39;)) : $default_sidebar = false; endif;

				//default dummy sidebar
				if ($default_sidebar &#38;amp;&#38;amp; $k_option[&#38;#39;includes&#38;#39;][&#38;#39;dummy_sidebars&#38;#39;] == 1)
				{

					if(is_page()){
					?&#38;gt;
					&#38;lt;div class=&#38;quot;box_small box widget community_news&#38;quot;&#38;gt;&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Features we offer&#38;lt;/h3&#38;gt;
						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Absolutley Striking Designs&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, usmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Multiple color options&#38;lt;/strong&#38;gt;Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Unique Features&#38;lt;/strong&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

					&#38;lt;!--end box--&#38;gt;
					&#38;lt;/div&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;

					&#38;lt;?php }else{ ?&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;
					&#38;lt;?php dummy_widget(2); ?&#38;gt;
					&#38;lt;?php dummy_widget(3); ?&#38;gt;

				&#38;lt;?php
					}
				}
				echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

}	       	?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7955</link>
			<pubDate>Fri, 29 Oct 2010 12:23:58 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">7955@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;The code @Dude provided should go just above &#60;strong&#62;//Frontpage sidebars:&#60;/strong&#62; assuming you wanted to put it in the sidebar at the very top (before any widgets).&#60;/p&#62;
&#60;p&#62;To tidy it up a bit, I'd put it in the same container widgets go in and would look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
if ($children != &#38;quot;&#38;quot;) { // conditional so only shows up if there are sub pages ?&#38;gt;
&#38;lt;div class=&#38;quot;box_small box widget&#38;quot;&#38;gt;
&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Sub Pages&#38;lt;/h3&#38;gt;&#38;lt;!-- You can remove this line if you don&#38;#39;t want a title :) --&#38;gt;
	&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
		&#38;lt;?php echo $children; ?&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know how you get on :)&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7922</link>
			<pubDate>Thu, 28 Oct 2010 16:48:06 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">7922@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I've tried adding that  - but it doesn't doe anything but it breaks the page depending where I put it - here is the code for sidebar.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $k_option, $custom_widget_area;
if ($k_option[&#38;#39;custom&#38;#39;][&#38;#39;bodyclass&#38;#39;] == &#38;quot;&#38;quot;) // check if its a full width page, if full width dont show the sidebar content
{
			##############################################################################
			# Display the sidebar menu
			##############################################################################

				$default_sidebar = true;

				echo &#38;quot;&#38;lt;div class=&#38;#39;sidebar&#38;#39;&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_top&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth start of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;
				echo &#38;quot;&#38;lt;span class=&#38;#39;sidebar_bottom&#38;#39;&#38;gt;&#38;lt;!-- needed for smooth end of sidebar background--&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;;

				//Frontpage sidebars:
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;frontpage&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Frontpage Sidebar&#38;#39;) ) : $default_sidebar = false; endif;

				// general blog sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;blog&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Blog&#38;#39;) ) : $default_sidebar = false; endif;

				// general pages sidebars
				if ($k_option[&#38;#39;showSidebar&#38;#39;] == &#38;#39;page&#38;#39; &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Sidebar Pages&#38;#39;) ) : $default_sidebar = false; endif;

				//unique Page sidebars:
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Page: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//unique Category sidebars
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Category: &#38;#39;.$custom_widget_area) ) : $default_sidebar = false; endif;

				//sidebar area displayed everywhere
				if (function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;amp;&#38;amp; dynamic_sidebar(&#38;#39;Displayed Everywhere&#38;#39;)) : $default_sidebar = false; endif;

				//default dummy sidebar
				if ($default_sidebar &#38;amp;&#38;amp; $k_option[&#38;#39;includes&#38;#39;][&#38;#39;dummy_sidebars&#38;#39;] == 1)
				{

					if(is_page()){
					?&#38;gt;
					&#38;lt;div class=&#38;quot;box_small box widget community_news&#38;quot;&#38;gt;&#38;lt;h3 class=&#38;quot;widgettitle&#38;quot;&#38;gt;Features we offer&#38;lt;/h3&#38;gt;
						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Absolutley Striking Designs&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;Lorem ipsum dolor sit amet, usmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Multiple color options&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

						&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
						&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Unique Features&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&#38;lt;/p&#38;gt;
						&#38;lt;/div&#38;gt;

					&#38;lt;!--end box--&#38;gt;
					&#38;lt;/div&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;

					&#38;lt;?php }else{ ?&#38;gt;
					&#38;lt;?php dummy_widget(1); ?&#38;gt;
					&#38;lt;?php dummy_widget(2); ?&#38;gt;
					&#38;lt;?php dummy_widget(3); ?&#38;gt;

				&#38;lt;?php
					}
				}
				echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

}	       	?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7810</link>
			<pubDate>Wed, 27 Oct 2010 07:30:15 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">7810@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It would list all childrens of the current page - you can put this code into your sidebar.php and list all subpages of a current page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-7743</link>
			<pubDate>Tue, 26 Oct 2010 11:32:15 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">7743@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Sorry, I'm not a PHP programmer (just frontend, but I can muddle a bit) what would that code do?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-6575</link>
			<pubDate>Wed, 13 Oct 2010 09:44:13 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">6575@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You could use a code like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
echo $children; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in your sidebar.php to display the pages in the way you want.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-6556</link>
			<pubDate>Wed, 13 Oct 2010 07:43:51 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">6556@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That's horribly clunky solution - it works, but it means that I would have to make a separate menu, and separate widget for EVERY SINGLE PAGE. As a site grows, it would become completely unmanageable.&#60;/p&#62;
&#60;p&#62;Haha, surely this is such a common way of presenting sub-navigation it must have been tackled in a better way?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-6520</link>
			<pubDate>Tue, 12 Oct 2010 07:59:07 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">6520@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You could create specifc widget areas under Avisio Options &#38;gt; Sidebar &#38;amp; Footer --- Extra Widget Areas for specific Pages.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mike_m on "Different Sidebar submenu for each top level page??"</title>
			<link>http://www.kriesi.at/support/topic/different-sidebar-submenu-for-each-top-level-page#post-6470</link>
			<pubDate>Mon, 11 Oct 2010 14:35:58 +0000</pubDate>
			<dc:creator>mike_m</dc:creator>
			<guid isPermaLink="false">6470@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi, Just getting to grips with wordpress, and the avisio template - I'm hitting a wall in regards to the sidebar submen:&#60;/p&#62;
&#60;p&#62;I want the sidebar sub menu to display the children of *only* it's parent page. eg:&#60;/p&#62;
&#60;p&#62;if we are on the ABOUT top level page, the sub-menu would be :&#60;/p&#62;
&#60;p&#62;ABOUT (current page)&#60;br /&#62;
- More Info&#60;br /&#62;
- something else&#60;br /&#62;
- etc.&#60;/p&#62;
&#60;p&#62;I can see how to create multiple other menus in Appearance/Menus, but as far as I can tell, I can only add one menu to the sidebar, and the choice is that it will display over *ALL* pages regardless of the parent page. Is this correct? it makes navigation hard - there must be a solution? &#60;/p&#62;
&#60;p&#62;In short: I'd like to be able to assign different sub menus to different pages..
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
