Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r17  >  r16  ...
TWikiMetaData 17 - 27 Mar 2005 - 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: Comment:
%META{"form"}% Show form data, see TWikiForms.
%META{"formfield"}% Show form field value. Parameter: name="field_name". Example:
%META{ "formfield" name="TopicClassification" }%
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
 

Revision 17r17 - 27 Mar 2005 - 13:14:15 - TWikiContributor
Revision 16r16 - 15 Aug 2004 - 09:54:47 - PeterThoeny?
This site is powered by the TWiki collaboration platform.
All material on this collaboration platform is the property of the contributing authors.
All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
Syndicate this site RSSATOM