<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle of ONE1 &#187; sidebar</title>
	<atom:link href="http://dvector.com/oracle/tag/sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://dvector.com/oracle</link>
	<description>Obscure words of unity</description>
	<lastBuildDate>Wed, 31 Aug 2011 21:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Categories Sub-menu</title>
		<link>http://dvector.com/oracle/2008/07/16/categories-sub-menu/</link>
		<comments>http://dvector.com/oracle/2008/07/16/categories-sub-menu/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 19:09:23 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[dvector]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[dvector support]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[submenu]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=53</guid>
		<description><![CDATA[This is a very simple version of a Categories sub-menu implemented in the sidebar.php. Once a category is clicked, the sidebar should show the following:

Category description (this is useful other than the sidebar)
Children categories
Posts in the category


Clicking on any category causes this menu to display all posts within that category. I generally try to stay [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple version of a Categories sub-menu implemented in the sidebar.php. Once a category is clicked, the sidebar should show the following:</p>
<ol>
<li>Category description (this is useful other than the sidebar)</li>
<li>Children categories</li>
<li>Posts in the category</li>
</ol>
<p><span id="more-53"></span></p>
<p>Clicking on any category causes this menu to display all posts within that category. I generally try to stay away from children categories but children categories may also be displayed.</p>
<pre>/* If this is a category archive
*  This is a continuation of the if - elseif
*  sequence from the default template sidebar.php
*/
&lt;?php  } elseif (is_category()) { ?&gt;
&lt;?php $current_category = single_cat_title(”, false); ?&gt;
&lt;?php $category_id = get_cat_ID($current_category); ?&gt;
&lt;li&gt;&lt;h2&gt;Description of &lt;?php echo $current_category; ?&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;?php echo category_description($category_id); ?&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Children of &lt;?php echo $current_category; ?&gt;&lt;/h2&gt;
	&lt;ul&gt;
	&lt;?php wp_list_categories('orderby=name&amp;show_count=1&amp;hierarchical=0&amp;title_li=&amp;use_desc_for_title=0&amp;child_of='. $category_id); ?&gt;
	&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Posts in &lt;?php echo $current_category; ?&gt;&lt;/h2&gt;
&lt;ul&gt;
	&lt;?php while (have_posts()) : the_post(); ?&gt;
		&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;?php endwhile; ?&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;?php } ?&gt;</pre>
<h2>What is going on here?</h2>
<p>First we check to see if we are working with a category. If yes, we proceed. Next we assign the category name and the category ID to PHP variables. Then using some template tags and basic formatting, we output the category&#8217;s Description, Children, and Posts.</p>
<h2>References:</h2>
<ul>
<li><a title="wp_list_categories" href="http://codex.wordpress.org/Template_Tags/wp_list_categories">http://codex.wordpress.org/Template_Tags/wp_list_categories</a></li>
<li><a title="single_cat_title" href="http://codex.wordpress.org/Template_Tags/single_cat_title">http://codex.wordpress.org/Template_Tags/single_cat_title</a></li>
<li><a title="category_description" href="http://codex.wordpress.org/Template_Tags/category_description">http://codex.wordpress.org/Template_Tags/category_description</a></li>
<li><a title="Function_Reference" href="http://codex.wordpress.org/Function_Reference">http://codex.wordpress.org/Function_Reference</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/07/16/categories-sub-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sidebar Display on Every View</title>
		<link>http://dvector.com/oracle/2008/05/21/sidebar-display-on-every-view/</link>
		<comments>http://dvector.com/oracle/2008/05/21/sidebar-display-on-every-view/#comments</comments>
		<pubDate>Wed, 21 May 2008 21:41:01 +0000</pubDate>
		<dc:creator>oracle</dc:creator>
				<category><![CDATA[dvector]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dvector support]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/2008/05/21/sidebar-display-on-every-view/</guid>
		<description><![CDATA[The default template shows the sidebar only on selected pages. I often make a design decision to display the sidebar on every or nearly every page. This is a fairly straightforward set of template edits. As an example, we will work with the template single.php. This is the template which displays individual posts
To gain further [...]]]></description>
			<content:encoded><![CDATA[<p>The default template shows the sidebar only on selected pages. I often make a design decision to display the sidebar on every or nearly every page. This is a fairly straightforward set of template edits. As an example, we will work with the template single.php. This is the template which displays individual posts</p>
<p>To gain further understanding of which template files are used when view a WordPress site visit <a href="http://codex.wordpress.org/Site_Architecture_1.5" title="Site Architecture">WordPress Site Architecture</a>.</p>
<p><span id="more-36"></span></p>
<h2>Narrow Column</h2>
<p>The default single.php has its content div set to widecolumn. This needs to be changed to narrowcolumn.</p>
<pre>&lt;div id="content" class="widecolumn"&gt;
to
&lt;div id="content" class="narrowcolumn"&gt;</pre>
<h2> Display Sidebar</h2>
<p>Now display the sidebar by adding the following code just before the get_footer call.</p>
<pre>FROM
&lt;?php get_footer(); ?&gt;

TO
&lt;?php get_sidebar(); ?&gt;
&lt;?php get_footer(); ?&gt;</pre>
<p>Wow, it doesn&#8217;t get much easier than that! Now you know how to convert from without sidebar to with sidebar displays.</p>
<p>Reference links:</p>
<ul>
<li><a href="http://codex.wordpress.org/Site_Architecture_1.5" title="Site Architecture">WordPress Site Architecture</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/05/21/sidebar-display-on-every-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Categories in Sidebar Display</title>
		<link>http://dvector.com/oracle/2008/05/20/categories-in-sidebar-display/</link>
		<comments>http://dvector.com/oracle/2008/05/20/categories-in-sidebar-display/#comments</comments>
		<pubDate>Wed, 21 May 2008 01:48:38 +0000</pubDate>
		<dc:creator>oracle</dc:creator>
				<category><![CDATA[dvector]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[dvector support]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/2008/05/20/categories-in-sidebar-display/</guid>
		<description><![CDATA[There a many reasons why you might not want all categories to display in the side bar. Some possible reasons are:

Display some categories under 1 title and other categories under another title
Some categories may serve a special purpose
Some categories may meant to be hidden

The standard default category widget includes all categories and this cannot be [...]]]></description>
			<content:encoded><![CDATA[<p>There a many reasons why you might not want all categories to display in the side bar. Some possible reasons are:</p>
<ul>
<li>Display some categories under 1 title and other categories under another title</li>
<li>Some categories may serve a special purpose</li>
<li>Some categories may meant to be hidden</li>
</ul>
<p><span id="more-35"></span>The standard default category widget includes all categories and this cannot be changed. However, the WP-dTree plugin is available for all dVector accounts and allows a wide range of options including exclusion of certain categories. Also, those writing their own sidebar.php template have a huge number of options.</p>
<h2>WP-dTree Plugin</h2>
<p>This is an excellent plugin and I recommend its use for all those who wish more advanced display of categories for navigation purposes. It is not currently used on the Oracle of ONE1 blog as my needs are quite simple here but I do implement it on 90% of my client work.</p>
<p>Once activated, options for this plugin are available in the Presentation tab.  From the options it is a simple matter to exclude any number of categories you wish. Just enter a comma separated list of category IDs. <span style="text-decoration: line-through">The ID numbers are found as the first column in the Manage &gt; Categories tab</span> (see comments).</p>
<p>Then just drag the WP-dTree widget into the sidebar as you would any other widget.</p>
<h2>Custom Sidebar Template</h2>
<p>Actual editing of the template sidebar.php provides the most customization power. If you choose this advanced approach, please read documentation provided on wordpress.org. Displaying all but one category may be accomplished with the following code:</p>
<pre>&lt;?php wp_list_categories('show_count=1&amp;exclude=86&amp;title_li=&lt;h2&gt;Categories&lt;/h2&gt;'); ?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/05/20/categories-in-sidebar-display/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Any HTML in the Sidebar</title>
		<link>http://dvector.com/oracle/2008/05/16/any-html-in-the-sidebar/</link>
		<comments>http://dvector.com/oracle/2008/05/16/any-html-in-the-sidebar/#comments</comments>
		<pubDate>Fri, 16 May 2008 22:28:14 +0000</pubDate>
		<dc:creator>oracle</dc:creator>
				<category><![CDATA[dvector]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[dvector support]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/2008/05/16/any-html-in-the-sidebar/</guid>
		<description><![CDATA[Use the Text Widget to add HTML to the sidebar. This makes it very easy to add a wide variety of features to your site. I will demonstrate a few simple examples.

Iconic Links

Say you have a series of icons used to link to special pages or partner sites similar to the image.  Simply add [...]]]></description>
			<content:encoded><![CDATA[<p>Use the Text Widget to add HTML to the sidebar. This makes it very easy to add a wide variety of features to your site. I will demonstrate a few simple examples.</p>
<p><span id="more-34"></span></p>
<h2>Iconic Links</h2>
<p><img src="http://dvector.com/oracle/files/2008/05/iconiclinks.gif" alt="Iconic Links" align="top" /></p>
<p>Say you have a series of icons used to link to special pages or partner sites similar to the image.  Simply add the following HTML to add the iconic links to your sidebar.</p>
<pre>&lt;li&gt;
&lt;a href="http://gruffgoat.com" title="Gruff Goat Information Services"&gt;
&lt;img src="http://dvector.com/arcexercise/wp-content/themes/arcexercise-01/images/goat_logo_btn.jpg"
alt="Gruff Goat Information Services" border="0"&gt;&lt;/a&gt;
&lt;a href="http://redcrossinsewis.org" title="American Red Cross in Southeastern Wisconsin"&gt;
&lt;img src="http://dvector.com/arcexercise/wp-content/themes/arcexercise-01/images/arc_logo_btn.jpg"
alt="American Red Cross in Southeastern Wisconsin" border="0"&gt;&lt;/a&gt;
&lt;a href="http://dvector.com/arcexercise" title="Home"&gt;
&lt;img src="http://dvector.com/arcexercise/wp-content/themes/arcexercise-01/images/home_logo_btn.jpg"
alt="Home" border="0"&gt;&lt;/a&gt;
&lt;/li&gt;</pre>
<h2>Sponsor or Support Banners</h2>
<h2><img src="http://dvector.com/oracle/files/2008/05/sponsorlinks.gif" alt="Sponsor Banner" align="top" /></h2>
<p>Add the following code to add a sponsor or support banner to your sidebar.</p>
<pre>&lt;div align="center"&gt;
&lt;hr&gt;
&lt;p&gt;
&lt;a href="http://redcrossinsewis.org"&gt;
&lt;img src="http://www.redcrossinsewis.org/images/stories/logos/arcinsewis_120x60.gif"
alt="American Red Cross in Southeastern Wisconsin" height="60" width="120" border="1" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.eff.org/br/"&gt;
&lt;img src="http://www.eff.org/br/br.gif"
alt="Join the Blue Ribbon Online Free Speech Campaign"
height="76" width="112" border="1" align="middle"&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;</pre>
<h2> Flash Banner</h2>
<p>Add some flash to your sidebar with the following code.</p>
<pre>&lt;div align="center"&gt;
  &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="160" height="75"&gt;
  &lt;param name="movie"
    value="http://www.redcrossinsewis.org/images/stories/video/redcross_fire_ggis.swf" /&gt;
  &lt;param name="quality" value="high" /&gt;
  &lt;param name="menu" value="false" /&gt;
  &lt;param name="wmode" value="" /&gt;
  &lt;embed src="http://www.redcrossinsewis.org/images/stories/video/redcross_fire_ggis.swf"
    wmode="transparent" quality="high" menu="false"
	pluginspage="http://www.macromedia.com/go/getflashplayer"
	type="application/x-shockwave-flash" width="160"
	height="75"&gt;
  &lt;/embed&gt;
  &lt;/object&gt;
&lt;/div&gt;</pre>
<p>This should help you get started on using the Text widget to impress your site&#8217;s visitors.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/05/16/any-html-in-the-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

