Tags:
create new tag
, view all tags
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 - 2006-01-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.