Re: [pmwiki-users] how to access configuration variables from skin scripts

0 views
Skip to first unread message

a.sond...@gassi-tv.de

unread,
Mar 24, 2012, 9:08:02 PM3/24/12
to Petko Yotov, pmwiki...@pmichaud.com
> Sorry for my late reply. You are using PmWiki in unusual ways so I had to find
> some time to test the thing.

guilty as charged ^^


> You can set this line in pub/skins/yourskin/yourskin.php if you declare the 4
> variables global.

this does the trick. is there a way to additionally suppress the <div id="wikitext"></div>?

Petko, thanks a lot for all your help so far.

Best regards / Mit freundlichem Gruß,

i. A. Josh Sonderhoff
Purchasing Manager

--
cell: +49 1511 5794189
mail: jo...@movingpixies.com
web: http://movingpixies.com

moving pixies GmbH
Aurikelweg 22
DE-50259 Pulheim
Geschäftsführer: Daniel Sonderhoff
Amtsgericht Köln, HRB 74273


Save the world — Don't print this e-mail!

On Mar/18, 2012, at 1800 , pmwiki-use...@pmichaud.com wrote:

> Sorry for my late reply. You are using PmWiki in unusual ways so I had to find
> some time to test the thing.
>
> a.sond...@gassi-tv.de writes:
>>> $HandleBrowseFmt = array(&$PageStartFmt, &$PageRedirectFmt, &$PageEndFmt);
>> This works as well, though not exactly like I was hoping to use it. I was
>> hoping to use a directive like this in the skin template?s php file (where I
>> have all the skin related conditional stuff).
>
> You can set this line in pub/skins/yourskin/yourskin.php if you declare the 4
> variables global.
>
>> In which order are config.php and skin.php(1) evaluated?
> config.php is used very early, long before a skin-template.php file.
>
>> E. g. can I define a global variable in skin.php to conditionally
>> use the var in config.php?
>
> No.
>
>> Or are there other ways to achieve this?
>
> I hope that I have correctly understood your need and I hope that the above
> line in a template-skin.php file with a global declaration will work for you.
>
> Petko


_______________________________________________
pmwiki-users mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Petko Yotov

unread,
Mar 24, 2012, 9:54:46 PM3/24/12
to pmwiki...@pmichaud.com
a.sond...@gassi-tv.de writes:
> > You can set this line in pub/skins/yourskin/yourskin.php if you declare
> the 4
> > variables global.
>
> this does the trick. is there a way to additionally suppress the <div
> id="wikitext"></div>?

Yes, set in config.php

$PageTextStartFmt = "";
$PageTextEndFmt = "";

Reply all
Reply to author
Forward
0 new messages