The current MetaDataRendering is inconsistent which causes several problems, as discussed in RenderMetaInOtherTemplates, InconsistentApiCallsInRendering, TopicChildren, MetadataSucks, SimplifyInternalMetaDataHandling, TWikiFormsDiffRendering. The official doc is in TWiki.TWikiMetaData.

Current spec:

  • %META{}% variables are rendered only in the template of the view script.
  • %ANYOTHER{}% variables are rendered in topic text and templates/skins

Proposed new spec:

  • Make this consistent, e.g. render all variable (meta and others) at all times (view, rdiff, oops etc).

At first, the implementation looks like straight forward:

  • Add TWiki::handleMetaTags to TWiki::handleCommonTags
  • Remove the extra call to TWiki::handleMetaTags in the view script.

There is one complication: TWiki::handleMetaTags expects the meta object, which is not known to TWiki::handleCommonTags. Further, the meta data has already been stripped from the text data when TWiki::handleCommonTags is called.

This enhancement should go hand in hand with SimplifyInternalMetaDataHandling.

-- PeterThoeny - 07 Sep 2003

Topic revision: r3 - 03 Jan 2006 - 08:26:46 - PeterThoeny
 
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