[pmwiki-users] CSS for one (or all) tag in _a single_ page (inline or in head)
Patrick R. Michaud
pmichaud at pobox.com
Thu Aug 24 20:58:30 CDT 2006
On Thu, Aug 24, 2006 at 11:17:33PM +0100, Hans wrote:
> Andy wrote:
> >After your first comment, I took a peak at Hans' code, and
> >unfortunately, I really don't know enough PHP or regex to be able to
> >tweak it (I tried), but I was thinking of a tweak that would allow
> >someone to just include a line like:
> >
> >$RequiredStyleGroup = 'ExampleStylesGroup';
> >
> >in config.php.
>
> I updated stylepage.php and added a variable $SiteGroupStylePages,
> which is set to 1 by default, restricting other style pages to the
> $SiteGroup.
> This is a change from the previous behaviour, which allowed style
> pages in any group.
> If you want this you need to set $SiteGroupStylePages = 0;
> I hope this meets some of the demand for greater security in using this
> script.
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.
Or, we could have $StylePagePattern, which limits pages according
to a given pattern:
$StylePagePattern = '/^Site\\./';
Pm
More information about the pmwiki-users
mailing list