<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : show only the first news items with body text</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 10 Apr 2026 18:29:52 -0000</pubDate>

		<item>
			<title>ez</title>
			<description><![CDATA[Thanks, if this works, then it is fine.. <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /><br />
<br />
Anyway there is a way, so thats great !]]></description>
			<pubDate>Thu, 26 Nov 2009 04:34:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21213]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[I do not agree with those that would make changes to the plugin. The problem can be solved like this<br />
<pre class="code">  &lt;!-- IF {PAGE_ROW_NUM} &lt; 3 AND !{PHP.d} --&gt;
    &lt;div class=&quot;newsBody&quot;&gt;{PAGE_ROW_TEXT}&lt;/div&gt;
    &lt;div class=&quot;newsPosted&quot;&gt;{PHP.L.Poster}: {PAGE_ROW_OWNER}&lt;/div&gt;
    &lt;div class=&quot;newsOther&quot;&gt;{PHP.L.Category}: {PAGE_ROW_CATPATH} &amp;nbsp;&amp;nbsp; {PAGE_ROW_COMMENTS}&lt;/div&gt;
    &lt;!-- ENDIF --&gt;</pre>
Probably something like this]]></description>
			<pubDate>Wed, 25 Nov 2009 23:59:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21207]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Hi Dayver,<br />
<br />
This also works thnx.... <br />
<br />
There is one difference if you have got pagination on, on every new page the first 2 will display<br />
the page_row_text... <br />
My setup only show the first 2 newest articles full text...<br />
On every next page it will stay 'minified' (this is different from your setup)<br />
<br />
But your option is worth concidering, because my option will need coding in the news plugin..<br />
On the other hand, the coding I did was <span style="text-decoration:underline">SO small</span>, that it still could be usefull... to add<br />
to the cotonti system..<br />
<br />
If you do not use pagination (Dayver's option is the best way ;))<br />
<br />
<br />
//===========================================================================<br />
Edit: IDEA.. I have to adjust my thinking, i have got an even better idea thnx too Dayver<br />
//===========================================================================<br />
<br />
what if we do this. Only change the PAGE_ROW_NUM output to:<br />
<div style="margin:4px 0px 4px 0px"><input type="button" value="news.functions.php" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">
<pre class="code">            &quot;PAGE_ROW_RATINGS&quot; =&gt; &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/vote&quot;.round($pag&#091;'rating_average'&#093;,0).&quot;.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;,
            &quot;PAGE_ROW_ODDEVEN&quot; =&gt; sed_build_oddeven($jj),
            &quot;PAGE_ROW_NUM&quot; =&gt; $d+$jj,
            ));
</pre>
</div></div>
OR make a new TAG called PAGE_ROW_NUMTOTAL that is $d+$jj<br />
<br />
And maybe do the extra setup config... (but that is not needed you can<br />
always hardcode the number into the TPL)<br />
For the people who want to use pagination with a configuration, maybe this is your code:<br />
<div style="margin:4px 0px 4px 0px"><input type="button" value="Changes in news.setup.php" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">
showcomplete=05:select:0,1,2,3,4,5,6,7,8,9,10:0:Number of complete newsitems to show (0 displays all)<br />
</div></div>
<br />
<br />
I think it still is a nice (very small) feature to put in the standard Cotonti, but you may decide on that...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /> <br />
The idea and code is available, have fun with it..]]></description>
			<pubDate>Wed, 25 Nov 2009 17:33:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21198]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[May be? :<br />
<pre class="code">    &lt;!-- IF {PAGE_ROW_NUM} &lt; 3 --&gt;
    &lt;div class=&quot;newsBody&quot;&gt;{PAGE_ROW_TEXT}&lt;/div&gt;
    &lt;div class=&quot;newsPosted&quot;&gt;{PHP.L.Poster}: {PAGE_ROW_OWNER}&lt;/div&gt;
    &lt;div class=&quot;newsOther&quot;&gt;{PHP.L.Category}: {PAGE_ROW_CATPATH} &amp;nbsp;&amp;nbsp; {PAGE_ROW_COMMENTS}&lt;/div&gt;
    &lt;!-- ENDIF --&gt;</pre>]]></description>
			<pubDate>Wed, 25 Nov 2009 07:29:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21191]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[I have allready made it...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/grin.gif" alt=":D" />   (works great)<br />
<br />
In the news.tpl you can now show content in a minified way (so a <strong>one line</strong> style news items)<br />
I did it with Xtemplate  (i like Xtempl..)<br />
It also shows a number off COMPLETE news items (configurable)<br />
<br />
in the news.tpl<br />
<pre class="code">
    &lt;!-- IF {PHP.newsoutputcomplete} = 1 --&gt;
    &lt;div class=&quot;newsBody&quot;&gt;{PAGE_ROW_TEXT}&lt;/div&gt;
    &lt;div class=&quot;newsPosted&quot;&gt;{PHP.L.Poster}: {PAGE_ROW_OWNER}&lt;/div&gt;
    &lt;div class=&quot;newsOther&quot;&gt;{PHP.L.Category}: {PAGE_ROW_CATPATH} &amp;nbsp;&amp;nbsp; {PAGE_ROW_COMMENTS}&lt;/div&gt;
    &lt;!-- ENDIF --&gt;
</pre>
<br />
<br />
@theadmins Cotonti<br />
Should i report this nice option somewhere.. ??]]></description>
			<pubDate>Wed, 25 Nov 2009 05:29:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21188]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[I like the idea]]></description>
			<pubDate>Wed, 25 Nov 2009 05:07:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21187]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[I have a question:<br />
<br />
In the news plugin I only want to show the first few x (1,2,3) newest items <br />
with a PAGE_ROW_TEXT, all the other items i want to show without PAGE_ROW_TEXT<br />
<br />
So only the newest ites are shown with a body text, the rest only (e.g. titles)<br />
<br />
<br />
Can it be done without hacking the plugin !<br />
<br />
Maybe with XTemplate ??<br />
<br />
Please let me know<br /><br /><b>Added 5 hours 27 minutes later:</b><br /><br />I have found a way to do this, BUT i have to modify the news plugin...<br />
It would be a nice additional option.. <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /><br />
<br />
In the configuration file:<br />
&nbsp;&nbsp;&nbsp;&nbsp;Show complete items:   3<br />
<br />
If this value is smaller than maxpages then some items will NOT show the PAGE_ROW_TEXT.<br />
I still have to test some more with this (in combination with tpl files)<br />
<br />
<br />
Basically this will show a number off complete news items, and when they are older, then you show only the date, title, number off comments (just one line)<br />
<br />
<br />
Maybe this option is something to put in the core ????]]></description>
			<pubDate>Tue, 24 Nov 2009 23:15:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=4998&d=0#post21180]]></link>
		</item>
	</channel>
</rss>