On 05/09/12 12:36, [email protected] wrote:
> Hello Out There,
>  
> my english isn't that good, I've added the discription of my problem in 
> german below.
>  
> I'm trying to integrate multiple MediaWikis into my own page. I've some own 
> login-structures and mutiple projects which can have a wiki. If a user is a 
> member in a project holding a wiki, he may access this trough my own site.
> The wiki-farm is set up via database-prefixes, so every "sub-wiki" has its 
> own prefix. I think I need this, because I have to generate new wikis in 
> runtime from my page. When calling the wiki (via IFrame from my own site) I'm 
> adding an get-parameter which indicates which wiki should be loaded and set 
> the database-prefix as needed. In Mediawiki's config I'm saving this 
> parameter in a Cookie, so that wiki-internal links will work (they don't have 
> the get-parameter). Like this it's possible to access multiple wikis at the 
> moment.
>  
> One Issue here: If a user accesses my page via multiple tabs or 
> browser-windows, they get strange errors if editing a page on one tab and 
> surfing an other wiki on an other tab. Like this they get the cookie of the 
> other wiki while editing the first. If they hit save on the first tab, it 
> seams that they override the content in the second wiki (second tab) with the 
> one supposed to come to the first. It seams logic that this happens, but I 
> have no clue how to prevent this. Is it possible to add an additional 
> parameter to every wiki-generated link, so that I can add the "db-prefix" 
> into every link? That way I wouldn't need the Cookie.

This is overly complex.
Simply set $wgArticlePath to what you want, either as a get parameter or
as a "fake path".
That cookie trick is a path for utterly confusion.

Also see how to create an AuthPlugin for your login structures.


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to