[pmwiki-users] CSS for one (or all) tag in _a single_ page (inline or in head)
Hans
design5 at softflow.co.uk
Fri Aug 25 02:15:42 CDT 2006
Friday, August 25, 2006, 2:58:30 AM, Pm wrote:
> Eek! Almost anything that is "on/off" really ought to
> be prefaced with "$Enable", for consistency with other switches
> in PmWiki. So, perhaps $EnableSiteGroupStylesOnly or something
> like that.
Okay. I changed this now to $EnableDefautGroupStylesOnly
and set another variable $DefaultStyleGroup = '$SiteGroup'
so a different default group than the Site group can easily be
assigned.
$EnableDefautGroupStylesOnly = 1; is set on as default,
restricting style pages to the default group.
If a page is asked for from a different group nothing will happen.
download update from http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages
Pm wrote earlier:
> Another possibility is for the (:stylesheet:) markup to generate
> tags like
>
> <link rel='stylesheet' href='{$PubDirUrl}/cache/{$FullName}.css' type='text/css' />
>
> and have the stylesheet data copied from the referenced page into a
> public cache file that is automatically updated whenever we
> detect that the stylesheet page has changed. This could reduce
> bandwidth a lot.
This looks very interesting and promising.
But how can one achieve the copy and automatic update?
Hans
More information about the pmwiki-users
mailing list