<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Show data only if my list contains more than 3 items.</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 06:25:12 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>I see I was approahing this the whole wrong way (purely cause i kept trying to do it the same way as I used to). Instead of showing something after list_row_num = 2 and before list_row_num = 3 which code I added to the <strong>end</strong> of the LIST_ROW block I figured I should reverese my approach.<br />
So now I added the code to show my message at the start of the LIST_ROW block and only show it if list_row_num = 3. Since I added it at the beginning of the block it will now show after 2 if there is 3.<br /><br />
I am sure people wont believe me if I say how much time I have waisted thinking about and trying to solve this, only running around in circles. Only now to realise a change of position within the block fixes everything :)<br />
 </p>
]]></description>
			<pubDate>Wed, 29 Apr 2015 13:36:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7951&d=0#post40843]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<pre class="brush:xml;">
...
&lt;!-- BEGIN: LIST_ROW --&gt;
  &lt;li&gt;
    &lt;span&gt;{LIST_ROW_SHORTTITLE}&lt;/span&gt;
&lt;!-- IF {LIST_ROW_NUM} == 2 --&gt;
this is item No. 2
&lt;!-- ENDIF --&gt;
  &lt;/li&gt;
&lt;!-- END: LIST_ROW --&gt;
...</pre>

<p>This outputs custom html code for the second item in the list. Checking LIST_ROW_COUNT makes no sense, for it outputs page hitcount</p>
]]></description>
			<pubDate>Wed, 29 Apr 2015 11:18:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7951&d=0#post40842]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Yes, both tags are there but they will not let you output data in the list if there are more than 3 items in it.<br />
In Genoa <span style="color:rgb(0,130,0);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:14.3000001907349px;white-space:pre;">LIST_ROW_COUNT </span> was used to count how many items were in the list but with Sienna that count now shows how many times the page was viewed. Of course that is of no use to me anymore cause I need to know how many items are in the list.</p>

<p><span style="color:rgb(0,130,0);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:14.3000001907349px;white-space:pre;">{LIST_ROW_NUM}</span> gives the number of a specific item in the list, but again that does not tell me how many items there are in the currently displayed list.</p>

<p>I want to show a message if the current list viewed has at least 2 and more than 3 items. And no matter what I tried with the available tags that simply is not possible anymore. Or at least I can not figure it out.<br />
 </p>

<p>Maybe this clears up what I want to do?<br /><br />
MY LIST<br />
=====<br /><br />
ITEM 1<br /><br />
ITEM 2<br /><br />
my custom message shows cause there are at least 2 items and more than 3 items in the list<br /><br />
ITEM 3</p>

<p><span style="line-height:20.7999992370605px;">=====</span></p>

<p> </p>

<p>Or:</p>

<p style="line-height:20.7999992370605px;">MY LIST<br />
=====<br /><br />
ITEM 1<br /><br />
ITEM 2</p>

<p style="line-height:20.7999992370605px;"><span style="line-height:20.7999992370605px;">=====</span></p>
]]></description>
			<pubDate>Wed, 29 Apr 2015 08:15:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7951&d=0#post40841]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[<blockquote>
<p><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:20.7999992370605px;background-color:rgb(238,238,238);">But that no longer works.</span></p>
</blockquote>

<p>But this tags have in Siena:</p>

<p>{LIST_ROW_NUM} - <a href="https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.list.php#L397" rel="nofollow">https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.list.php#L397</a> Showed how many pages in categories</p>

<p>{LIST_ROW_COUNT} - <a href="https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.functions.php#L203" rel="nofollow">https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.functions.php#L203</a> Show count visited page</p>

<p> </p>
]]></description>
			<pubDate>Tue, 28 Apr 2015 20:49:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7951&d=0#post40837]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>I am trying to make something show in my list but only if the list contains more than 3 items.<br />
In the past (with Genoa) I used this: </p>

<pre class="brush:xml;">
&lt;!-- IF {LIST_ROW_NUM} == 2 AND {LIST_ROW_COUNT} &gt; 2 --&gt;</pre>

<p>But that no longer works.<br />
I have been going through all available tags (using debug) and also scrolled through all available php globals (using php|dump) but I can not think of any way to do it.<br />
Do I need to write a plugin for such a small thing or am I missing something? :)<br /><br />
I hope someone knows a simple way to do this!</p>
]]></description>
			<pubDate>Tue, 28 Apr 2015 07:38:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7951&d=0#post40834]]></link>
		</item>
	</channel>
</rss>