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"><<a href="mailto:vkrishn@insteps.net">vkrishn@insteps.net</a>></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>
> On Saturday 16 January 2010 20:46:47, V.Krishn wrote :<br>
> > On Sunday 17 Jan 2010 12:10:23 am you wrote:<br>
> > > On Saturday 16 January 2010 17:50:58, V.Krishn wrote :<br>
> > > > Here I would like to load<br>
> > > ><br>
> > > > <!--infoboxLibFmt--><br>
> > > > <link rel='stylesheet' type='text/css'<br>
> > > > href='/pub/apps/pmwiki/cookbook/infobox/infobox.css' /><br>
> > > > .....<br>
> > > > Before the line<br>
> > > > <link rel='stylesheet' type='text/css'<br>
> > > > href='<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>' /><br>
> > ><br>
> > > Right, a custom header $HTMLHeaderFmt['recipe'] appears in some cases<br>
> > > before, in some cases after local.css. I am not sure why.<br>
><br>
> ...<br>
><br>
> > I hoped if pmwiki calls the user defined styles to be loaded at the<br>
> > end of execution? The idea of having local.css is for overriding syles<br>
> > called before.<br>
><br>
> I see. Local css files are appended at the end of $HTMLHeaderFmt in<br>
> skins.php.<br>
><br>
> When a recipe is included from config.php (that's before skins.php), and<br>
> adds $HTMLHeaderFmt entries immediately, and they appear before local.css.<br>
><br>
> If a recipe adds headers from inside a function called by Markup(), these<br>
> headers will also be appended to the end of $HTMLHeaderFmt, but that<br>
> happens after skins.php, so they appear after local.css.<br>
><br>
> Technically, we could move the snippet appending local.css inside the<br>
> function LoadPageTemplate() just before printing the skin, but then recipes<br>
> will not be able to modify these entries anymore. I'm not even sure there<br>
> are any such recipes around. I'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">><br>
> Petko<br>
><br>
> > > There are two workarounds. First is to @import the external stylesheet<br>
> > > from the inline css, like this [1] :<br>
> > > SDVA($HTMLStylesFmt, array('myrecipe'=>'@import<br>
> > > "/path/to/style.css";'));<br>
> ><br>
> > I would not go for this method for various implementation reasons...<br>
> ><br>
> > > Second workaround is to force your HTML header at the beginning of the<br>
> > > array, before all other entries :<br>
> > > array_unshift($HTMLHeaderFmt, array('myrecipe' => "<link<br>
> > > rel=.../>"));<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>