[pmwiki-users] $PageCSSListFmt
Patrick R. Michaud
pmichaud at pobox.com
Thu Sep 21 14:53:43 CDT 2006
On Thu, Sep 21, 2006 at 02:40:59PM -0500, JB wrote:
> Why does it need a file reference? Why not just a url to the css?
Your question answers itself... given just a url to a css file,
how is a PHP script (i.e., PmWiki) to know if the css file exists?
Pm
> PM wrote:
> > Here's the use case that $PageCSSListFmt is intended to solve:
> >
> > A wiki administrator downloads and installs PmWiki, and also
> > downloads and installs a skin from the Cookbook. However, the
> > administrator also needs some custom CSS to be loaded for
> > the entire site, and also needs some additional CSS to be
> > loaded only for pages in the XYZ group.
> >
> > Of course, the wiki administrator doesn't want to modify
> > the PmWiki or skin distribution files, because that will
> > make things difficult for upgrading later.
> >
> > To create the site-wide CSS, the administrator simply
> > creates a file called pub/css/local.css . PmWiki automatically
> > detects that file and causes a stylesheet link for local.css
> > to be included in the HTML <head> section of the document.
> >
> > For the per-group CSS, the administrator creates pub/css/XYZ.css .
> > When a visitor views a page in the XYZ group, PmWiki automatically
> > includes the stylesheet link to the XYZ.css in the <head> section.
> >
> > In summary, what we want to do is make it easy for a wiki adminstrator to
> > - add custom CSS to the output
> > - do this on a site-wide, per-group, or per-page basis,
> > - without having to modify any distributed skin or PmWiki files
> >
> > If you have a less complicated way to achive this, I'll be glad to hear it.
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list