• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

These varaibles are removed in topics created from templates containing them. To test:

  1. Create a templatetopic that includes something like %STARTSECTION{name="mysection" type="section"}% with corresponding %ENDSECTION.
  2. Create a new topic using this templatetopic. The lines previously containing these two variables will be empty.

Trying to figure out what was going on, I read over Item1484 and the docs in TWikiVariables. Frankly, it looks like the last-minute push-pull over this feature produced a mish-mash, both in the coding and docs. But I guess that's a discussion to take up somewhere else (but where I'm not sure).

Right now, I'd just like to see it work. It brings TopicClassificationAddOn to it's knees when the template topics loose their named sections.


No, there is no confusion over the spec; only type="templateonly" sections should be removed on templatetopic instantiation. If other section types are being removed, it is clearly a bug.

On your "mish-mash" point; it is important that any spec is backed up with testcases. Without them, we can't be sure of anything. And the only arguments for not generating them are laziness and stupidity. In this case, it was my laziness.

SVN 8843

CC

Sorry if I was not clear, but the variables (and the variables only - not the text between) is being removed if any of the types are specified (or if none are specified which is suppose to default to type="section"). That's why I reporting this as a bug.

Regarding the mish-mash, from where I sit it doesn't look so much like a problem of specs as it does interpersonal issues producing a very "low-level" consensus (e.g. bad decisions).

LB

You were quite clear, and according to my testing SVN8843 fixes the problem. Am I missing something?

CC

Confirming that the fix you applied in SVN8842 fixed this as you noted in that change.

LB

Merged SVN 9065

CC

Closed with the release of 4.0.2

KJL

ItemTemplate
Summary STARTSECTION/ENDSECTION variables being stripped from templates
ReportedBy TWiki:Main.LynnwoodBrown
Codebase

SVN Range

AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 8842 8843 9065
TargetRelease patch
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2006-04-01 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback