<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <generator>http://textpattern.com/</generator>
 <title>Textpattern Tips – Category menu excluding the parent</title>
 <description>Category menu excluding the parent - comments</description>
 <link>https://textpattern.tips/category-menu-excluding-the-parent</link>
 <atom:link href="https://textpattern.tips/category-menu-excluding-the-parent?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Sat, 13 Oct 12 18:25:01 +0000</pubDate>

 <item>
     <title>Comment on Category menu excluding the parent by Simon</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000662" id="c000662">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000662" id="c000662">1</a></guid>
     <pubDate>Thu, 25 Feb 10 10:12:26 +0000</pubDate>
     <description><![CDATA[<p>How would you limit the amount of child categories say to 4 and the have a view more link which would then output the remaining categories, so it would be something similar to this business directory, <br><a href="http://www.athlone.ie/athlonedirectory/browse.aspx" rel="nofollow">www.athlone.ie</a></p>]]></description>
     <content:encoded><![CDATA[<p>How would you limit the amount of child categories say to 4 and the have a view more link which would then output the remaining categories, so it would be something similar to this business directory, <br><a href="http://www.athlone.ie/athlonedirectory/browse.aspx" rel="nofollow">www.athlone.ie</a></p>]]></content:encoded>
     <dc:creator>Simon</dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000858" id="c000858">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000858" id="c000858">1</a></guid>
     <pubDate>Sun, 23 Jan 11 17:46:43 +0000</pubDate>
     <description><![CDATA[<p>I can&#8217;t get the class active to display as such.  i have a css style with this:</p>
<pre><code>&lt;div id="subnav_products"&gt;&lt;div id="nav"&gt;
&lt;ul id="subnav_products"&gt;
[ your code ]
&lt;/ul&gt;</pre></code>
<p>and as css:</p>
<pre><code>ul#subnav_products li a.active {
  color: #cc0000;
}</code></pre>]]></description>
     <content:encoded><![CDATA[<p>I can&#8217;t get the class active to display as such.  i have a css style with this:</p>
<pre><code>&lt;div id="subnav_products"&gt;&lt;div id="nav"&gt;
&lt;ul id="subnav_products"&gt;
[ your code ]
&lt;/ul&gt;</pre></code>
<p>and as css:</p>
<pre><code>ul#subnav_products li a.active {
  color: #cc0000;
}</code></pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000859" id="c000859">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000859" id="c000859">1</a></guid>
     <pubDate>Mon, 24 Jan 11 00:15:02 +0000</pubDate>
     <description><![CDATA[<p>Hi Bici, saw you <a href="https://forum.textpattern.com/viewtopic.php?pid=240324#p240324" rel="nofollow">forum post</a> about the problem. </p><p>Looks to me like you have a nested <code>ul</code> inside the <code>&lt;ul id="subnav_products"&gt;</code>, so you may need to adjust the rule to:</p>
<pre><code>ul#subnav_products ul li a.active { 
    color: #cc0000;
}</code></pre>
<p>Note the extra <code>ul</code>. See if that works. If not, can you post the <span class="caps">HTML</span> output?</p>]]></description>
     <content:encoded><![CDATA[<p>Hi Bici, saw you <a href="https://forum.textpattern.com/viewtopic.php?pid=240324#p240324" rel="nofollow">forum post</a> about the problem. </p><p>Looks to me like you have a nested <code>ul</code> inside the <code>&lt;ul id="subnav_products"&gt;</code>, so you may need to adjust the rule to:</p>
<pre><code>ul#subnav_products ul li a.active { 
    color: #cc0000;
}</code></pre>
<p>Note the extra <code>ul</code>. See if that works. If not, can you post the <span class="caps">HTML</span> output?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000860" id="c000860">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000860" id="c000860">1</a></guid>
     <pubDate>Mon, 24 Jan 11 04:45:06 +0000</pubDate>
     <description><![CDATA[<p>still not working. I got rid of the second need for the UL. Now I only have: </p>
<pre><code>&lt;div id="leftnava"&gt;&lt;div id="nav"&gt;</code></pre>
<p>and CSS:</p>
<pre><code>#leftnava ul li a:hover {
  color: #cc0000;
}
#leftnava ul li a.active {
  color: #cc0000;
}</code></pre>]]></description>
     <content:encoded><![CDATA[<p>still not working. I got rid of the second need for the UL. Now I only have: </p>
<pre><code>&lt;div id="leftnava"&gt;&lt;div id="nav"&gt;</code></pre>
<p>and CSS:</p>
<pre><code>#leftnava ul li a:hover {
  color: #cc0000;
}
#leftnava ul li a.active {
  color: #cc0000;
}</code></pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000861" id="c000861">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000861" id="c000861">1</a></guid>
     <pubDate>Mon, 24 Jan 11 04:51:27 +0000</pubDate>
     <description><![CDATA[<p>What is the <span class="caps">HTML</span> output from page source?</p>]]></description>
     <content:encoded><![CDATA[<p>What is the <span class="caps">HTML</span> output from page source?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000862" id="c000862">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000862" id="c000862">1</a></guid>
     <pubDate>Mon, 24 Jan 11 05:00:20 +0000</pubDate>
     <description><![CDATA[<pre><code>&lt;div id="leftnava"&gt;&lt;div id="nav"&gt;
   &lt;ul class="category_list"&gt;
	&lt;li&gt;&lt;a href="http://example.dev/index.php?s=products&amp;amp;c=angelo-brand"&gt;Angelo Brand&lt;/a&gt;&lt;/li&gt;
	&lt;li class="active"&gt;&lt;a href="http://example.dev/index.php?s=products&amp;amp;c=tiger-brand"&gt;Tiger Brand&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;</pre></code>]]></description>
     <content:encoded><![CDATA[<pre><code>&lt;div id="leftnava"&gt;&lt;div id="nav"&gt;
   &lt;ul class="category_list"&gt;
	&lt;li&gt;&lt;a href="http://example.dev/index.php?s=products&amp;amp;c=angelo-brand"&gt;Angelo Brand&lt;/a&gt;&lt;/li&gt;
	&lt;li class="active"&gt;&lt;a href="http://example.dev/index.php?s=products&amp;amp;c=tiger-brand"&gt;Tiger Brand&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;</pre></code>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000863" id="c000863">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000863" id="c000863">1</a></guid>
     <pubDate>Mon, 24 Jan 11 05:10:49 +0000</pubDate>
     <description><![CDATA[<p>PS when i code the category listing like this:</p>
<pre><code>&lt;li&gt;&lt;a class="active" href="http://example.dev/index.php?s=products&amp;amp;c=tiger-brand"&gt;Tiger Brand&lt;/a&gt;&lt;/li&gt;</pre></code>
<p>it works fine.</p>]]></description>
     <content:encoded><![CDATA[<p>PS when i code the category listing like this:</p>
<pre><code>&lt;li&gt;&lt;a class="active" href="http://example.dev/index.php?s=products&amp;amp;c=tiger-brand"&gt;Tiger Brand&lt;/a&gt;&lt;/li&gt;</pre></code>
<p>it works fine.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000864" id="c000864">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000864" id="c000864">1</a></guid>
     <pubDate>Mon, 24 Jan 11 05:39:49 +0000</pubDate>
     <description><![CDATA[<p>Bici, the second example works because your rule is for the anchor (a) tag:</p>
<pre><code>#leftnava ul li a.active {
  color: #cc0000;
}
</code></pre>
<p>If you change it to:</p>
<pre><code>#leftnava ul li.active {
  color: #cc0000;
}
</code></pre>
<p>Then it should work for the first example, which sets the active class to the <code>li</code> tag: <code>&lt;li class="active"&gt;</code>. Hope this helps!</p>]]></description>
     <content:encoded><![CDATA[<p>Bici, the second example works because your rule is for the anchor (a) tag:</p>
<pre><code>#leftnava ul li a.active {
  color: #cc0000;
}
</code></pre>
<p>If you change it to:</p>
<pre><code>#leftnava ul li.active {
  color: #cc0000;
}
</code></pre>
<p>Then it should work for the first example, which sets the active class to the <code>li</code> tag: <code>&lt;li class="active"&gt;</code>. Hope this helps!</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000865" id="c000865">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000865" id="c000865">1</a></guid>
     <pubDate>Mon, 24 Jan 11 05:52:16 +0000</pubDate>
     <description><![CDATA[<p>Yes!  Many thanks. I had some other leftnava css that was interfering with the out put. it now works.</p><p>P.S. I am starting to &#8220;get&#8221; TxP a little more after this exercise</p>]]></description>
     <content:encoded><![CDATA[<p>Yes!  Many thanks. I had some other leftnava css that was interfering with the out put. it now works.</p><p>P.S. I am starting to &#8220;get&#8221; TxP a little more after this exercise</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by Husain Hakim</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000875" id="c000875">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000875" id="c000875">1</a></guid>
     <pubDate>Tue, 15 Feb 11 13:23:42 +0000</pubDate>
     <description><![CDATA[<p>Hi,</p><p>Is it possible to have an active class for the top category? Like this:</p>
<pre><code>&lt;ul&gt;
   &lt;li class="active"&gt;My Category
       &lt;ul&gt;
          &lt;li&gt;Sub Category1&lt;/li&gt;
          &lt;li&gt;Sub Category2&lt;/li&gt;
          &lt;li&gt;Sub Category3&lt;/li&gt;
      &lt;/ul&gt;
   &lt;/li&gt;<br>&lt;/ul&gt;</code></pre>]]></description>
     <content:encoded><![CDATA[<p>Hi,</p><p>Is it possible to have an active class for the top category? Like this:</p>
<pre><code>&lt;ul&gt;
   &lt;li class="active"&gt;My Category
       &lt;ul&gt;
          &lt;li&gt;Sub Category1&lt;/li&gt;
          &lt;li&gt;Sub Category2&lt;/li&gt;
          &lt;li&gt;Sub Category3&lt;/li&gt;
      &lt;/ul&gt;
   &lt;/li&gt;<br>&lt;/ul&gt;</code></pre>]]></content:encoded>
     <dc:creator>Husain Hakim</dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by bici</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000876" id="c000876">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000876" id="c000876">1</a></guid>
     <pubDate>Tue, 15 Feb 11 21:41:28 +0000</pubDate>
     <description><![CDATA[<p>Hi &#8211; </p>
<p>i added the following to my form that handles navigation:</p>
<pre><code>&lt;txp:section_list wraptag="ul" break="li" active_class="active" sections=", about, store, samples, contact, links" /&gt;</code></pre>]]></description>
     <content:encoded><![CDATA[<p>Hi &#8211; </p>
<p>i added the following to my form that handles navigation:</p>
<pre><code>&lt;txp:section_list wraptag="ul" break="li" active_class="active" sections=", about, store, samples, contact, links" /&gt;</code></pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://bicilogic.com">bici</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by adida</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000964" id="c000964">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c000964" id="c000964">1</a></guid>
     <pubDate>Wed, 06 Jul 11 06:41:15 +0000</pubDate>
     <description><![CDATA[<p>Does the code require anything else? I copied and pasted the code and it does not work.</p>]]></description>
     <content:encoded><![CDATA[<p>Does the code require anything else? I copied and pasted the code and it does not work.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://bizzona.net">adida</a></dc:creator>
 
</item>
<item>
     <title>Comment on Category menu excluding the parent by Vineet Sawant</title>
     <link><a href="https://textpattern.tips/category-menu-excluding-the-parent#c001158" id="c001158">1</a></link>
     <guid><a href="https://textpattern.tips/category-menu-excluding-the-parent#c001158" id="c001158">1</a></guid>
     <pubDate>Sat, 13 Oct 12 18:25:01 +0000</pubDate>
     <description><![CDATA[<p>Thanks, it was a great tip, helped me a lot.</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks, it was a great tip, helped me a lot.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://blog.thevineet.com">Vineet Sawant</a></dc:creator>
 
</item>

</channel>
</rss>