<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Handy URLs and URL links.</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 20:19:45 -0000</pubDate>

		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	oh okay, awesome thank you.</p>
]]></description>
			<pubDate>Tue, 01 May 2012 21:28:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6899&d=0#post34153]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	This is because it looks for an entry in $structure array for your module and that category. As there is no such a record, it falls back to $al. So you'd better use $al instead of $c.</p>
]]></description>
			<pubDate>Tue, 01 May 2012 21:27:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6899&d=0#post34152]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	Thanks Trustmaster, I'm now using $c for the clans which is working great. However, if I remove my hook I can no longer view a clan via /clans/clanname</p>
]]></description>
			<pubDate>Tue, 01 May 2012 20:29:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6899&d=0#post34150]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	I'm sorry that this is undocumented, but out of the box with Handy preset, URLeditor understands 3 types of magic parameters, inherited from 'page' module:</p>
<ul><li>
		c=* is understood as structure category code, and so cot_url('foo', 'c=bar') is transformed into /foo/bar or /foo/path/to/bar (depending on $structure['foo']['bar'] contents).</li>
	<li>
		al=* is understood as alias, so cot_url('foo', 'al=baz') is transformed into /foo/baz, but cot_url('foo', 'c=bar&amp;al=baz') will become /foo/bar/baz.</li>
	<li>
		id=* is understood as numeric identifier, so cot_url('foo', 'id=123') is transformed into /foo/123.</li>
</ul><p>
	You don't even need to hook into urleditor to use them.</p>
]]></description>
			<pubDate>Tue, 01 May 2012 19:58:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6899&d=0#post34148]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	Hello guys, </p>
<p>
	I am completely new to URL transformation and with help I setup my Cotonti to use the Handy URLs, which is perfect. </p>
<p>
	I have created a module and to get the same results (www.domain.com/module/$u) I added a page that hooks into urleditor.functions.php like this: </p>
<pre class="brush:php;">
&lt;?php
/* ====================
[BEGIN_COT_EXT]
Hooks=urleditor.rewrite.first
[END_COT_EXT]
==================== */

/**
 * Clan Module for Cotonti CMF
 *
 * @package Clan
 * @version 1.0
 * @author DesignLizard
 * @copyright (c) 2012 DesignLizard
 * @license BSD
 */

defined('COT_CODE') or die('Wrong URL');

if ($path[0] == 'clans')
			{
				
				// Clan profiles
				$_GET['e'] = 'clans';
				$_GET['u'] = $path[1];
				return;
			}
?&gt;</pre>
<p>
	My question/problem is when creating a url like this: <strong>cot_url('clans', 'u=' . $rowgettopclans['clan_name_short'])</strong> it outputs a link like this:<strong> /clans?u=mli</strong> instead of <strong>clans/mli</strong> which is the correct link. I was wondering what I am doing wrong, or what needs to be done to get the correct url.</p>
]]></description>
			<pubDate>Tue, 01 May 2012 10:41:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6899&d=0#post34143]]></link>
		</item>
	</channel>
</rss>