[pmwiki-users] redefine wikistyles in costum skin

Michael Brenner mik.admin at nurfuerspam.de
Fri Aug 18 09:58:31 CDT 2006


Puh, solved it on my own. It seems to be a scope problem. Someone should 
mention such thing in the documentation.

---skins.php declaration of SetSkin ---
...
//function SetSkin($pagename, $skin) {
//  global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
//    $FarmPubDirUrl, $FarmD;
function SetSkin($pagename, $skin) {
  global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
    $FarmPubDirUrl, $FarmD, $HTMLStylesFmt;
....


Am Freitag, 18. August 2006 14:34 schrieb Michael Brenner:
> Hello,
>
> I'd like to use costumized wikistyles in my pmwiki. Thus I picked out
> following code from wikistyles.php and put it into myskin.php in 
> myskin-dir.
>
> --code--
> SDV($HTMLStylesFmt['wikistyles'], "
>     .frame
>       { border:1px solid #ffeeaa; padding:5px; background-color: #fff7dd; }
>     .lfloat { float:left; margin-right:0.5em; }
>     .rfloat { float:right; margin-left:0.5em; }\n");
> --endcode--
>
> A corious thing is, adding this code into config.php works. But this is not
> a pretty solution, because I'd like to have printerfriendly Layout, too.
>
> calling order is:
> config.php
> myskin.php
> wikistyles.php
>
> Thanks in advance - Brenner
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list