<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : CSS called by plugin</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 02 May 2026 03:56:40 -0000</pubDate>

		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	Agreed!</p>
<p>
	once it's all completed and tested, I'll do that.</p>
<p>
	thanks for your input</p>
<p>
	kind regards</p>
<p>
	david</p>
]]></description>
			<pubDate>Cum, 21 Ara 2012 19:38:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36605]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	The correct way would be to create a php page called pluginname.header.php and copy and paste Trustmaster's code (changing the parts to match up with your plugin.) </p>
<p>
	Luke.</p>
]]></description>
			<pubDate>Cum, 21 Ara 2012 09:30:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36604]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<pre class="brush:php;">
Thank you, I'll give this a go.</pre>
<p>
	davide</p>
<p>
	<strong>Added 3 weeks later:</strong></p>
<p>
	No...sadly, this wont work...my plugin doesn't have that part...what I did do was put:</p>
<p>
	  $echo "&lt;link href='https://www.cotonti.com/plugins/standard/<em>pluginname</em>/css/style.css'  type='text/css' rel='stylesheet'&gt;";</p>
<p>
	into my <i>pluginname</i>.config.php and it worked a treat.</p>
<p>
	Thank you</p>
<p>
	david</p>
]]></description>
			<pubDate>Per, 29 Kas 2012 14:04:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36360]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Ah, so you're using Genoa. Then things are slightly different because in Genoa your main pluginname.php is executed after the header part is rendered. So you need to add another part to your plugin to add that CSS file to header:</p>
<pre class="brush:php;">
&lt;?php
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=pluginname
Part=header
File=pluginname.header
Hooks=header.main
Tags=header.tpl:{HEADER_COMPOPUP}
Order=10
[END_SED_EXTPLUGIN]
==================== */

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

if (defined('SED_PLUG') &amp;&amp; $e == 'pluginname')
{
	$out['compopup'] .= '&lt;link rel="stylesheet" type="text/css" href="'.$cfg['plugins_dir'].'/pluginname/tpl/style.css" /&gt;';
}</pre>
<p>
	 </p>
]]></description>
			<pubDate>Pzt, 26 Kas 2012 06:30:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36338]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	Macik,</p>
<p>
	Thanks. Where should I include this line, in my main pluginname.php?</p>
<p>
	How/when is $out['compopup'] parsed?</p>
<p>
	as an aside, anyone have an overview of how Cotonti starts up?, by this I mean, the sequence of operations it runs through before it parses and presents the 'homepage' of the website?</p>
<p>
	thanks</p>
<p>
	david</p>
]]></description>
			<pubDate>Paz, 25 Kas 2012 23:06:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36337]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Nop, `cot_rc_link_file` is use other `cot_rc_*` functions.</p>
<p>
	But, as I remember, you can use something like this:</p>
<pre class="brush:php;">
$out['compopup'] .= '&lt;link href="'.$file.'" type="text/css" rel="stylesheet" /&gt;\n'; </pre>
<p>
	where $file contains filename with path to your CSS.</p>
]]></description>
			<pubDate>Paz, 25 Kas 2012 20:10:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36336]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	I'll give this a go.  Thank you for your help</p>
<p>
	 </p>
<p>
	David</p>
<p><strong>Added 2 hours later:</strong></p><p>
	Uhm....slight problem,</p>
<p>
	Genoa doesnt have the cot_rc_link_file() function in functions.php...can I just copy/paste that function from Sienna's functions.php and paste into Genoa's functions.php and everything will be ok?</p>
<p>
	David</p>
]]></description>
			<pubDate>Cmt, 24 Kas 2012 13:50:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36333]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	I forgot that in a plugin standalone part you can also do <a href="http://www.cotonti.com/reference/cotonti/package-functions.html#cot_rc_link_file()">cot_rc_link_file()</a>:</p>
<pre class="brush:php;">
cot_rc_link_file($cfg['plugins_dir'] . '/myplug/tpl/myplug.css');</pre>
<p>
	 </p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 19:38:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36332]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	Yes, the CSS is 'just' for a particular plugin.  I thought there would be a way of calling it from the plugin itself.  I know I can't use include() as this just prints the CSS to screen as opposed to applying it to the output from the plugin.</p>
<p>
	pas I said, I saw this was done for the 'tags' plugin but this is a very complex plugin. Mine is very simple and only outputs through the .tpl for the plugin, under plugin.php page. (This is a standalone plugin, I.e it doesn't hook or tag into any other parts of Cotonti, just onto the plugin page)</p>
<p>
	Many thanks</p>
<p>
	David</p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 18:13:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36331]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[<p>
	footer is not valid for html</p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 18:00:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36330]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	If you only want to use it on your plugin page and you are not going to consolidate it with other site stylesheets, then you can simply add it using <a href="http://www.cotonti.com/reference/cotonti/package-functions.html#cot_rc_link_footer()">cot_rc_link_footer()</a> function in your main php file:</p>
<pre class="brush:php;">
cot_rc_link_footer($cfg['plugins_dir'] . '/myplug/tpl/myplug.css')</pre>
<p>
	 </p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 17:13:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36329]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	Hi, yes, thanks, I see that...problem is, my plugin doesn't have a resources file (it's a plugin adapted from LDU/Seditio).</p>
<p>
	I'm using a very simple set of .php files in my plugin and wondered if it could go in the main php plugin file or the config.php file?</p>
<p>
	Thanks again</p>
<p>
	David</p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 09:47:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36324]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	I was going to say in tags.resources, but it looks like its just a comment?</p>
<pre class="brush:php;">
/*$R['tags_code_style'] = '&lt;link rel="stylesheet" type="text/css" href="'.$cfg['plugins_dir'].'/tags/style.css" /&gt;';*/</pre>
<p>
	 </p>
<p><strong>Added 2 minutes later:</strong></p><p>
	Ignor that, its in tags.rc.php:</p>
<pre class="brush:php;">
cot_rc_add_file($cfg['plugins_dir'] . '/tags/tpl/tags.css');</pre>
<p>
	 </p>
]]></description>
			<pubDate>Cum, 23 Kas 2012 08:56:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36321]]></link>
		</item>
		<item>
			<title>Davide</title>
			<description><![CDATA[<p>
	Hi,</p>
<p>
	I am writing a plugin for Cotonti that I want to have use its own CSS file.  Can someone please advise how I call the CSS file..I.e which plugin file do I need to add an 'include' statement and anything else I need to do.  I don't want the CSS to be in my skin/theme CSS file.</p>
<p>
	I saw this was done in the 'tags' plugin but didn't quite follow.  My plugin won't have as many .php files</p>
<p>
	many thanks</p>
<p>
	David</p>
]]></description>
			<pubDate>Per, 22 Kas 2012 23:37:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7237&d=0#post36319]]></link>
		</item>
	</channel>
</rss>