Difference: TWikiMetaData (19 vs. 20)

Revision 202007-01-14 - Main.TWikiContributor

Line: 1 to 1
Deleted:
<
<
 
Changed:
<
<

TWiki Meta Data

>
>

TWiki Meta Data

Additional topic data, program-generated or from TWikiForms, is stored embedded in the topic text using META: tags

 
Changed:
<
<
Additional topic data, program-generated or from TWikiForms, is stored in META variable name/value pairs
>
>
 

Overview

Changed:
<
<
TWikiMetaData uses META variables to store topic data that's separate from the main free-form content. This includes program-generated info like FileAttachment and topic movement data, and user-defined TWikiForms info. Use META variables to format and display Meta Data.
>
>
By default, TWiki stores topics in files on disk, in a really simple and obvious directory structure. The big advantage of this approach is that it makes it really easy to manipulate topics from outside TWiki, and is also very safe; there are no complex binary indexes to maintain, and moving a topic from one TWiki to another is as simple as copying a couple of text files.

To keep eveything together in one place, TWiki uses a simple method for embedding additional data (program-generated or from TWikiForms) in topics. It does this using META: tags.

META: data includes program-generated info like FileAttachment and topic movement data, and user-defined TWikiForms info.

 

Meta Data Syntax

Line: 19 to 24
 
  • Each meta variable is on one line.
Changed:
<
<
  • \n (new line) is represented in values by %_N_ and " (double-quotes) by %_Q_%.
>
>
  • Values in meta-data are URL encoded so that characters such as \n can be stored.
 
Example of Format
Line: 151 to 156
  Note: SEARCH can also be used to render meta data, see examples in FormattedSearch and SearchPatternCookbook.
Deleted:
<
<

Known Issues

At present, there is no Meta Data support for Plugins. However, the format is readily extendable and the Meta.pm code that supports the format needs only minor alteration.

 Related Topics: DeveloperDocumentationCategory, UserDocumentationCategory
Deleted:
<
<
-- Contributors: TWiki:Main.JohnTalintyre, TWiki:Main.MikeMannix, TWiki:Main.PeterThoeny, TWiki:Main.CrawfordCurrie
 
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
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiMetaData