r5 - 10 Aug 2006 - 18:45:09 - PeterThoenyYou are here: TWiki >  Support Web > CalendarPluginGenericWebAndTopic
Tags:
, create new tag

Question

I have many pages in a couple of different webs where we keep notes and action items. I am trying to capture all dates and post them to one central location. I have started to add in a Calendar and label some of the tasks with the right syntax. The issue that I am getting is that I can't get the CalendarPlugin? to search all webs and topics. Is this a limitation of the Plugin or am I having issues with my intall?

If I type:

  • 1 Mon - Committee Meeting

%CALENDAR{ showweekdayheaders="1"}%

Then I get the calendar with the action item as expected. I then go to another page and try to pick up the calendar item from the previous page and all other calendar items with the following %CALENDAR{ web="*" topic="*" }% or %CALENDAR{ web=".*" topic=".*"}% etc but nothing is working

any suggestins?

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian
Web server: Apache 2
Perl version: 5.8.4
Client OS: WinXP?
Web Browser: Firefox 1.5
Categories: Search, Missing functionality
-- ScottWBlack - 09 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The CalendarPlugin can only process a single explicit topic, so the wildcard will not work. The topic referenced can %INCLUDE% other topics (recursively), but a wildcard will not work in the %INCLUDE%, either. Without modifying the CalendarPlugin, you would have to construct a topic that explicitly %INCLUDE%'d all the topics in which you have the calendar items noted.

-- DavidBright - 09 Aug 2006

I solved it by making a results page called "CalendarSearchResultsPage" I then put in the following searches (note, I did not cover exceptions yet...)

---++Single / Interval
%SEARCH{"^...\*.[0-9][0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
---++Yearly
%SEARCH{"^...\*.[0-9][0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[0-9].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[A-Z].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[A-Z].[0-9][0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[A-Z].[0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
---++Monthly
%SEARCH{"^...\*.[0-9].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[A-DF-Z].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
---++Weekly
%SEARCH{"^...\*.[E].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[E].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).[0-9][0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[E].(Mon|Tue|Wed|Thu|Fri|Sat|Sun).[0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
---++Periodic
%SEARCH{"^...\*.[A-Z][0-9].[0-9][0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
%SEARCH{"^...\*.[A-Z][0-9].[0-9].(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec).[0-9][0-9][0-9][0-9].-" regex="on" web="all" recurse="on" multiple="on" nonoise="on" format="$text"}%
---++Exception

I then tested it with another page where I put in the following events

   * 09 Dec 2002 - Expo 1
   * 02 Feb 2002 - 04 Feb 2002 - Vacation 2
   * 05 Jun - Every 5th of June 3
   * 2 Tue Mar - Every 2nd Tuesday of March 4
   * L Mon May - The last Monday of May 5
   * A 20 Jul 1969 - First moon landing 6
   * 1 Fri - Every 1st Friday of the month 7
   * L Mon - The last Monday of each month 8
   * 14 - The 14th of every month 9
   * E Wed - Every Wednesday 10
   * E Wed 27 Jan 2005 - Every Wednesday Starting 27 Jan 2005 11
   * E Wed 1 Jan 2005 - 27 Jan 2005 - Every Wednesday from 1 Jan 2005 through 27 Jan 2005 (inclusive) 12
   * E3 02 Dec 2002 - Every three days starting 02 Dec 2002 13
   * E3 12 Apr 2005 - 31 Dec 2005 - Every three days from 12 Apr 2005 through 31 Dec 2005 (inclusive) 14
-- ScottBlack - 10 Aug 2006

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo