[pmwiki-users] Suggestion for wiki calendar

John Rankin john.rankin at affinity.co.nz
Thu May 19 01:50:27 CDT 2005


On Wednesday, 18 May 2005 10:19 PM, chr at home.se wrote:
>Hi
>
>Here's an idea for the wiki calendar: As it is now, the monthly overview
>consists of a table with links to each day in e.g. May and June. Below
>this we have list that contains a single line from each of the days that
>have some text in them.
>
>The "problem" here is that multiple entries for a single day don't show up
>so well in the list. So here's the idea: Why not let the "tooltip" of each
>link in the table contain the content of the corresponding day?

Hm... Using the MarkupExtensions will give you a tooltip of either a 
heading or the <definition> part of a page that starts with a !... or
:term:definition. To do this, it strips out all html tags. So putting
out a whole page in a tool tip is problematic. What happens if the page
contains a table? The trick is to put the most important stuff at the
start of the page.

If there are multiple entries for a single day, I think the best we might
achieve is to generate a mini one level table of contents style tooltip, 
for example:

1. pay the bills 2. rent Buffy the Vampire Slayer 3. take cat to the vet

The page itself would contain:

!!!pay the bills

stuff

!!!rent Buffy the Vampire Slayer

more stuff

!!!take cat to the vet

even more stuff

This should be possible. However in a full calendar, it might be slow,
as it has to process the full text of every entry.

>
>This way, you could look at the overview, see that something is going to
>happen on a certain day and simply move the pointer over that link, which
>will make the "tooltip" appear showing what you're supposed to do that
>day.
>
>In relation to this, I have a second question. What controls what will 
>appear in the summary list? Is it the first line of each day, or is it the 
>first paragraph? Is there a directive you can use to specify exactly what 
>will appear for that day? (Perhaps using the (:description
>...:)?)

It shows up to the first line break or up to an invisible stop `. mark.


Another option would be to display a selected day as a mini-page...

The MarkupExtensions contain (:inote PageName:) markup, which
displays the contents of PageName as a stick-note in the current page.

So, we could make either the calendar itself, or preferably the list,
cause clicking an a day to redraw the current page, with the chosen
page 'inoted'. At the risk of digging a hole for myself, this is
probably trivial to implement.

Big pages (eg a large image) would cause this feature to behave poorly.
TINFL

Do any of these options appeal?

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list