<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : I want to control {TAGS_RESULT_ROW_TAGS}</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 14 Apr 2026 22:40:11 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<p>My code is a sample, not a complete solutuion. I use `\w+` <span style="font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;line-height:24px;">metacharacter</span> only for example, it covers only  character from a-z, A-Z, 0-9 range and includes the _ (underscore) character. It not cover cases with several words (with spaces between) or special symbols (like unicode). So RegExp needs to be updated to cover your cases. </p>

<p>The proper way is to alter code to use Resource Strings API for this tag generation. You can post a request for it by <a href="https://github.com/Cotonti/Cotonti/issues/new" rel="nofollow">submiting an issue</a> to Cotonti project on GitHub.</p>

<p> </p>
]]></description>
			<pubDate>Wo, 18 Mei 2016 17:38:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=8113&d=0#post41708]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[<p>This became the result:</p>

<pre class="brush:php;gutter:false;toolbar:false;">
&lt;a href="https://www.cotonti.com/tags/waifs-and-strays"&gt;Waifs And  rel="taglink"&amp;gt;&lt;span itemprops="keywords"&gt;Strays&lt;/span&gt;&lt;/a&gt;</pre>

<p>after using :</p>

<pre class="brush:php;gutter:false;toolbar:false;">
{TAGS_RESULT_ROW_TAGS|preg_replace('&gt;(\w+?)&lt;/a&gt;',' rel="taglink"&gt;&lt;span itemprops="keywords"&gt;$1&lt;/span&gt;&lt;/a&gt;',$this)}</pre>

<p> </p>

<p>Im not a programmer, so I'm not so good at this. Also tags that are 2 words or more will not function</p>

<p>either since the "$1" seems to only pick the last word in a 2 word phrase, as you can see in the above result.</p>
<p class="updated"><strong>Added 2 days later:</strong></p><p>This string of code works, sort off not 100%:</p>

<pre class="brush:php;gutter:false;toolbar:false;">
{TAGS_RESULT_ROW_TAGS|preg_replace('&gt;(\w*[a-z-0-9_])&lt;/a&gt;',' &lt;a href="https://www.cotonti.com/tags/$1" rel="tag"&gt;&lt;span itemprop="keywords"&gt;$1&lt;/span',$this)} </pre>

<p>Sine the output looks like this</p>

<pre class="brush:php;gutter:false;toolbar:false;">
&lt;a href="https://www.cotonti.com/tags/tesla"&gt; &lt;/a&gt;
&lt;a href="https://www.cotonti.com/tags/Tesla" rel="tag"&gt;&lt;span itemprop="keywords"&gt;Tesla&lt;/span&gt;
&lt;/a&gt;</pre>

<p>As you can see it produces the link 2 times, one without the tag in visible text form and one with all the added things but it also makes the tag Uppercase for some unknown reason. The trailing &gt; after &lt;/span is deleted becuase it produces an extra &gt; after the &lt;/a&gt;.<br /><br />
Either I'm a complete idiot or there is a but in how the output is being made for the {TAGS_RESULT_ROW_TAGS} since its seeminly impossible to control it in order to have the output that one wants. Mainly because someone decided that this is not something that one should control, which was a really bad choice, since one can control all the other things related to Tags.<br /><br />
I desperatly need a solution for this.</p>
]]></description>
			<pubDate>Za, 07 Mei 2016 17:11:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=8113&d=0#post41667]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Unfortunly, there is no predefined method to extend `<em style="font-size:15px;font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;line-height:24px;text-align:justify;background-color:rgb(255,255,255);">{TAGS_RESULT_ROW_TAGS}</em>` generation process. As it not use resource strings as done for forum topic tags list with `tags_link_tag` resoure string.</p>

<p>In spite of that, we can use some tricks and try to do some customization. Let's see in `tags.php` file, line 239: </p>

<pre class="brush:php;gutter:false;toolbar:false;">
if ($tag_i &gt; 0) $tag_list .= ', ';
$tag_list .= cot_rc_link(cot_url('plug', array('e' =&gt; 'tags', 'a' =&gt; 'pages', 't' =&gt; str_replace(' ', '-', $tag_u), 'tl' =&gt; $tl)), htmlspecialchars($tag_t));
$tag_i++;
</pre>

<p>It's where acrual generation is done. This line goes within `foreach` loop.</p>

<p>`cot_rc_link` use predefined (built-in) string resource, so we can not alter it. Only we have it's a generated comma separated list of links...<br />
So now there is only one way to customize it — to alter already genererated string with a callback function.<br />
We can do it with own custom function, placed in `yourthemename.php` or `system/functions.custom.php`. And call it from our template:</p>

<pre class="brush:xml;gutter:false;toolbar:false;">
{TAGS_RESULT_ROW_TAGS|my_tagslist_customization($this)} </pre>

<p>The function can look like this (I'm writing it without tests so fix it for your needs):</p>

<pre class="brush:php;gutter:false;toolbar:false;">
function my_tagslist_customization($tagslist)
{
  $items = preg_split('/\s*,\s*/', $tagslist);
  foreach ($items as &amp;$item)
  {
     $item = preg_replace('&gt;(\w+)&lt;/a&gt;',' rel="tag"&gt;&lt;span itemprops="keywords"&gt;$1&lt;/span&gt;&lt;/a&gt;', $item);
  }
  return implode(',', $items);
}</pre>

<p>Or you can do this right in template, example:</p>

<pre class="brush:xml;gutter:false;toolbar:false;">
{TAGS_RESULT_ROW_TAGS|preg_replace('&gt;(\w+?)&lt;/a&gt;',' rel="taglink"&gt;&lt;span itemprops="keywords"&gt;$1&lt;/span&gt;&lt;/a&gt;',$this)}</pre>

<p> </p>
]]></description>
			<pubDate>Za, 07 Mei 2016 16:12:20 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=8113&d=0#post41666]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[<p>Hi,</p>

<p>I want to control how <em>{TAGS_RESULT_ROW_TAGS}</em> is outputted from tags/tags.php.</p>

<p>What it currently is producing, standard with no modifications, is this this:</p>

<pre>
&lt;<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value">tags/batman</a>"&gt;Batman&lt;/<span class="end-tag">a</span>&gt;, &lt;<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value">tags/gumball-3000</a>"&gt;Gumball 3000&lt;/<span class="end-tag">a</span>&gt;, </pre>

<p>I want it to be more like this and something I can control/change when needed:</p>

<pre class="brush:php;gutter:false;toolbar:false;">
&lt;a href="https://www.cotonti.com/tags/batman"<strong> rel="tag"</strong>&gt;<strong>&lt;span itemprop="keywords"&gt;</strong>Batman<strong>&lt;/span&gt;</strong>&lt;/a&gt;, &lt;a href="https://www.cotonti.com/tags/gumball-3000" <strong>rel="tag"</strong>&gt;<strong>&lt;span itemprop="keywords"&gt;</strong>Gumball 3000<strong>&lt;/span&gt;</strong>&lt;/a&gt;, </pre>

<p>So the problem is that <em>{TAGS_RESULT_ROW_TAGS}</em> is something I want to control how it looks and behaves and there are other controllable bits listed in <u>plugins/tags/inc/tags.resources.php</u> but I can't seem to find the one that makes <em>{TAGS_RESULT_ROW_TAGS}</em> do as I want it too.</p>

<p> </p>

<p><strong><span style="color:#FF0000;">Help!</span></strong></p>
]]></description>
			<pubDate>Za, 07 Mei 2016 10:45:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=8113&d=0#post41662]]></link>
		</item>
	</channel>
</rss>