[Pmwiki-users] CSS links under 0.6.1 or later

Richard Canning rcanning
Mon Feb 23 17:37:43 CST 2004


The way it seems to work is you put the following into the Group.php file.

$HTMLHeaders .= "   <link rel='stylesheet' href='$PubDirUrl/css/YourGroup.css' type='text/css' />\n";


But I am sure it would not be too hard to add a line that would check if there is a Group.css file and add this line if it exists, and do the same for pages.....

However, this seems a lot more clumsy than the way it used to be where it would automatically put them in if they were there.

Patrick?

Richard Canning

-----Original Message-----
From: Nathan Jones [mailto:nathanj at optimo.com.au] 
Sent: Tuesday, February 24, 2004 11:26 AM
To: pmwiki-users at pmichaud.com
Subject: [Pmwiki-users] CSS links under 0.6.1 or later


Another question (actually, I think I'm just thinking out load):

With 0.6.0, PmWiki would include stdlayout.css, plus a skin css, plus $Group.css and $Group.$Title.css (but only if they existed).

What's the deal with 0.6.2? Am I right in saying that the css files included are only those mentioned in the template? (I certainly wouldn't want PmWiki to generate output that is different to what is in the
template.)

If I want the same template for the whole site, but some different CSS for one group, which path would you suggest?

1. Duplicate the site template and use the copy for the group, with only the .css file being different?

2. Call a PHP function to conditionally link to stylesheets?

I'm thinking option 2 is nicer. Maybe as a Cookbook add-on that can be called from the template: <!--function:IncludeCSS-->

-- 
Nathan Jones

-- 
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com



The information contained in this email message and any attachments
may be confidential and may also be the subject of legal professional
privilege.  If you are not the intended recipient of this email, any
disclosure or copying of this material is unauthorised and prohibited.
Please notify me by return email.




More information about the pmwiki-users mailing list