Tags:
create new tag
view all tags

Question

This is a standard how do i do this question. if this isn't the right place to ask it please let me know.

I have recently taken over our twiki support and have been asked to create a new group calendar topic where events can be submitted via a form and then displayed in the topic when a user selects a date on a calendar.

TWiki.pm (Version: TWiki-4.2.0, Tue, 22 Jan 2008, build 16278) found

I'm fairly confident this can be done. However, I am unsure of how to store and retrieve the data without creating a new topic for every new event. Is there a way to store and retrieve the data in a single topic document? If so is there an simple example of storing and retrieving data from a topic document. I would like to be able to store and retrieve the data in the JSON format so an example using this would be very helpful.

Thanks,

JoeGainey

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: ActionTrackerPlugin, AliasPlugin, BlogPlugin, BreadCrumbsPlugin, CalendarPlugin, CommentPlugin, DBCachePlugin, DBIQueryPlugin, EditTablePlugin, ExtendedSelectPlugin, FilterPlugin, FlexWebListPlugin, GaugePlugin, GluePlugin, HeadlinesPlugin, IfDefinedPlugin, ImagePlugin, InterwikiPlugin, JSPopupPlugin, NatSkinPlugin, PreferencesPlugin, RedDotPlugin, RenderListPlugin, RestPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, TagCloudPlugin, TimeSincePlugin, TinyMCEPlugin, TwistyPlugin, UserInfoPlugin, WysiwygPlugin
Server OS: SunOS 5.10 Generic_125101-10 i86pc i386 i86pc
Web server: Apache/2.2.8 (Unix)
Perl version: This is perl, v5.8.8 built for i86pc-solaris
Client OS: MS Windows XP SP2
Web Browser: Firefox 2.0.0.14, IE 6
Categories: Forms, Javascript

-- JoeGainey - 03 Jun 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You already have CalendarPlugin installed. It will retrieve all properly formatted events with a topic.

You shouldn't have to create a topic for each new item. It's easy to create a form that adds items to a list with CommentPlugin. See CalendarPluginAddEventCommentPluginTemplate and a demo.

To display events in the topic when a user selects a date on a calendar, see CalendarPluginWithJSCalendarContrib. In that example, dates with events are highlighted, and clicking on a date displays all events in the selected week.

JSON might be the tricky part. Fred Morris modified the plugin's parser to handle events listed in a table (04 Oct 2006 at CalendarPluginDev). Perhaps it's just a matter of swapping that out for a JSON parser?

-- SeanCMorgan - 04 Jun 2008

It would be nice if this feature gets implemented in the CalendarPlugin. I added an enhancement request note in the CalendarPluginDev topic.

-- PeterThoeny - 04 Jun 2008

I have seen a top on how to integrate a week month calendar using the CalendarPlugin and the TimeTablePlugin HowToIntegrateWeekAndMonthCalendar

However this does not seem to something we can just drop in.

i was able to just use the CalendarPlugin/CommentPlugin to create/show events.

-- JoeGainey - 12 Jun 2008

I checked out the CalendarPluginWithJSCalendarContrib which seems very promising. My only issue with the example is where the events come from. In this case the events are pre programmed with javascript. I am looking for someone with information on how to load, add, modify, and delete events. This seems to be the most painful part of the user experience as right now the users have to edit a topic and enter the calendar information by hand.

-- JoeGainey - 12 Jun 2008

Then you might want to go back to Fred Morris's modifiication that I mentioned above. With the events listed in a table, you could use the user-friendly EditTablePlugin to add, modify or delete rows in the table.

-- SeanCMorgan - 12 Jun 2008

Closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 02 Aug 2008

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-08-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.