<?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 – Hierarchical category menu with articles</title>
 <description>Hierarchical category menu with articles - comments</description>
 <link>https://textpattern.tips/hierarchical-category-menu-with-articles</link>
 <atom:link href="https://textpattern.tips/hierarchical-category-menu-with-articles?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Fri, 11 Nov 11 10:38:00 +0000</pubDate>

 <item>
     <title>Comment on Hierarchical category menu with articles by Markus Merz | Hamburg St. Georg</title>
     <link><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001011" id="c001011">1</a></link>
     <guid><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001011" id="c001011">1</a></guid>
     <pubDate>Fri, 04 Nov 11 12:40:34 +0000</pubDate>
     <description><![CDATA[<p><strong><span class="caps">WOW</span>!</strong><br>Just trying this on a new website.<br>Still have to understand how to tweak and style this monster.<br>Main issue with creating a category driven sidebar menu was that your <a href="http://www.greatoceanmedia.com.au/txp/?plugin=adi_cat_menu" rel="nofollow">adi_cat_menu</a> doesn&#8217;t offer such multi-level output :)</p>]]></description>
     <content:encoded><![CDATA[<p><strong><span class="caps">WOW</span>!</strong><br>Just trying this on a new website.<br>Still have to understand how to tweak and style this monster.<br>Main issue with creating a category driven sidebar menu was that your <a href="http://www.greatoceanmedia.com.au/txp/?plugin=adi_cat_menu" rel="nofollow">adi_cat_menu</a> doesn&#8217;t offer such multi-level output :)</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sankt-georg.info/">Markus Merz | Hamburg St. Georg</a></dc:creator>
 
</item>
<item>
     <title>Comment on Hierarchical category menu with articles by Markus Merz | Hamburg St. Georg</title>
     <link><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001012" id="c001012">1</a></link>
     <guid><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001012" id="c001012">1</a></guid>
     <pubDate>Sun, 06 Nov 11 17:56:21 +0000</pubDate>
     <description><![CDATA[<p>Class <strong>active_cat</strong> needs to be assigned to the <code>a</code> instead of <code>li</code>. Otherwise the class is applied to the whole <code>li</code> including the submenu <code>ul</code>.</p><p>Pls. note the nested tags with <strong>one</strong> <code>'</code> and <strong>two</strong> single  quotes. My working code for active anchors (<span class="caps">TXP</span> 4.4.1):</p><pre><code>&lt;li&gt;&lt;txp:category title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre><p>This needs to be done for cat_menu and all three submenus.</p><p><a href="https://textpattern.net/wiki/index.php?title=category" rel="nofollow">txp:category</a></p><blockquote><p>class=&#8220;class name&#8221;<br>(X)HTML class attribute, applied to wraptag. If no wraptag is supplied (and link=&#8220;1&#8221;), the class is applied to the anchor instead. <br>Default: unset.</p></blockquote><p>(The same is true for <cite>articles dangling at the appropriate places</cite>. They are listed at the end of the submenu .. still have to check that.)</p>]]></description>
     <content:encoded><![CDATA[<p>Class <strong>active_cat</strong> needs to be assigned to the <code>a</code> instead of <code>li</code>. Otherwise the class is applied to the whole <code>li</code> including the submenu <code>ul</code>.</p><p>Pls. note the nested tags with <strong>one</strong> <code>'</code> and <strong>two</strong> single  quotes. My working code for active anchors (<span class="caps">TXP</span> 4.4.1):</p><pre><code>&lt;li&gt;&lt;txp:category title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre><p>This needs to be done for cat_menu and all three submenus.</p><p><a href="https://textpattern.net/wiki/index.php?title=category" rel="nofollow">txp:category</a></p><blockquote><p>class=&#8220;class name&#8221;<br>(X)HTML class attribute, applied to wraptag. If no wraptag is supplied (and link=&#8220;1&#8221;), the class is applied to the anchor instead. <br>Default: unset.</p></blockquote><p>(The same is true for <cite>articles dangling at the appropriate places</cite>. They are listed at the end of the submenu .. still have to check that.)</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sankt-georg.info/">Markus Merz | Hamburg St. Georg</a></dc:creator>
 
</item>
<item>
     <title>Comment on Hierarchical category menu with articles by Markus Merz | Hamburg St. Georg</title>
     <link><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001017" id="c001017">1</a></link>
     <guid><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001017" id="c001017">1</a></guid>
     <pubDate>Fri, 11 Nov 11 10:35:55 +0000</pubDate>
     <description><![CDATA[<p>Another small trap.<br>Per default the menu outputs <code>li</code> which filter the landing page by section.</p><p>Example: If all articles reside in section &#8216;articles&#8217; the landing page will be empty if you click the menu inside section &#8216;about&#8217;.</p><p>Deactivate the section filter: To get consistent landing pages you have to add <code>section=""</code> to <code>txp:category</code>.</p><pre><code>&lt;li&gt;&lt;txp:category title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre><p><a href="https://docs.textpattern.com/tags/category" rel="nofollow">txp:category</a></p><blockquote><p>section=&#8220;section name&#8221;<br>Restricts category search to named section. <br>Default: <strong>current section</strong> (for backwards compatibility).</p></blockquote>]]></description>
     <content:encoded><![CDATA[<p>Another small trap.<br>Per default the menu outputs <code>li</code> which filter the landing page by section.</p><p>Example: If all articles reside in section &#8216;articles&#8217; the landing page will be empty if you click the menu inside section &#8216;about&#8217;.</p><p>Deactivate the section filter: To get consistent landing pages you have to add <code>section=""</code> to <code>txp:category</code>.</p><pre><code>&lt;li&gt;&lt;txp:category title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre><p><a href="https://docs.textpattern.com/tags/category" rel="nofollow">txp:category</a></p><blockquote><p>section=&#8220;section name&#8221;<br>Restricts category search to named section. <br>Default: <strong>current section</strong> (for backwards compatibility).</p></blockquote>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sankt-georg.info/">Markus Merz | Hamburg St. Georg</a></dc:creator>
 
</item>
<item>
     <title>Comment on Hierarchical category menu with articles by Markus Merz | Hamburg St. Georg</title>
     <link><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001018" id="c001018">1</a></link>
     <guid><a href="https://textpattern.tips/hierarchical-category-menu-with-articles#c001018" id="c001018">1</a></guid>
     <pubDate>Fri, 11 Nov 11 10:38:00 +0000</pubDate>
     <description><![CDATA[<p>Sorry, I forgot to add the <code>section=""</code> to the code. This is the correct one:</p><pre><code>&lt;li&gt;&lt;txp:category section="" title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre>]]></description>
     <content:encoded><![CDATA[<p>Sorry, I forgot to add the <code>section=""</code> to the code. This is the correct one:</p><pre><code>&lt;li&gt;&lt;txp:category section="" title="1" link="1"
 class='&lt;txp:if_category name=''&lt;txp:category /&gt;''&gt;
active_cat
&lt;/txp:if_category&gt;' /&gt;
</code></pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sankt-georg.info/">Markus Merz | Hamburg St. Georg</a></dc:creator>
 
</item>

</channel>
</rss>