Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r4  >  r3  ...
TWikiMetaData 4 - 08 Sep 2001 - Main.MikeMannix
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 106 to 106
 

Recommended Sequence

Changed:
<
<
There no absolute need for meta data variables to be in a specific order, however, it does for the following reasons:
  • Keep (form) fields in the order they are defined
  • Allow diff command to give output in a logically sensible order

These could be done in other ways, but this adds complexity

  • Order fields - definition could be read on each rendering (expensive)
  • Diff - render data before doing diff, has something to offer, but not likely to be available for next TWiki release
>
>
There is no absolute need for Meta Data variables to be listed in a specific order within a topic, but it makes sense to do so a couple of good reasons:

  • form fields remain in the order they are defined
  • the diff function output appears in a logical order

The recommended sequence is:

 
Deleted:
<
<
So the order is:
 
  • TOPICINFO
Changed:
<
<
  • text of topic
  • TOPICMOVED - optional
  • TOPICPARENT - optional
  • FILEATTACHMENT - 0 or more entries
  • FORM - optional
  • FIELD - 0 or more entries (FORM required)
>
>
  • text of topic
  • TOPICMOVED (optional)
  • TOPICPARENT (optional)
  • FILEATTACHMENT (0 or more entries)
  • FORM (optional)
  • FIELD (0 or more entries; FORM required)
 

Viewing Meta Data in Page Source

Line: 130 to 128
 

Rendering Meta Data

Changed:
<
<
Meta Data is rendered with the %META% variable. This is mostly used in the view, preview and edit scripts.
>
>
Meta Data is rendered with the %META% variable. This is mostly used in the view, preview and edit scripts.
 
Changed:
<
<
Current support is fairly basic:
>
>
Current support covers:
 
Variable usage: Comment:
%META{"form"}% Show form data, see Form Templates
%META{"attachments"}% Show attachments, exclude hidden
Changed:
<
<
Options for attachments:  
>
>
Options for Attachments:  
 
all="on" Show ALL attachments (including hidden)
%META{"moved"}% Details of any topic moves
%META{"parent [options]"}% Show topic parent
Line: 153 to 151
 

Known Issues

Changed:
<
<
There is currently no support for meta data for Plugins. However, the format is readily extendable and the Meta.pm code that supports the format needs only minor alteration.
>
>
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.
 -- JohnTalintyre? - 29 Aug 2001

Revision 4r4 - 08 Sep 2001 - 14:30:25 - MikeMannix?
Revision 3r3 - 07 Sep 2001 - 13:21:42 - MikeMannix?
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