[Sputnik-list] Re: sputnik with LuaUsers skin
Yuri Takhteyev
yuri at sims.berkeley.edu
Thu Feb 21 07:18:53 GMT+2 2008
And here is a life demo, or rather two, or, rather, one demo with two skins:
Jérôme's "I Can't Believe it's Not LuaUsers Wiki" skin:
http://www.freewisdom.org/luausers/wiki/
Sputnik's original look and feel: http://www.freewisdom.org/luausers/wiki2/
(To avoid getting the pages spidered by google, there is a .htaccess
authentication for the whole directory. Login as "lua" with password
"user".)
Note that it's actually the same Sputnik installation, just with two
different cgi files, which differ by two characters: the one for wiki2
has ROOT_PROTOTYPE = '@LuaUsers' commented out.
WikiLinks work now, and the format of the pages is unchanged. It's
only an extra 80 lines of code (plus Hisham's "medialike.lua") for the
second demo. The first one requires different templates, so it's
obviously more.
Let me know if you find any problems before I send this to LuaUsers. :)
If you want to try running it, the installation instructions are the
same, though you would end up installing different rocks today than
you would have yesterday:
Jérôme, thanks for your help!
- yuri
> 1. Install Sputnik as usually
>
> mkdir ~/sputnik
> cd ~/sputnik -- any other directory should work
> wget http://sputnik.freewisdom.org/files/sputnik_install_2008_02_16.sh
> sh sputnik_install_2008_02_16.sh
>
> 2. Install the rock
>
> ./bin/luarocks install sputnik-luausers
>
> 3. Tell Sputnik to use the alternative nodes by editing
> htdocs/sputnik.lua and adding the following lines fields to
> SPUTNIK_CONFIG:
>
> MARKUP_MODULE = 'sputnik.markup.luausers'
> ROOT_PROTOTYPE = '@LuaUsers'
>
> 4. Load the data
>
> wget http://media.freewisdom.org/tmp/lua-users-content.zip
> unzip lua-users-content.zip
> wget http://media.freewisdom.org/tmp/import_from_luausers.lua
> ./bin/lua5.1 import_from_luausers.lua lua-users-content/nodes/ wiki-data/
>
> 5. Run
>
> ./bin/lua5.1 ./bin/xavante_start
>
> Then go to something like http://localhost:8080/sputnik.lua?p=LuaPowerPatches
More information about the Sputnik-list
mailing list