r1 - 08 Jul 2006 - 02:01:00 - PeterThoenyYou are here: TWiki >  Codev Web > AutomaticLinkLabelBasedOnHeading > ContentAccessSyntax > ModifyContentAccessSyntax
Tags:
ajax 1 Add my vote for this tag, twiki_application 1 Add my vote for this tag, web_application 1 Add my vote for this tag, , create new tag

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

Discussion

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: 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