<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : How to display the chosen news category description on index?</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 11:56:30 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Tested in the default template nemesis but also in my own. And the result is always the same (see post #12).</p>
]]></description>
			<pubDate>Per, 30 Oca 2014 20:48:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39123]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>Which template did you use it in?</p>
]]></description>
			<pubDate>Sal, 28 Oca 2014 06:49:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39105]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Yes, of course I tried it to see the output. I guess I should have told you the results of that, I forgot sorry.<br /><br />
index.tpl --&gt; {PHP.cat.desc} --&gt; no output<br />
news.tpl --&gt; {PHP.cat.desc} --&gt; no output (at least not outside of the ROW)<br />
page.tpl --&gt; {PHP.cat.desc} --&gt; outputs the page category<br /><br />
Sadly, I would like it to work on the index / news.tpl (but outside of the row).<br />
 </p>
]]></description>
			<pubDate>Pzt, 27 Oca 2014 16:49:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39099]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>Did you TRY to use it?</p>
]]></description>
			<pubDate>Paz, 26 Oca 2014 17:13:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39092]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Not yet Kort, I need to install 0.9.16 on a seperate area and see if with that version the PHP dump outputs the <span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">{PHP.cat.desc}.</span></p>

<p>I will let you know, I should be able to perform an additional install this weekend.<br />
Thanks for all your help so far, also to <a href="http://www.cotonti.com/users/Twiebie">Twiebie</a>, I really appreciate it!<br />
 </p>
<p><strong>Added 2 days later:</strong></p><p>I just installed 0.9.16 and there does not exist a global called "<span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">{PHP.cat.desc}".</span><br /><span style="line-height:1.6em;">I will have to try to make my nav menu's in the list only showing it when count == 1 I guess.</span></p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 21:39:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39078]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>Did you check?</p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 17:29:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39075]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>That global does not exist. At least not for me when I check with : {PHP|dump}<br />
My test website I am currently running is not updated to the latest SIENNA version though. Maybe its only added recently.</p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 15:44:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39073]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>If you need a global for current category description, use</p>

<p>{PHP.cat.desc}</p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 11:39:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39072]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>@<a href="http://www.cotonti.com/users/Twiebie" style="margin:0px;padding:0px;vertical-align:baseline;background-color:rgb(238,238,238);color:rgb(1,45,72);text-decoration:none;font-family:sans-serif;font-weight:bold;line-height:30px;">Twiebie</a></p>

<p>Ok, let me write a few examples to try and clear up :)<br />
On the index.php we show all news (using the news plugin). However, since we have a constant news flow for many different categories during an entire day I have made a news selector. This allows people to output only news of a specific news category <strong>on the index</strong>.<br />
So, by default people are on the index.php which outputs all news --&gt; index.php?c=news<br />
However, people might want to view all news of one category, for example, all Arma 3 news --&gt; index.php?c=news_arma3<br />
But, instead of viewing all Arma 3 news people can also select to view a specific sub category of the Arma 3 news, for example only Arma 3 addons and mods --&gt; index.php?c=news_arma3_mods<br />
Now, depending on these I want the news selector to show the choosen news category on the index.tpl where the news selector is made. Something like {PAGE_NEWS_CATDESC}  but that one does not exist.</p>

<p><span style="line-height:1.6em;">This so people can "see where they are, which news they are currently viewing". </span><span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">{PAGE_ROW_CATDESC}</span> does not work on the index.tpl so thats why I was looking for other tags or php globals. ;) I hope that makes more sense.<br /><br />
 </p>

<p>@Kort,<br />
Yes I saw that one as well, but sadly it depends the category description of the news category only, and does not change automatically depending on where you are (while using it in index.tpl).</p>

<p> </p>

<blockquote>
<p><span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">Alternatively you might be able to do the job via HTML-coding / jQuery</span></p>

<p> </p>

<p> </p>
</blockquote>

<p> </p>

<p>Maybe, but than I think an IF block inside the ROW is easier to work with. But that requires some testing first :)<br />
I will give this some tries today/during the weekend but if anyone has a suggestion feel free to post them!<br /><br />
 </p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 10:01:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39071]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>Not sure if that is exactly what you need:</p>

<p>{PHP.structure.page.news.desc}</p>

<p>Alternatively you might be able to do the job via HTML-coding / jQuery</p>
]]></description>
			<pubDate>Cum, 24 Oca 2014 08:26:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39069]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Ah, sorry I misread that.</p>

<p>What exactly do you mean with ''I need to refer to the <em>selected</em> category in the index"?</p>
]]></description>
			<pubDate>Per, 23 Oca 2014 22:46:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39067]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Yes, I know I could use that. Problem is, I cant use it in the ROW block as I wrote above :)<br />
I need to refer to the selected category in the index (or at least outside the page row in the news tpl cause I am displaying the category above a navigation menu. And we cant add that menu in the row block else we will see it above every news item.<br /><br />
I could use an IF statement so that if num == 1 I use the nav menu, but thing is....I plan to create the navigation menu in a different way and I am not sure that will still work if I add it to the news tpl ROW block. Thats why I was hoping I could create it differently.</p>

<p>I guess I will have to make some tries and see if I can follow my plan when adding it inside the ROW block :)</p>
]]></description>
			<pubDate>Per, 23 Oca 2014 22:19:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39066]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Use {PAGE_ROW_CATDESC} in your news.tpl file inside the PAGE_ROW block.</p>
]]></description>
			<pubDate>Per, 23 Oca 2014 21:14:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39063]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>I am trying to display the choosen news category description on my index and I am not sure how I can retrieve it.<br />
There is {PAGE_ROW_CATDESC} however to be able to use that you need to use it within the ROW block.<br />
I need to output that value outside of the row block.</p>

<p><span style="color:rgb(34,34,5);font-family:Arial;font-size:12px;line-height:18px;background-color:rgb(244,244,245);">Is there a way for me to get the choosen new category description (so the description if you for example view this news: </span>index.php?c=<span style="color:rgb(34,34,5);font-family:Arial;font-size:12px;line-height:18px;background-color:rgb(244,244,245);">news_arma2oa</span>_general on the index) to display on my homepage?<br /><br />
I was checking the php dump and I saw this: "<span style="color:rgb(34,34,5);font-family:Arial;font-size:12px;line-height:18px;background-color:rgb(244,244,245);">{PHP.cot_cat.news_arma2oa.desc}" which actually outputs the correct value of that specific section. So, if any tag can not be used and I should use a PHP global, how can I use that one to dispal the category description depending on each section instead of just this one?<br /><br /><br />
I could of course make 100 IF blocks (if I have 100 news categories) which check certain values and show specific data. I am just trying to find an easier way so that with maybe just one IF block I can get the value. Since adding 100 IF blocks in my honest opion really makes no sense I hope someone can tell me how I can achieve this.</span></p>
]]></description>
			<pubDate>Per, 23 Oca 2014 20:51:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7667&d=0#post39062]]></link>
		</item>
	</channel>
</rss>