create new tag
, view all tags

Feature Proposal: Automaticly include header and footer in TWikiApplication


With TWikiApplication based on TWikiForms, a header is often needed in order to show at a glance the form's values (ie META:FIELD ).

For example, in the Support Web, every support request includes the SupportHeader topic : %INCLUDE{SupportHeader}%. The AskSupportQuestion topic uses WebTopicEditTemplate as a "templatetopic" in order to the line %INCLUDE{SupportHeader}% being finally inserted in every new support request's topic.

This is not easy for TWiki beginners and you can't easily add a header after the topic is created. Newcomers to TWiki could write code for a twikiapplication and not add the %INCLUDE{SomeHeader}% in the "templatetopic" from the start. Later on, when a header is needed, they will have to edit ( sed/a ..) a lot of topic in order to add %INCLUDE{SomeHeader}% at the right place.

Description and Documentation

I hope this improvement could help in refactoring or build new twikiapplication.

I suggest that we don't any more have to use %INCLUDE{FooBarHeader}% in form based topics : with a form called for example, "FooBarForm", attached to your TWikiApplication's topics (FooBar-00001 ... FooBar-00564 ), any topic having the form "FooBarForm" attached, would be displayed with the header "FooBarHeader"(if exists) and the footer "FooBarFooter" (if exists). No more INCLUDE..

This feature could be activated/desactivated in the "FooBarForm" topic using :

  • Set FORM_HEADER = "FooBarHeader"
  • Set FORM_FOOTER = "FooBarFooter"




WhatDoesItAffect: Documentation, Rendering, UI, Vars


-- Contributors: OlivierThompson - 2009-11-01


Topic revision: r1 - 2009-11-01 - OlivierThompson
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.