ajax1Add my vote for this tag twiki_application1Add my vote for this tag web_application1Add my vote for this tag create new tag
, view all tags

Content Access Syntax to Modify Content

The ContentAccessSyntax has suggestions on how to query topic content based on a proposed TopicObjectModel. This is a useful feature for TWikiApplications to display selected content where needed.

Borrowing the idea from the DOM (Document Object Model), we can spin this idea further with a way to modify content. There are two parts to it:

  • Modify DOM temporarily at page view time
  • Modify topic content persistently

Modify DOM Temporarily at Page View Time

Use cases:

  • AJAX applications can use this feature to modify displayed topic content on the fly.
  • A long topic could display a "please wait while page is loading" on top, and remove it when done

Example, using syntax proposal 6:

  • {{this:heading[0].text.set=New heading set now}}
  • {{this:form.field.name.TopicSummary.text.set=This is the new summary}}

Modify Topic Content Persistently

Use cases:

  • AJAX applications can use this feature to modify topic content persistently. Example:
    • A SEARCH can display a table, each row showing data from a form attached to a topic. Editing and saving cells could be done across topics.
  • The CommentPlugin template for the Support questions could be modified to show a picklist with the support status. Adding a comment and closing the question can be a one step action.

Example, using syntax proposal 6:

  • {{this:heading[0].text.save=New heading set now}}
  • {{this:form.field.name.SupportStatus.text.save=AnsweredQuestion}}

-- Contributors: PeterThoeny - 08 Jul 2006


Pinging this old proposal as a useful and powerful enhancement.

-- PeterThoeny - 2010-07-29

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-07-29 - 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.