On Tuesday, October 20, 2020 at 9:11:00 AM UTC-7, Eric Shulman wrote: > > On Tuesday, October 20, 2020 at 8:18:03 AM UTC-7, Anthony wrote: >> >> However, I've noticed something else that happened originally, then was >> 'fixed' but is happening again. When I click on a day in the calendar >> display where there's an event, say a birth, that's included in an events >> tagged tiddler called 'Born on this Day' then the link goes to a tiddler >> called 'Born on this Day: Frances Hamilton Arnold (1956-)' (say), which >> does not exist. Rather I'd hope it went to a tiddler called 'Frances >> Hamilton Arnold (1956-)' that does exist and has all the data that >> generates all the events etc. for that individual. This is what happened >> before the latest two-line change to getevents_listed(). >> > > As you've noted, an event is linked to a tiddler using "EventList: > description text" as the title. This is so that if the same description is > used in separate EventLists, they don't link to the same tiddler. >
Upon re-examination of the way events are being linked, I realized that links from getevents_linked() were actually inconsistent with the way links from getevents_ics() and getevents_timeline() are being handled. In the latter two cases, the link is to the event_text, without including the event_source in the title. So... despite the reasons given in my previous explanation, I have reverted the code in getevents_linked() to its previous behavior so that **any* type of event (listed, ics, or timeline) now consistently link to the event_text, without adding the event_source as a prefix.* This means that, in the example I gave, "Bob's Events: My Birthday" and "Jim's Events: My Birthday" will, by default, link to the same "My Birthday" title. To override this default handling, you can provide explicit alternative titles using the added "|TiddlerTitle" syntax. In "Bob's Events", you would write: ....MMDD;My Birthday|Bob's Birthday which will be shown as "Bob's Events: My Birthday", and links to "Bob's Birthday" In "Jim's Events", you would write: ....MMDD;My Birthday|Jim's Birthday which will be shown as "Jim's Events: My Birthday", and links to "Jim's Birthday" In your "Born on this Day" EventList, you can now omit the extra "|TiddlerTitle" syntax and just use: ....MMDD;Frances Hamilton Arnold (1956-) and for a generated EventList, you could write: <$list filter="[has[birth-date]]"> <$view field="birth-date" format="date" template="....0MM0DD" />;< <currentTiddler>><br> </$list> Sorry for the "shifting sands", but this updated logic is now A) more consistent B) requires less data for the default case -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/93aedd99-a1ff-4f44-a057-343413a76c65o%40googlegroups.com.

