[pmwiki-users] How can i change my Skin for different Groups/Pages?
Peter Bowers
pbowers at pobox.com
Fri May 8 10:17:57 CDT 2015
On Fri, May 8, 2015 at 3:43 PM, Petko Yotov <5ko at 5ko.fr> wrote:
> Is the information in the documentation relevent?
>
> http://www.pmwiki.org/wiki/PmWiki/GroupCustomizations
>
> I haven't used or reviewed the Hg recipe but in case it does something
> differently, I'd also check its documentation page.
>
Looking at this code from hg.php:
===(snip)===
####### Set up hierarchical configs, headers, footers, attributes & styles
$EnablePGCust = 0;
$hgc = 0; $hgh = 0; $hgf = 0; $hgs = 0; $hgm = 0; $hga = 0;
if (file_exists("$LocalDir/$hggroup.$hgname.php")) {
include_once("$LocalDir/$hggroup.$hgname.php");
$hgc = 1;
}
$hggroups = explode($hgseparator, $hggroup);
while (count($hggroups) != 0) {
$hg = implode ($hgseparator, $hggroups);
if ($hgc == 0 && file_exists("$LocalDir/$hg.php")) {
include_once("$LocalDir/$hg.php");
$hgc = 1;
}
...
===(snip)===
It looks to me like Petko's suggestion with the per-group customizations
should work perfectly.
Do be aware that that recipe is somewhat abandon-ware and hasn't been
touched in quite a while...
-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150508/ed72fe2b/attachment.html>
More information about the pmwiki-users
mailing list