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

Patrick R. Michaud pmichaud at pobox.com
Fri Nov 10 12:16:31 CST 2006


On Fri, Nov 10, 2006 at 10:11:08AM -0700, H. Fox wrote:
> On 10/23/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >Ah yes, LeanSkin is loading its stylesheets after the <!--HeaderText-->
> >(now <!--HTMLHeader-->) directive.  That makes it difficult for
> >an administrator to override LeanSkin's settings.
> >
> >The recommended approach is for a skin to place its .css properties
> >prior to the <!--HeaderText--> directive.  There are reasons why a
> >skin will choose to put them after, but the downside is that
> >it then makes it difficult for a site administrator to override the
> >skin's style settings.
> 
> I'll reverse them and release a new version of the LeanSkin.  I'll
> also change $Action to $ActionTitle in the template file.  If there
> are any other glaring inadequacies in the LeanSkin, now's the the time
> report them.
> 
> Please remind me how a skin author should override the selectors
> PmWiki injects into the HTML header when the skin's .css properties
> precede the <!--HeaderText--> (now <!--HTMLHeader-->) directive.

Discussion since my 23-Oct message has suggested that the better
approach is to use $HTMLHeaderFmt in skin.php:

  $HTMLHeaderFmt['leanskin'] = 
    "<link rel='stylesheet' href='\$SkinDirUrl/lean.css' type='text/css' />";

This causes lean.css to be loaded after PmWiki's injected styles,
but before any administrator-provided styles in pub/css/ .

Pm




More information about the pmwiki-users mailing list