Item13872: RFE - Add TOPICTITLE support as per TWiki
Priority: Enhancement
Current State: Duplicate
Released In: 2.2.0
Target Release: minor
ref:
TWiki VarTOPICTITLE
I created something like this in a local cover at Yahoo! in 2007. I named mine
PAGETITLE
.
Many of my users greatly appreciated this addition, especially in wiki applications. ("Project Kumquat QA Meeting" being easier to remember in bookmarks than Proj00017.)
From the TWiki docs:
TOPICTITLE -- title of a topic
- The topic title is defined by, in order of sequence:
- form field named "Title",
- topic preference setting named TITLE,
- I have requested that TWiki add support here for the firs H1 header on a page
- topic name.
- Syntax:
%TOPICTITLE%
or %TOPICTITLE{ topic="TopicName" }%
- Supported parameters:
Parameter: | Description: | Default: |
"..." or topic="..." | Topic to get the title from. Can be of form TopicName or Web.TopicName . | Current topic |
encode="html" | Encode special characters into HTML entities. If a TOPICTITLE is passed into an HTML form field it should be encoded as "html" . Additional encodings: encode="quote" , encode="moderate" , encode="safe" , encode="entity" and encode="url" . See ENCODE for details. | "" (no encoding) |
- Example:
%TOPICTITLE{Projects.SushiProject}%
returns Sushi Project
assuming the topic has a form field named "Title" with value "Sushi Project"
- Expands to:
%TOPICTITLE{topic="Item13872"}%
--
VickiBrown - 27 Nov 2015
See
Development.TopicDisplayName. Already available with
Extensions.DBCachePlugin.
--
MichaelDaum - 27 Nov 2015
Duplicate of
Item13835
--
GeorgeClark - 20 Jan 2017