Although it's my habit to first lurk a bit on a mailinglist, then write, I've got an issue which bothers me so much I deny my normal behaviour (too much difficult english words in a too lang sentence for a simple dutch guy).
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming, so after a while of searching I found the word Wikifarm. Only problem is that there is no information regarding wikifarms and mediawiki. )-: the question: Should the solution be somewhere in wikifarms or are there other ways to achieve multiple layouts?
thanks in advance
Lighans
On 30 Mar 2005, at 02:38, Hans Huijgen wrote:
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming...
I installed *one* copy of MediaWiki 1.4, then wrote a script that duplicated the directory structure and hard-linked the files. Result is multiple wikis in nearly the same space. (Unix only -- I don't think you can do that in Windows.)
This might not be exactly what you're looking for, but may be a place to start.
:::: Base 8 is just like base 10, if you are missing two fingers. - Tom Lehrer :::: Jan Steinman http://www.Bytesmiths.com/Item/003AA08
It's been mentioned that if you hack the vars in LocalSettings.php so that the includes, maintenance, and languages directories are one place (eg, a global location), but extensions, images, and skins are someplace else (a user-specific location), you can change the variables so it works. (I should try it just to see how it works.)
What one could do is use rewrite rules so that all Wiki requests, no matter for which one it is, are funelled through the same index.php. Then LocalSettings.php will parse the query and extract which wiki it is for. It then uses this to set some paths, and include the appropriate LocalSettings.php.
On Wed, 30 Mar 2005 09:44:00 -0800, Jan Steinman Jan@bytesmiths.com wrote:
On 30 Mar 2005, at 02:38, Hans Huijgen wrote:
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming...
I installed *one* copy of MediaWiki 1.4, then wrote a script that duplicated the directory structure and hard-linked the files. Result is multiple wikis in nearly the same space. (Unix only -- I don't think you can do that in Windows.)
This might not be exactly what you're looking for, but may be a place to start.
:::: Base 8 is just like base 10, if you are missing two fingers. - Tom Lehrer :::: Jan Steinman http://www.Bytesmiths.com/Item/003AA08
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 30 Mar 2005, at 12:10, Jamie Bliss wrote:
It's been mentioned that if you hack the vars in LocalSettings.php so that the includes, maintenance, and languages directories are one place (eg, a global location), but extensions, images, and skins are someplace else (a user-specific location), you can change the variables so it works. (I should try it just to see how it works.)
That sounds like a lot of work! Here's how I do it. Feel free to leave my .signature on. I got into the habit of putting at least one colon in front back in the 80's, when I was pretty active in a shell script mailing list... ;-) ---------------- #!/bin/bash ## # Link the wiki files into another directory for use as a copy. # # $1: where to put the wiki # # Where the originals are basedir=/Library/WebServer/include/wiki
# Should not need to change anything below this line. # # Where the target website is # if [ ! -d "$1" ]; then echo $0 error, $1 does not exist; exit 999; fi
# # Resolve relative name, if needed. # stardir="$PWD" cd "$1" targetdir="$PWD" cd "$startdir"
# # Setup the base wiki directory. # umask=027 [ -d "$targetdir/wiki" ] || mkdir "$targetdir/wiki" chgrp www "$targetdir/wiki" targetdir="$targetdir/wiki"
# # Hard-link files in $1 directory to $2 directory, both of which exist, # recursively doing the same in any subdirs found. # Paths must be absolute. # depth=-1 function linkall() { echo ((depth=$depth+1)) for (( i=$depth; $i > 0; i=$i-1 )) ; do echo -n ' '; done echo -n "linking $1: " local here="$PWD" cd "$1" local f for f in * do if [ -d "$f" ]; then mkdir "$2/$f"; chgrp www "$2/$f"; linkall "$1/$f" "$2/$f" ; else echo -n '.'; ln "$1/$f" "$2/$f"; fi done cd "$here" echo -n '/' ((depth=$depth-1)) }
linkall "$basedir" "$targetdir" echo
# # Explicitly handle exceptions. # chmod 770 "$targetdir/images" chmod 770 "$targetdir/config" rm "$targetdir/LocalSettings.php"
echo echo "Now go to http://hostname/wiki/config and set up the configuration" echo "REMEMBER remove or write protect the config directory afterward!" echo
:::: If busses stop at a bus station, and trains stop at a train station, what happens at a work station? :::: Jan Steinman http://www.IslandSeeds.org/wiki
Quoting Jan Steinman, from the post of Wed, 30 Mar:
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming...
I installed *one* copy of MediaWiki 1.4, then wrote a script that duplicated the directory structure and hard-linked the files. Result is multiple wikis in nearly the same space. (Unix only -- I don't think you can do that in Windows.)
well, hardlinks, surprisingly enough, are possible in Woodnose, but M$ will not admit it openly, rather burry this fact deep in some MSDN article they hope nobody reads :-)
This might not be exactly what you're looking for, but may be a place to start.
sounds like he was looking for different thing, if I understood - different CSS for different pages in the SAME wiki...
On Apr 5, 2005 4:35 AM, Ira Abramov lists-MediaWiki-l@ira.abramov.org wrote:
Quoting Jan Steinman, from the post of Wed, 30 Mar:
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming...
I installed *one* copy of MediaWiki 1.4, then wrote a script that duplicated the directory structure and hard-linked the files. Result is multiple wikis in nearly the same space. (Unix only -- I don't think you can do that in Windows.)
well, hardlinks, surprisingly enough, are possible in Woodnose, but M$ will not admit it openly, rather burry this fact deep in some MSDN article they hope nobody reads :-)
Yes... I remember doing that for a system file that was always locked. Deleting it was a pain, though...
Anyway, for those literate in C, it involves a call to CreateHardLink(), which is defined as: BOOL CreateHardLink( LPCTSTR lpFileName, // link name name LPCTSTR lpExistingFileName, // target file name LPSECURITY_ATTRIBUTES lpSecurityAttributes );
I'll send anyone the short program I have (I can't say I wrote it, don't remember) to make a hard link. The API is only supported, however, on 2k and XP.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now had 2GB.
On Apr 5, 2005 5:15 PM, Jamie Bliss astronouth7303@gmail.com wrote:
Anyway, for those literate in C, it involves a call to CreateHardLink(), which is defined as: BOOL CreateHardLink( LPCTSTR lpFileName, // link name name LPCTSTR lpExistingFileName, // target file name LPSECURITY_ATTRIBUTES lpSecurityAttributes );
I'll send anyone the short program I have (I can't say I wrote it, don't remember) to make a hard link. The API is only supported, however, on 2k and XP.
Are you talking about junctions? http://www.sysinternals.com/ntw2k/source/misc.shtml#junction
Quoting Jamie Bliss, from the post of Tue, 05 Apr:
Anyway, for those literate in C, it involves a call to CreateHardLink(), which is defined as: [...] I'll send anyone the short program I have (I can't say I wrote it, don't remember) to make a hard link. The API is only supported, however, on 2k and XP.
no need. you can get it with "hardlink magic" (freeware off the web) and I do believe also with "ln" in a cygwin shell.
On 5 Apr 2005, at 01:35, Ira Abramov wrote:
Quoting Jan Steinman, from the post of Wed, 30 Mar:
I installed *one* copy of MediaWiki 1.4, then wrote a script that duplicated the directory structure and hard-linked the files. (Unix only -- I don't think you can do that in Windows.)
well, hardlinks, surprisingly enough, are possible in Woodnose, but M$ will not admit it openly, rather burry this fact deep in some MSDN article they hope nobody reads :-)
Yea, I meant as an accessible, supported, scriptable interface.
I used to make hardlinks in CP/M using an absolute disk editor to duplicate FAT table entries, too, but I didn't claim that CM/P supported it! :-)
:::: Where did my money go? http://www.warresisters.org/piechart.htm :::: Jan Steinman http://www.Bytesmiths.com/Item/99AU34
Its not much of a problem to insert a variable in the xhtml-slim for the call to the css. I think you could choose the value of the variable depending on the namespace of the page (easy) on or the name of the page...those are custom changing layout without the use of cookie. Then of course, you can use a cookie, for different layout depending on people visiting your site.
Although I used this method just to change the language of the menu depending on the language of the visitor's browser, I really think it could be easily adapt for the name of the css (or the directory, but beware, I'm not sure how it will be handled by the users monobook features... better disable this)
François
Hans Huijgen wrote:
Although it's my habit to first lurk a bit on a mailinglist, then write, I've got an issue which bothers me so much I deny my normal behaviour (too much difficult english words in a too lang sentence for a simple dutch guy).
While working with my wiki, I want to create different layouts for different peaces of my wiki. I could just install different mediawiki's, but that is a bit too much space consuming, so after a while of searching I found the word Wikifarm. Only problem is that there is no information regarding wikifarms and mediawiki. )-: the question: Should the solution be somewhere in wikifarms or are there other ways to achieve multiple layouts?
thanks in advance
Lighans
mediawiki-l@lists.wikimedia.org