Difference: TWikiMetaData (16 vs. 17)

Revision 172005-03-27 - Main.TWikiContributor

Line: 1 to 1
Deleted:
<
<
META TOPICPARENT name="WebHome"
 
Changed:
<
<
>
>
 

TWiki Meta Data

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

Line: 25 to 24
 
Example of Format

Changed:
<
<
%META:TOPICINFO{version="1.6" date="976762663" author="PeterThoeny" format="1.0"}%
>
>
%META:TOPICINFO{version="1.6" date="976762663" author="LastEditorWikiName" format="1.0"}%
  text of the topic %META:TOPICMOVED{from="Codev.OldName" to="Codev.NewName"
Changed:
<
<
by="JohnTalintyre" date="976762680"}%
>
>
by="TopicMoverWikiName" date="976762680"}%
 %META:TOPICPARENT{name="NavigationByTopicContext"}% %META:FILEATTACHMENT{name="Sample.txt" version="1.3" ... }% %META:FILEATTACHMENT{name="Smile.gif" version="1.1" ... }%
Line: 124 to 123
 

Viewing Meta Data in Page Source

Changed:
<
<
When viewing a topic the Raw Text link can be clicked to show the text of a topic (i.e., as seen when editing). This is done by adding raw=on to URL. raw=debug shows the meta data as well as the topic data, ex: debug view for this topic
>
>
When viewing a topic the Raw Text link can be clicked to show the text of a topic (i.e., as seen when editing). This is done by adding raw=on to URL. raw=debug shows the meta data as well as the topic data, ex: debug view for this topic
 

Rendering Meta Data

Meta Data is rendered with the %META% variable. This is mostly used in the view, preview and edit scripts.

Changed:
<
<
Note: Rendering meta data is currently not supported in topic text. As a workaround, use FormattedSearch on the current topic only to render form fields.
>
>
You can render form fields in topic text by using the FORMFIELD variable. Example:
%FORMFIELD{"TopicClassification"}%
For details, see TWikiVariables#VarFORMFIELD.
  Current support covers:

Variable usage:
<-- -->
Sorted descending
Comment:
%META{"formfield"}% Show form field value. Parameter: name="field_name". Example:
%META{ "formfield" name="TopicClassification" }%
%META{"form"}% Show form data, see TWikiForms.
Changed:
<
<
| %META{"attachments"}% | Show attachments, except for hidden ones. Options:
>
>
| %META{"attachments"}% | Show attachments, except for hidden ones. Options:
  all="on": Show all attachments, including hidden ones. |
%META{"moved"}% Details of any topic moves.
| %META{"parent"}% | Show topic parent. Options:
Line: 152 to 153
  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.
Changed:
<
<
-- TWiki:Main.JohnTalintyre - 29 Aug 2001
-- TWiki:Main.MikeMannix - 03 Dec 2001
-- TWiki:Main.PeterThoeny - 15 Aug 2004
>
>
Related Topics: DeveloperDocumentationCategory, UserDocumentationCategory
 
 
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