<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FOG 1.6 own plugin]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">How can I add JavaScript and CSS files to my own custom plugin in FOG 1.6?</p>
<p dir="auto">My plugin has several submenus, and I would like all of them to use the same JavaScript and CSS files. I want to avoid creating duplicate files for each submenu or copying the same files multiple times under different names.</p>
<p dir="auto">For example:</p>
<pre><code>index.php?node=myplugin&amp;sub=list
</code></pre>
<p dir="auto">should load:</p>
<pre><code>myjs.js
mycss.css
</code></pre>
<p dir="auto">and</p>
<pre><code>index.php?node=myplugin&amp;sub=something
</code></pre>
<p dir="auto">should also load:</p>
<pre><code>myjs.js
mycss.css
</code></pre>
<p dir="auto">What is the recommended way to include shared JS and CSS files across all pages/submenus of a custom FOG 1.6 plugin?</p>
]]></description><link>http://forums.fogproject.org/topic/18218/fog-1-6-own-plugin</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 23:56:20 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18218.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Aug 2026 06:07:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FOG 1.6 own plugin on Thu, 13 Aug 2026 10:38:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/41830">@Valer</a> I think we need to understand what this plugin is doing.</p>
<p dir="auto">CSS isn’t something we’ve allowed to be injectable though it could be.</p>
<p dir="auto">You can still use your own CSS but that’s more at the FOG Configuration -&gt; FOG Setting -&gt; FOG_THEME, but you would need to put it on your server in a location you type the path too here.</p>
<p dir="auto"><a href="https://docs.fogproject.org/en/latest/development/plugin-development" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.fogproject.org/en/latest/development/plugin-development</a></p>
<p dir="auto">This is a good toolkit for understanding how to build your own plugin.</p>
]]></description><link>http://forums.fogproject.org/post/158490</link><guid isPermaLink="true">http://forums.fogproject.org/post/158490</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Thu, 13 Aug 2026 10:38:27 GMT</pubDate></item></channel></rss>