Details

Applies to
moin 1.5.x
Purpose

Adds a new markup symbol to tables (=), to allow user pages to contain header rows like those hardcoded e.g. on the RecentChanges table.

Description

The patch extend the table markup syntax so you can do something like:

||<=> .. || .. ||
|| .. || .. ||
|| .. || .. ||
||<=> || .. ||
|| .. || .. ||

And all rows starting with <=> are marked as having CSS-class "heading". E.g. to have them highlighted and with bold text, add this to the theme's CSS:

tr.heading {
        background-color: #e0e0d0;
        font-weight: bold;
}

Patch

The only change needed is a check for "=" in the table parser.

   1 --- MoinMoin/parser/wiki.py.old 2006-11-06 15:48:35.000000000 +0100
   2 +++ MoinMoin/parser/wiki.py     2006-11-06 15:50:20.000000000 +0100
   3 @@ -675,6 +675,9 @@
   4              elif key == 'v':
   5                  found = True
   6                  attrs['valign'] = '"bottom"'
   7 +            elif key == '=':
   8 +                found = True
   9 +                attrs['rowclass'] = '"heading"'
  10              elif key == '#':
  11                  arg = parser.get_token()
  12                  try:

Discussion

I'm running the desktop edition as an evaluation of MoinMoin. I really would like this feature, but it is not clear where I apply this patch. I can't find a file wiki.py anywhere in the MMDE folder hierarchy. -Eric Shain

OK, I installed the full MoinMoin and now I have the wiki.py edited. Unfortunately, I can't get it to work. Can anyone give me a hint as to which css file needs to be edited? I've been using Sinorca4Moin mostly. -Eric Shain

I've added the css code above in both the common.css for modern and Sinorca4Moin themes and added the <=> to a cell and it still does nothing. The lack of table headers is one of the main reasons we are considering a different wiki engine. Any help appreciated. -Eric Shain

Plan


CategoryMoinMoinPatch

MoinMoin: MoinMoinPatch/TableWithHeaderRows (last edited 2007-10-29 19:06:16 by localhost)