[pmwiki-users] Settling link styles in a wiki group and on a page

Hans design5 at softflow.co.uk
Sat Nov 11 13:15:42 CST 2006


Saturday, November 11, 2006, 5:45:09 PM, H. wrote:

> If so, then we should avoid explaining the wrong way first, followed
> by the right way, followed by how to make the wrong way work... etc.

good. but I think it can't be made to work. You write on the page:

In the past the "normal" mechanism for styling has been for a skin's
template file to include

<link rel='stylesheet' type='text/css' href='$SkinDirUrl/myskin.css' />
<!--HTMLHeader-->

but in order to achieve the "ultimate sequence" for style loading this
requires some way for a skin author to override the PmWiki defaults.
It could be done with the following in skin.php:

global $HTMLStylesFmt;
$HTMLStylesFmt['skin'] = "...css overrides here...";

--end quote--
But this way the load order of styles is:
# skin styles
# core PmWiki styles
# recipe styles
# local/admin styles

which still leaves us with recipe styles loading later
than the skin styles, even if pmwiki core styles get overridden as you
explain.

Maybe this should be explained, as many skins are constructed this
way, and an understanding of HTMLHeaderFmt entries is asked for.

>> I also liked the old list of style sources, and reinstated it.

> I moved it to its own section.

good.

> Now a skin author who's starting afresh only needs to read the
> introduction and one subsection.  The rest is just detail for deeper
> understanding.

Yes. Coming together nicely.



Hans





More information about the pmwiki-users mailing list