Login or register Large RSS Icon
Edit Icon History Icon Small RSS Icon

Demos

This site is running Sputnik, so if you want to see what Sputnik works as a wiki, just click around this site or try editing the Sandbox.

If you want to see what other things Sputnik can be made to do, here are some more examples.

A Photo Album

Demo Album: This page implements a photo album, in which photos can be of different size. Note that the only thing that is stored in the actual node is a Lua table with the photos and a few extra parameters. The page looks like a photo album because it has it's prototype set to @Album (see the source), which in turn sets templates field to templatesfor_album, and it'and sets it's actions to functions from sputnik.actions.album.

This is an example of how to use custom actions to display data stored in the node as Lua tables and how to use prototypes.

A Configurable World Clock

World Clock: This page uses a template set stored at templatesforworldclock and the code in sputnik.actions.worldclock. It uses a combination of two actions. The first action, which replaces show generates Javascript which then uses AHAH to call in the output of another action (.show_content) every few seconds and to replace a content of a div with it. (The .show_content action returns just an HTML fragment containing the clock as it is at the moment.)

A Bug Tracker Ticket

Tickets: This is a simple bug tracker, which consists of 44 lines of code, a prototype node (@Ticket, see the source) and an index node Tickets. The index node displays a list of nodes that start with "Ticket:" together with their status. It also contains a link to create new "Ticket:" nodes. Each such node gets its prototype automatically set to @Ticket, which gives the nodes custom UI: their edit form has controls for fields that cannot be set for normal nodes. (Additionally, just for the heck of it, @Ticket removes the distinction between viewing and editing the node - i.e., you are always in the edit mode. This plugin is also available as a rock (luarocks install sputnik-tickets).

This shows an example of: custom edit UI, automatic creation of nodes of a particular type, packaging add-ons as luarocks.

LuaUsers

LuaUsers: This is a "mod" that completely changes the look and feel and replacing the markup format. The mod is packaged as a rock.

Slideshows

Slideshow Demo: The same node displays as any other page or as a slideshow. (Requires FullerScreen. The HTML was borrowed from S9.)

GraphViz

Graphviz Demo: Text representation of a graph is stored in a body of a node, to be then converted on the fly into PNG, GIF or SVG representation of the graph.

Powered by Sputnik | XHTML 1.1