Widget
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.
- It is a relatively simple thing to adjust the sidebar that's loaded for a page based on more than just the page name - for example, I adjusted it based on whether someone was logged in.
The theme works well on MM 1.5.7 - great work - but the file msie.css is missing from the dist. Copy one from modern and put it in the css directory and all is well. The omission shows up most clearly in the page trail when using IE, and of course in the server logs. -- RuthIvimey 2007-05-17 23:15:25
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
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