-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That was awesome. It took a long time to get working exactly like I
wanted and then I moved to Includes and such.

I wound up writing the Regex on the category page and then just
including that in a few other places.

One thing I would strongly suggest modifying is the category names.
Instead of CategoryEvents I would suggest CategoryCypriotTeamEvents.
It's longer, but avoids the need to worry about conflicts. Doing this
allowed me to change from using regex based on the path to just based on
the year.

So - for events by date section, my regex is 2008|2009. That was I only
show something that's happening in this year and next year. It's also
looks nicer to only have the year bold faced. (Done in regex match)

Doing it this way also allowed me to not need to apply any regex to my
past/future events. This give me no bold faced text at all.

One thing I wish we could change is the stylesheet applied to that
hideous calendar. It took me about 10 min to create a nice calendar
using firebug.

I hope this helps somebody that follows this as well. Longer page load
time, but SO worth it.

Thanks for coming up with this.

[EMAIL PROTECTED] wrote:
> Date: Sat, 22 Nov 2008 07:04:58 -0500
> From: PrivateVoid <[EMAIL PROTECTED]>
> Subject: Re: loco-contacts Digest, Vol 42, Issue 17
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain
>
>
>> 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.
>
>
>
>
> ------------------------------

- --
Michael Lustfield
Profarius, SD LoCo

Network and Systems Administrator
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkpj50ACgkQGE358U5NjWrt5wCfdeBu5leFav9owKYb6Kkxh4d8
VU4AnRQqvCJHnzXXL8lNFWEqiK3uSzJG
=k/X5
-----END PGP SIGNATURE-----

-- 
loco-contacts mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/loco-contacts

Reply via email to