[pmwiki-users] Shared Pages in Farms

Sandy sandy at onebit.ca
Wed Feb 14 11:06:05 CST 2007




Patrick R. Michaud wrote:
> On Wed, Feb 14, 2007 at 11:14:03AM -0500, Sandy wrote:
>> Patrick R. Michaud wrote:
>>> On Wed, Feb 14, 2007 at 10:29:33AM -0500, Sandy wrote:
 >>>So folks coming at it from sandy.onebit.ca would see a slightly 
different version that those coming
>> at it from cricket.onebit.ca.

Looked simple enough, but it didn't work.

http://www.sandy.onebit.ca/Test/Whichwiki

Haven't gotten around to shared.d yet, but I it should still work, right?

>     $Conditions['sandy'] = ($_SERVER['HTTP_HOST'] == 'sandy.onebit.ca');
>     $Conditions['cricket'] = ($_SERVER['HTTP_HOST'] == 'cricket.onebit.ca');

I assume these would be in farmconfig.

> Then you can have (:if:) conditionals like
> 
>     (:if sandy:)
>     This content is visible only to people accessing sandy.onebit.ca
>     (:if cricket:)
>     This content is visible to people accessing cricket.onebit.ca
>     (:if:)
>     Everybody sees this.

Done.

Next step?

Sandy





More information about the pmwiki-users mailing list