<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Tag search working more like a search engine</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 09 Apr 2026 12:55:30 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<p>It's done this way because while you click tag link you get search result for tag with default parameters (pages order and search scope — pages|forum). And while you makes search from the Tags form you can specify addition parameters like scope and order. </p>

<p>So if we want use <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(68,68,68);font-family:sans-serif;background:rgb(238,238,238);">/tags/bruce-willis,</strong> we can not add addition params, and on the other side if we add params we get it in URL — <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(68,68,68);font-family:sans-serif;background:rgb(238,238,238);">/tags/bruce-willis/&amp;order=…</strong></p>

<p> </p>

<p>but… This quest can be partially solved with addition javascript:</p>

<p>file `tags.php` line ~80 (remove `a` parameter, adding `t` parameter):</p>

<pre class="brush:php;">
	'TAGS_ACTION' =&gt; cot_url('plug', 'e=tags&amp;t=-searchtag-'),</pre>

<p>in `tags.tpl` (add input named `a`, and add script for target url substitution):</p>

<pre class="brush:xml;">
	&lt;form action="{TAGS_ACTION}" method="post"&gt;
		&lt;input id="tags-sq" type="text" name="t" value="{TAGS_QUERY}" /&gt;
		&lt;input type="submit" value="&amp;raquo;&amp;raquo;" /&gt;
		&lt;input type="hidden" name="a" value="{PHP.a}"&gt;
		&lt;select name="order"&gt;
			&lt;option value=""&gt;{PHP.L.tags_Orderby}&lt;/option&gt;
			&lt;option value=""&gt;--&lt;/option&gt;
			{TAGS_ORDER}
		&lt;/select&gt;
	&lt;/form&gt;
	&lt;script type="text/javascript"&gt;
		$(function() {
	  	$('form').submit(function(e){
	  		var url = $(this).attr('action'),
	  				tag = $(this).find('input[name="t"]').val();
	  		$(this).attr('action',url.replace(/\-searchtag\-/g,encodeURIComponent(tag)));
	  	});
    });
	&lt;/script&gt;
</pre>

<p>This code works only with javascript and jQuery enabled.</p>

<p>p/s/ By pressing back button or F5 you still get browser query to resend request as we use addition parameters.</p>

<p>p.p.s. if you dont care about addition params or it «hardcoded» in plugin we can use simple redirect:</p>

<pre class="brush:jscript;">
		$(function() {
	  	$('form').submit(function(e){
	  		var url = $(this).attr('action'),
	  				tag = $(this).find('input[name="t"]').val();
	  		window.location.assign(getBaseHref() + url.replace(/\-searchtag\-/g,encodeURIComponent(tag)));
	  	});
    });
</pre>

<p>As you suppose it should be..</p>
]]></description>
			<pubDate>Пт, 02 Травень 2014 18:13:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7730&d=0#post39500]]></link>
		</item>
		<item>
			<title>staleo</title>
			<description><![CDATA[<p>Hi all again,</p>

<p><span style="line-height:1.6em;">I got a little question concerning the <strong>Tags </strong>plugin.</span></p>

<p><span style="line-height:1.6em;">Let's assume we got bunch of pages about cinema actors, and 4-5 dozens of tags, among which are "Bruce Willis" and "Sharon Stone". We read a page about Bruce Willis, than click on the tag to check if there were any pages about him. The page URL becomes something like </span><strong>http://domain.com/tags/bruce-willis</strong>, here we can see the list of articles about Willis, and whatever. Also, here we can see an input with the instant search for another actor or movie. We type here "Sharon Stone", click search. Allright, here we go, we got a list of articles about Stone, but the URL now is <strong>http://domain.com/tags?a=pages</strong> instead of <strong>http://domain.com/tags/sharon-stone</strong>. <span style="line-height:1.6em;">Above that, if we now click on any article about Stone, and then click "Back" in the browser, Chrome will ask us to resend the inpit data to the server by refreshing the page (F5), which is pretty far from excellence.</span></p>

<p><span style="line-height:1.6em;">Are there any ways of making the Tags plugin look and feel in a more google style, or wikipedia style? Because in fact, if you have a lot of tags and pages, search within tags is a small google on your site. I'm planning to have around 2-3 thousand pages, and not less that a thousand tags, so this enhancement I described above would be amazingly valuable.</span></p>

<p><span style="line-height:1.6em;">Dear community, any ideas?</span></p>
]]></description>
			<pubDate>Thu, 01 Травень 2014 19:10:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7730&d=0#post39494]]></link>
		</item>
	</channel>
</rss>