<?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 – Archive tree with article counts</title>
 <description>Archive tree with article counts - comments</description>
 <link>https://textpattern.tips/archive-tree-with-article-counts</link>
 <atom:link href="https://textpattern.tips/archive-tree-with-article-counts?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Mon, 24 Sep 12 17:25:04 +0000</pubDate>

 <item>
     <title>Comment on Archive tree with article counts by Stacey</title>
     <link><a href="https://textpattern.tips/archive-tree-with-article-counts#c001126" id="c001126">1</a></link>
     <guid><a href="https://textpattern.tips/archive-tree-with-article-counts#c001126" id="c001126">1</a></guid>
     <pubDate>Mon, 16 Jul 12 18:06:39 +0000</pubDate>
     <description><![CDATA[<p>Thanks for this tutorial! It is my first time working with the etc_query plugin.  The above code is giving me the following error:</p><p>Tag error: &lt;txp:etc_query data=&#8217;&lt;txp:variable name=&#8220;archive&#8221; /&gt;&#8217; wraptag=&#8220;ul&#8221; query=&#8220;li&#8221; replace=&#8221;.//span=$[{count(..//li[@class=&#8216;article&#8217;])}]$&#8221;/&gt; -&gt;  Warning: <span class="caps">DOMD</span>ocument::saveHTML() expects exactly 0 parameters, 1 given  on line 410<br>textpattern/lib/txplib_misc.php(653) : eval()&#8216;d code:410 <span class="caps">DOMD</span>ocument-&gt;saveHTML()<br>textpattern/lib/txplib_misc.php(653) : eval()&#8216;d code:222 etc_evaluate_string()<br>textpattern/publish.php:1188 etc_query()<br>textpattern/publish.php:1100 processTags()<br>textpattern/publish.php:538 parse()<br>index.php:45 textpattern()</p><p>Am I doing something wrong, or is there a typo in the code?</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks for this tutorial! It is my first time working with the etc_query plugin.  The above code is giving me the following error:</p><p>Tag error: &lt;txp:etc_query data=&#8217;&lt;txp:variable name=&#8220;archive&#8221; /&gt;&#8217; wraptag=&#8220;ul&#8221; query=&#8220;li&#8221; replace=&#8221;.//span=$[{count(..//li[@class=&#8216;article&#8217;])}]$&#8221;/&gt; -&gt;  Warning: <span class="caps">DOMD</span>ocument::saveHTML() expects exactly 0 parameters, 1 given  on line 410<br>textpattern/lib/txplib_misc.php(653) : eval()&#8216;d code:410 <span class="caps">DOMD</span>ocument-&gt;saveHTML()<br>textpattern/lib/txplib_misc.php(653) : eval()&#8216;d code:222 etc_evaluate_string()<br>textpattern/publish.php:1188 etc_query()<br>textpattern/publish.php:1100 processTags()<br>textpattern/publish.php:538 parse()<br>index.php:45 textpattern()</p><p>Am I doing something wrong, or is there a typo in the code?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.photonomad.com">Stacey</a></dc:creator>
 
</item>
<item>
     <title>Comment on Archive tree with article counts by etc</title>
     <link><a href="https://textpattern.tips/archive-tree-with-article-counts#c001127" id="c001127">1</a></link>
     <guid><a href="https://textpattern.tips/archive-tree-with-article-counts#c001127" id="c001127">1</a></guid>
     <pubDate>Tue, 17 Jul 12 13:08:16 +0000</pubDate>
     <description><![CDATA[<p>Hi Stacey,</p><p>this probably means that your php version is prior to 5.3.8 required by etc_query. The only solution in this case will be to upgrade, I&#8217;m afraid.</p>]]></description>
     <content:encoded><![CDATA[<p>Hi Stacey,</p><p>this probably means that your php version is prior to 5.3.8 required by etc_query. The only solution in this case will be to upgrade, I&#8217;m afraid.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.iut-fbleau.fr/projet/etc/">etc</a></dc:creator>
 
</item>
<item>
     <title>Comment on Archive tree with article counts by etc</title>
     <link><a href="https://textpattern.tips/archive-tree-with-article-counts#c001147" id="c001147">1</a></link>
     <guid><a href="https://textpattern.tips/archive-tree-with-article-counts#c001147" id="c001147">1</a></guid>
     <pubDate>Tue, 18 Sep 12 20:18:04 +0000</pubDate>
     <description><![CDATA[<p>The <code>etc_query</code> syntax has a little changed in v.0.97(?), these $[]$ are not needed anymore.</p>]]></description>
     <content:encoded><![CDATA[<p>The <code>etc_query</code> syntax has a little changed in v.0.97(?), these $[]$ are not needed anymore.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.iut-fbleau.fr/projet/etc/">etc</a></dc:creator>
 
</item>
<item>
     <title>Comment on Archive tree with article counts by Maniquí</title>
     <link><a href="https://textpattern.tips/archive-tree-with-article-counts#c001148" id="c001148">1</a></link>
     <guid><a href="https://textpattern.tips/archive-tree-with-article-counts#c001148" id="c001148">1</a></guid>
     <pubDate>Mon, 24 Sep 12 17:25:04 +0000</pubDate>
     <description><![CDATA[<p>Here is a version of the etc_query snippet that would add the class &#8220;current&#8221; (while keeping any existing class to all ancestor &lt;li&gt;s of currently viewed page. This could let you do some cool stying and/or scripting.</p><pre><code>&lt;txp:etc_query data='&lt;txp:variable name="archive" /&gt;' class="news-list" replace='ul//ul^= &lt;span&gt;({count(..//li[@class="article"])})&lt;/span&gt;;//a[@href="&lt;txp:page_url  /&gt;"]/ancestor::li@@class={concat(@class," current")}' /&gt;
</code></pre>]]></description>
     <content:encoded><![CDATA[<p>Here is a version of the etc_query snippet that would add the class &#8220;current&#8221; (while keeping any existing class to all ancestor &lt;li&gt;s of currently viewed page. This could let you do some cool stying and/or scripting.</p><pre><code>&lt;txp:etc_query data='&lt;txp:variable name="archive" /&gt;' class="news-list" replace='ul//ul^= &lt;span&gt;({count(..//li[@class="article"])})&lt;/span&gt;;//a[@href="&lt;txp:page_url  /&gt;"]/ancestor::li@@class={concat(@class," current")}' /&gt;
</code></pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://julianlanderreche.com.ar">Maniquí</a></dc:creator>
 
</item>

</channel>
</rss>