A Photo Album
Demo Album is an example of a node storing photos. The photos can be of different size. 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 _templates_for_album, and sets it's actions to functions from sputnik.actions.album.
This node provides an example of how to use custom actions to display data stored in the node as Lua tables and how to use prototypes.
(The source code for this examples is available in the "sputnik-example" directory in the code repository.)
A Configurable World Clock
World Clock 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.)
(The source code for this examples is available in the "sputnik-example" directory in the code repository.)
A Bug Tracker Ticket
Tickets: This is a simple bug tracker, which consists of 44 120 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.
(The source code for this examples is available in the "sputnik-tickets" directory in the code repository.)
LuaUsers
LuaUsers links to two wikis that showcase a "mod" that completely changes the look and feel, replacing the markup format. The first of those wikis (http://sputnik.freewisdom.org/luausers/wiki/, login as "lua" with password "wiki") aims to replicate the existing Lua-Users wiki.
Slideshows
Slideshow Demo displays as any other page or as a slideshow. (Requires FullerScreen. The HTML was borrowed from S9.)
GraphViz
Graphviz Demo shows an example of dynamically generating PNG, GIF or SVG images based on a graph stored in a body of a node.