Widget

widget.png

Inspired by Modern but very different.

The Secret Sauce that makes this theme very different can be seen in the menu on the left. That menu is actually the content of another wiki page, so I can edit the menu simply by editing another wiki page. I can put arbitrary preformatted HTML into a wiki page and it will be inserted into the theme exactly as it stands. I can also insert Google Adsense ads, or a Paypal donate button - and you can choose what content you would like displayed on each page (a regexp on the page name determines which menu/object is displayed). Multiple content blocks can be pulled into a page with multiple calls to function extraObject.

I may release this as a theme-related patch.

To install, you need to put widget.py into your /data/plugin/theme directory, widget/ into your htdocs directory, and also put the contents of data/pages/ into your pages directory.

Widget 1.6.0 Patch

Widget works with MoinMoin 1.6.0 after a few minor changes. RequestCLI and Parser are incorrectly imported for 1.6.0. See (widget.py.moin-1.6.0.diff) for change sugestion. -- Markus Ă…lind 2008-02-03

Widget Subpage Patch

Widget theme breaks on subpages with sidemenu containing Wiki markup, ie. Page links in the markup are interpreted as relative. Please see following patch candidate (widget.py.diff) for a possibly cleaner way of doing the markup parsing.

Works with

1.5 (tested on 1.5.3) (Note: There was an IE bug in the first version. Hopefully fixed....)

Download

widget.tar.gz (7 August 2006)

Author

RobertSchumann

Comments

This Theme works (with the 1.6-Patches) without problems, under 1.7 and 1.8, too. -- MelaEckenfels 2009-02-04 07:14:29

Stopped working with 1.9. Is there any hope for an patch? -- MelaEckenfels 2012-01-12 13:20:41

Can you create a new attachment of the 1.8 version, I wanna have a look. -- ReimarBauer 2012-01-12 16:56:39

I removed the line from widget.py that says  from MoinMoin.request.request_cli import Request as RequestCLI  and it seems to work with 1.9.4. RequestCLI is not used anywhere in widget.py. -- Jagath

MoinMoin: ThemeMarket/Widget (last edited 2012-03-03 20:36:15 by 24-52-234-134)