This is briefly discussed in<div><a href="http://www.pmwiki.org/wiki/Cookbook/ModuleGuidelines-Talk">http://www.pmwiki.org/wiki/Cookbook/ModuleGuidelines-Talk</a></div><div><a href="http://www.pmwiki.org/wiki/Cookbook/ModuleGuidelines-Talk"></a>perhaps this interesting discussion could be preserved on PmWiki too</div>
<div><br></div><div>cheers</div><div><br></div><div>Simon</div><div><br><br><div class="gmail_quote">2010/1/17 V.Krishn <span dir="ltr">&lt;<a href="mailto:vkrishn@insteps.net">vkrishn@insteps.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sunday 17 Jan 2010 2:51:10 am you wrote:<br>
&gt; On Saturday 16 January 2010 20:46:47, V.Krishn wrote :<br>
&gt; &gt; On Sunday 17 Jan 2010 12:10:23 am you wrote:<br>
&gt; &gt; &gt; On Saturday 16 January 2010 17:50:58, V.Krishn wrote :<br>
&gt; &gt; &gt; &gt; Here I would like to load<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &lt;!--infoboxLibFmt--&gt;<br>
&gt; &gt; &gt; &gt; &lt;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39;<br>
&gt; &gt; &gt; &gt; href=&#39;/pub/apps/pmwiki/cookbook/infobox/infobox.css&#39; /&gt;<br>
&gt; &gt; &gt; &gt; .....<br>
&gt; &gt; &gt; &gt; Before the line<br>
&gt; &gt; &gt; &gt; &lt;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39;<br>
&gt; &gt; &gt; &gt; href=&#39;<a href="http://insteps.net/pr/a/pmwiki/pub/css/local.css" target="_blank">http://insteps.net/pr/a/pmwiki/pub/css/local.css</a>&#39; /&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Right, a custom header $HTMLHeaderFmt[&#39;recipe&#39;] appears in some cases<br>
&gt; &gt; &gt; before, in some cases after local.css. I am not sure why.<br>
&gt;<br>
&gt; ...<br>
&gt;<br>
&gt; &gt; I hoped if pmwiki calls the user defined styles to be loaded at the<br>
&gt; &gt; end of execution? The idea of having local.css is for overriding syles<br>
&gt; &gt;  called before.<br>
&gt;<br>
&gt; I see. Local css files are appended at the end of $HTMLHeaderFmt in<br>
&gt; skins.php.<br>
&gt;<br>
&gt; When a recipe is included from config.php (that&#39;s before skins.php), and<br>
&gt; adds $HTMLHeaderFmt entries immediately, and they appear before local.css.<br>
&gt;<br>
&gt; If a recipe adds headers from inside a function called by Markup(), these<br>
&gt; headers will also be appended to the end of $HTMLHeaderFmt, but that<br>
&gt; happens after skins.php, so they appear after local.css.<br>
&gt;<br>
&gt; Technically, we could move the snippet appending local.css inside the<br>
&gt; function LoadPageTemplate() just before printing the skin, but then recipes<br>
&gt; will not be able to modify these entries anymore. I&#39;m not even sure there<br>
&gt; are any such recipes around. I&#39;ll think about it.<br>
<br>
</div></div>Thanks.<br>
I tried workaround [3] and seems to work with multiple recipes.<br>
If it does not require lots of changes than that would be great,<br>
but on second thought, the present method gives<br>
workaround [3] as well the present behaviour.<br>
Making changes might not allow recipes to revert back to present behaviour.<br>
I hope my workaround [3] works, would try to do some more tests.<br>
<br>
--<br>
Regards,<br>
<font color="#888888">V.Krishn<br>
</font><div><div></div><div class="h5">&gt;<br>
&gt; Petko<br>
&gt;<br>
&gt; &gt; &gt; There are two workarounds. First is to @import the external stylesheet<br>
&gt; &gt; &gt; from the inline css, like this [1] :<br>
&gt; &gt; &gt;   SDVA($HTMLStylesFmt, array(&#39;myrecipe&#39;=&gt;&#39;@import<br>
&gt; &gt; &gt; &quot;/path/to/style.css&quot;;&#39;));<br>
&gt; &gt;<br>
&gt; &gt; I would not go for this method for various implementation reasons...<br>
&gt; &gt;<br>
&gt; &gt; &gt; Second workaround is to force your HTML header at the beginning of the<br>
&gt; &gt; &gt; array, before all other entries :<br>
&gt; &gt; &gt;   array_unshift($HTMLHeaderFmt, array(&#39;myrecipe&#39; =&gt; &quot;&lt;link<br>
&gt; &gt; &gt; rel=.../&gt;&quot;));<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>