> Message: 1 > Date: Sat, 22 Nov 2008 12:25:10 +0100 > From: Savvas <[EMAIL PROTECTED]> > Subject: events wiki tracker using categories > To: "Ubuntu local community team (LoCo) contacts" > <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > I don't know if anyone else posted a similar solution, but if you > would like to create an events page that separates them as Upcoming > and Past, I've found a simple solution without having to move or > rename wiki pages - using categories on each page. > > For example: > The wiki page https://wiki.ubuntu.com/CypriotTeam/Events/IntrepidReleaseParty > has these two footnote lines: > https://wiki.ubuntu.com/CypriotTeam/Events/IntrepidReleaseParty?action=raw > "---- > CypriotTeam CategoryEvents ReleaseParties IntrepidReleaseParties > CategoryCypriotTeamPastEvents" > > Categories are added at the footer area, after the four dashes "-" and > they are separated by space. > Note the last category, "CategoryCypriotTeamPastEvents". > > If you go to the events tracker page: > https://wiki.ubuntu.com/CypriotTeam/Events/ > (or https://wiki.ubuntu.com/CypriotTeam/Events?action=raw ) > ..you will notice the following code (within a table wiki format) for > upcoming events: > "<<PageList(category:CategoryCypriotTeamUpcomingEvents > regex:^CypriotTeam/Events)>>" > ..and this for past events: > "<<PageList(category:CategoryCypriotTeamPastEvents > regex:^CypriotTeam/Events)>>" > > The "category:" means it searches for that category and the "regex:" > field searches and matches a specific set of pages to look for the > category - for the above example, the subpages of CypriotTeam/Events > wiki page. Combining category and regex really speeds up the results, > so it's recommended to use them both if doing such searching. > > As you can see, it's pretty easy to track down and easily edit and > simply change its category and it automagically gets listed in "Past > Events". Hope someone will make a good use out of this! :) > > Cheers, > Savvas aka medigeek
Very nice! I sense much editing in my future. -- loco-contacts mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/loco-contacts
