<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Site navigation row in header.tpl</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 13 Apr 2026 12:19:26 -0000</pubDate>

		<item>
			<title>donP</title>
			<description><![CDATA[It was my (and many other users) question. Look here: <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=5170">http://www.cotonti.com/forums.php?m=posts&amp;q=5170</a><br />
<br />
But we still haven't answer, I think...]]></description>
			<pubDate>Mo, 08 Feb 2010 22:03:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22778]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Oww, if we are already in URLs topic, how to write a function to display nice page urls, that will be compatible with page add? If I use a function shown in Documentation, then after adding a page system redirects me to www.mysite.com/(pageid)/ - which obviously shows error 404.]]></description>
			<pubDate>Mo, 08 Feb 2010 20:47:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22776]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[It means that your .htaccess rules are incorrect. Contact me via PM, I'll help you setting the urls up.]]></description>
			<pubDate>So, 07 Feb 2010 00:24:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22762]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[In fact, My actual plugin uses <br />
<div class="highlight"><pre class="php">$al = sed_import('al', 'G', 'ALP');</pre></div>
to read alias...<br />
but with url tranformation I have to rewrite all the plugin cause there wouldn't be page.php?al=alias anymore in the url, no?<br />
And, more difficult, for lists, cause there wouldn't be list.php?c=categorcode in url, but only cat1/subcat1/... and so for forums...<br />
You say he url transformation is transparent, but my plugin doesn't work if I activare url_rewrite with tat rules...]]></description>
			<pubDate>Sa, 06 Feb 2010 19:11:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22757]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[You don't need to read anything from the URL. Use sed_import() and import those from GET parameters as normally. Even if your link is:<br />
mysite.net/cat1/subcat1/alias.html<br />
you can still get alias as normal:<br />
<div class="highlight"><pre class="php">$al = sed_import('al', 'G', 'ALP');</pre></div>
(note: for page.php it will already have been imported even if you hook into header)<br />
<br />
And so is for mysite.net/cat1/subcat1/.<br />
<br />
URL transformation was designed to be as transparent as possible, so that all the rest works like if there was no transformation at all.]]></description>
			<pubDate>Sa, 06 Feb 2010 14:31:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22748]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[I explained bad myself, perhaps...<br />
My plugin already works very well now... the problem would come when I'll use <strong>url_rewrite</strong>, cause in url we wouldn't have page.php?al=alias or list.php?c=category... but<br />
<br />
mysite.net/cat1/subcat1/alias.html<br />
<br />
or <br />
<br />
mysite.net/cat1/subcat1/<br />
<br />
so, I'd have to completely rewrite the plugin (that actually reads id and alias values from url).<br />
<br />
Instead, I was <strong>now</strong> searching for a method to obtain category_name as a global variable to use it in a unique header file to draw the appropriate image logo:<br />
<div class="highlight"><pre class="html">&lt;div id=&quot;header&quot; style=&quot;position: absolute; margin-top: 8px; margin-left: 11px; width: 749px; background: url('{PHP.sed_cat}') no-repeat center top;&quot;&gt;</pre></div>
<br />
<span style="color:#A40000">I wouldn't have this need if customheader/customfooter were a real chance, but actually we can only customize areas (e.g. header.list.tpl, header.page.tpl, NOT header.list.cat1.tpl and header.page.cat1.tpl).</span>]]></description>
			<pubDate>Sa, 06 Feb 2010 07:32:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22745]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[OK, if you know alias or id in your plugin hooking into header, you can learn page_cat for that alias/id with 1 sql query:<br />
<div class="highlight"><pre class="php">if (empty($c)) {
  $where = empty($alias) ? 'page_id = '.(int)$id : &quot;page_alias = '&quot;.sed_sql_prep($alias).&quot;'&quot;;
  $cat_row = sed_sql_fetchassoc(sed_sql_query(&quot;SELECT page_cat FROM $db_pages WHERE $where&quot;));
  $c = $cat_row&#091;'page_cat'&#093;;
}
</pre></div>
After that you should either set a global variable or assign a tag containing that title:<br />
<div class="highlight"><pre class="php">$cat_title = $sed_cat&#091;$c&#093;&#091;'title'&#093;;
// OR
$t-&gt;assign('CAT_TITLE', $sed_cat&#091;$c&#093;&#091;'title'&#093;);</pre></div>
and then use either global {PHP.cat_title} (will work in any template and any block where $cat_title exists) or local {CAT_TITLE} (will work only in the template you assign it).]]></description>
			<pubDate>Sa, 06 Feb 2010 00:47:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22735]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[None of these arguments match to my needs...<br />
I wanted to know if in <strong>global tags</strong> (the list of them doesn't really exist yet) there was one outputting me the category title, every moment, in every site part, calling it from header.tpl<br />
<br />
I had this need cause I actually use a good plugin I made for myself taht really changes header images and text as I want, depending from list/page/forum category/section... That plugin, indeed, catches the category by reading the url (<strong>c=categorycode</strong> for lists, <strong>id=ID</strong> or <strong>al=alias</strong> for pages, <strong>s=section</strong> or <strong>m=topic</strong> in forums) and querying the database to reach the appropriate category and display different images and text according to that place in the website.<br />
This is a problem (and not the only problem, as Trustmaster knows, cause I've to solve the <em>page.php?a=add</em> problem) if I want to use <strong>url_rewrite</strong> method, cause the plugin couldn't work anymore if in url we have <em>alias.html</em> instead of <em>page.php?al=alias</em>...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/sad.gif" alt=":(" />]]></description>
			<pubDate>Fr, 05 Feb 2010 19:19:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22726]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Thank you very much <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Fr, 05 Feb 2010 19:07:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22725]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[system/core/plug.inc.php does this by default for you:<br />
<div class="highlight"><pre class="php">$t-&gt;parse('MAIN');
$t-&gt;out('MAIN');</pre></div>]]></description>
			<pubDate>Fr, 05 Feb 2010 19:00:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22724]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[I use only $t-&gt;parse() in plugins. ^^ Is it correct? When out() is useful?]]></description>
			<pubDate>Fr, 05 Feb 2010 18:03:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22721]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[$t-&gt;parse() parses a block (parses subblocks and fills in data) into non-changable representation ready for output<br />
$t-&gt;out() sends an already parsed block to output]]></description>
			<pubDate>Fr, 05 Feb 2010 17:54:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22719]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Stupid question:<br />
<br />
what's the difference between $t-&gt;parse() and $t-&gt;out()? Are there other possibilities?]]></description>
			<pubDate>Fr, 05 Feb 2010 17:42:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22717]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Nope. If $c is a constant, you could use {PHP.sed_cat.my_category.title}, but if $c is a variable, then you'd need a plugin for that. Except for cases when data is already stored somewhere already.]]></description>
			<pubDate>Fr, 05 Feb 2010 16:34:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22712]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[If it is global you can use {PHP.c.title}??<br />
<br />
Correct me if I'm wrong.]]></description>
			<pubDate>Fr, 05 Feb 2010 15:10:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22706]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[<blockquote><strong>Trustmaster:</strong><hr /><a href="http://www.cotonti.com/docs/en/skins/global_tag_list">Global tag listing</a>
</blockquote>
That link doesn't point to a real URL...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/sad.gif" alt=":(" /> <br />
<br />
<br />
How can I call <strong>sed_cat[$c]['title']</strong> with a .tpl TAG in header?]]></description>
			<pubDate>Fr, 05 Feb 2010 08:13:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post22702]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Yes, if it is global (i.e. not assigned within some function scope)]]></description>
			<pubDate>Mo, 03 Aug 2009 18:22:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15457]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[So, this means that every variable of every part of the core (such as page.inc, list.inc, forum.posts.inc) is accessible by any tpl (header.tpl, footer.tpl, page.tpl)?<br />
<br />
Incredible and very usefull!!!]]></description>
			<pubDate>Mo, 03 Aug 2009 17:48:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15456]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[That listing is of course incomplete, because there are hundreds of variables you could possibly access via {PHP.*}]]></description>
			<pubDate>Mo, 03 Aug 2009 17:42:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15454]]></link>
		</item>
		<item>
			<title>musiconly</title>
			<description><![CDATA[I'm 99% sure that the tags you didn't find will work.<br />
I'm using {PHP.pag.page_ownerid}, and it's working, so I think that {PHP.pag.page_fulltitle} will also work <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Mo, 03 Aug 2009 17:29:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15453]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[I don't know how could work but it worked.<br />
Now I can't try in Cotonti cause I'm not on my PC, I'll try and tell you...<br />
<br />
By the way, in global tag listing I didn't find the {PHP.catpath} or {PHP.pag.page_fulltitle} that Kilandor said...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/confused.gif" alt=":/" />]]></description>
			<pubDate>Mo, 03 Aug 2009 17:23:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15452]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[And those are still global variables. But you see what happens in the script:<br />
<div class="highlight"><pre class="php">$t = new XTemplate('header.tpl');
// something
$t-&gt;parse('HEADER');
$t-&gt;out('HEADER');
// The template has been rendered and sent to output

$t = new XTemplate('page.tpl');
// This is where your corehack works
$out&#091;'youre'&#093; = 'Something';
$t-&gt;parse('MAIN');
// Here it parses MAIN, not HEADER which is not accessile
$t-&gt;out('MAIN');</pre></div><br /><br /><b>Added 39 seconds later:</b><br /><br /><a href="http://www.cotonti.com/docs/en/skins/global_tag_list">Global tag listing</a>]]></description>
			<pubDate>Mo, 03 Aug 2009 17:14:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15450]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[Because <strong>PHP.out</strong> and <strong>PHP.sys</strong> are global (core defined) variables and not template tags, aren't they? So they'd have always priority...<br />
<br />
And, speaking of that, where can I find all Cotonti <strong>.out</strong> and <strong>.sys</strong> variables?<br />
<br />
Thank you very much <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" />]]></description>
			<pubDate>Mo, 03 Aug 2009 16:48:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15448]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[See <a href="http://www.cotonti.com/plug.php?e=tpltags">TPL Tags</a><br />
<br />
I actually wonder how {PHP.out.youre} worked in Seditio, because it did the same thing: rendered header.tpl before main part even got executed.<br />
<br />
HTML cache only caches page text and updates every time you update the text. Template cache only caches the TPL file structure and updates every time you edit the TPL file.]]></description>
			<pubDate>Mo, 03 Aug 2009 16:40:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15447]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[Yes, the right word to explain my needs was <strong>breadcrumbs</strong>, but I'm Italian and I don't know such a great and specific lexicon  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/tongue.gif" alt=":P" /><br />
<br />
Putting breadcrumbs in header .tpl is more simple (and more universally compatible with all browser) than operating with CSS and absolute positioning. In addiction, I needed to create specific breadcrumbs (with <span style="color:#4E9A06">Home(link) / Section(link) / Subsection(link) / Actual Section(plain text) / NO PAGE OR TOPIC TITLE</span>) that sometimes haven't got the appropriate TAG already included in the system... So, this was the situation of Seditio CMF... what about Cotonti CMF? Are there new tags, is there a list of them?<br />
<br />
Another question... creating a new header.tpl for every section or category I need, will make me crazy and my Server full of many very similiar and useless tpls... (I need only to change the background Image - I was reassembling Logochanger plugin to do that - and breadcrumbs)...<br />
<br />
Last question (considering the fact I'm very new to the wonderful world of Cotonti): the local/html/disk(template) CACHE wouldn't interfere with my need to ever change header contents?<br />
<br />
Many thank to all of you!<br />
THIS finally is a FANATASTIC community!]]></description>
			<pubDate>Mo, 03 Aug 2009 16:28:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15445]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[These are breadcrumbs but in header.tpl rather than body. The problem is that the header is normally sent to output before the body gets executed. So either you make a plugin for header.tags hook which duplicates those actions from core (not just those variables but also the way they are received), or we need to change the execution flow from header-&gt;body-&gt;footer to body-&gt;header-&gt;footer.<br />
<br />
But what I would recommend for now is putting breadcrumbs in body templates rather than header template. It's not such a hard thing, especially with CSS.]]></description>
			<pubDate>Mo, 03 Aug 2009 14:38:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15434]]></link>
		</item>
		<item>
			<title>musiconly</title>
			<description><![CDATA[Those are breadcrumbs, right?]]></description>
			<pubDate>Mo, 03 Aug 2009 05:28:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15416]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[I recommened enabling customhf in config. This allows you to create different headers for each area.<br />
<br />
And you can just use ex {PHP.pag.page_fulltitle} or {PHP.catpath} or {PHP.out.subtitle} for the forums one you could use...That one you would have to hack or plugin.<br />
<br />
What are you using these for exactly?]]></description>
			<pubDate>Mo, 03 Aug 2009 02:50:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15405]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[Hello everybody!<br />
<span style="color:#4E9A06"><strong>I'm converting my seditio website to Cotonti.</strong></span><br />
<br />
Well... in Seditio I made hacks to several files to output the <strong>site navigation row</strong> in header.tpl...<br />
<br />
e.g.<br />
in <strong>skins/myskin/HEADER.TPL</strong><br />
I had<br />
<div class="highlight"><pre class="php-f">{PHP.out.youre}</pre></div>
and in <strong>system/core/page/page.inc.php</strong><br />
<div class="highlight"><pre class="php">$out&#091;'youre'&#093; = $pag&#091;'page_fulltitle'&#093;;</pre></div>
in <strong>system/core/list/list.inc.php</strong><br />
<div class="highlight"><pre class="php">$out&#091;'youre'&#093; = $catpath;</pre></div>
in <strong>system/core/forums/forums.posts.inc.php</strong><br />
<div class="highlight"><pre class="php">$out&#091;'youre'&#093; = &quot;&lt;a href=https://www.cotonti.com/\&quot;forums.php\&quot;&gt;&quot;.$L&#091;'Forums'&#093;.&quot;&lt;/a&gt; &quot;.$cfg&#091;'separator'&#093;.&quot; &quot;.sed_build_forums($s, $fs_title, $fs_category);</pre></div>
in <strong>system/core/plug/plug.inc.php</strong><br />
<div class="highlight"><pre class="php">$out&#091;'youre'&#093; = $out&#091;'subtitle'&#093;;</pre></div>
<br />
Now... how can I do the same job without those core haks and using a plugin and hooks?]]></description>
			<pubDate>So, 02 Aug 2009 19:57:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3119&d=0#post15373]]></link>
		</item>
	</channel>
</rss>