You are here: Foswiki>Tasks Web>Item5963 (22 May 2012, ArthurClemens)Edit Attach

Item5963: Tagmeplugin enhancement: prefix & suffix

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: TagMePlugin
Branches:
Reported By: TWiki:Main.ColasNahaboo
Waiting For:
Last Change By: ArthurClemens

Enhancement to Tag Me Plugin: prefix and suffix

I have added simple options to the "showalltags" action:
| prefix="..." | Printed before the list of tags if it is not empty, $n can be used for newlines. e.g: prefix="Tags: <i>" | "" |
| suffix="..." | Printed after the list of tags if it is not empty, $n can be used for newlines. e.g: suffix="</i>" | "" |
This allows to not show anything, useful on public sites, and to only show tags on "content" pages, not admin ones.

See http://twiki.org/cgi-bin/view/Plugins/TagMePluginDe, comments at 22 Aug 2008

-- TWiki:Main/ColasNahaboo - 26 Aug 2008

Sven wrote:
mmm, I suspect that these should be called header and footer - to be consistent with other TML (SEARCH seems to have header, I thought it had footer..)

This is going to become more important once the extract formatting twiki5 feature is done - consistency will become simpler smile
I deliberately chose another name, as it seems to have different semantics: header/footer is always added (and even in the middle of subparts) prefix and suffis is only added is the content is nonempty

But you are right, I may be splitting hairs here (and raising the nerdometer :-). By grepping, it seems that only the Twisty and Skills plugins use prefix/suffix names.

I will make it header/footer

-- TWiki:Main.ColasNahaboo - 27 Aug 2008

This has long been implemented.

-- ArthurClemens - 22 May 2012

ItemTemplate edit

Summary Tagmeplugin enhancement: prefix & suffix
ReportedBy TWiki:Main.ColasNahaboo
Codebase
SVN Range TWiki-5.0.0, Mon, 18 Aug 2008, build 17431
AppliesTo Extension
Component TagMePlugin
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins TWikirev:17460
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r5 - 22 May 2012, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy