Guide for global tags

This article is about global tag’s grammar, application and context of use.

Changed in V1.5: Tags for company start with "org_" now.

top

Environment Group


<$env_now(format:STRING)$>

Current system time. The default format is "yyyy-MM-dd"。 The format is showed a below.

Letter
Date or Time Component
Presentation
Example
G
Era designator
Text
AD
y
year
Year
1996; 96
M
Month in year
Month
July; Jul; 07
w
Week in year
Number
27
W
Week in month
Number
2
D
Day in year
Number
189
d
Day in month
Number
10
F
Day of week in month
Number
2
E
Day in week
Text
Tuesday; Tue
a
Am/pm marker
Text
PM
H
Hour in day (0-23)
Number
0
k
Hour in day (1-24)
Number
24
K
Hour in am/pm (0-11)
Number
0
h
Hour in am/pm (1-12)
Number
12
m
Minute in hour
Number
30
s
Second in minute
Number
55
S
Millisecond
Number
978
z
Time zone
General time zone
Pacific Standard Time; PST; GMT-08:00
Z
Time zone
RFC 822 time zone
-0800

top

Site Group


<$site_id$>

Website unique identification

<$site_name$>

Website name

<$site_domain$>

Website domain

<$site_root$>

Document root

<$image_root$>

Image root

<$charset$>

Charset

top

Organization Group


<$org_id$>

Organization's unique identification

<$org_name$>

Organization's name

<$org_code$>

Organization's code

<$org_attachman$>

Organization's contact person

<$org_address$>

Organization's address

<$org_zipcode$>

Organization's zipcode

<$org_phonenum$>

Organization's phone number

<$org_phone$>

Organization's contact phone(same as org_phonenum)

<$org_email$>

Organization's email

<$org_mobile$>

Organization's mobile phone

top

Topic Group


<$top_id$>

Calculate the unique identification of current topic according to context.

<$top_name$>

Calculate current topic’s name according to context.

<$top_alias$>

Calculate current topic’s alias name according to context.

<$top_code$>

Calculate current topic’s code according to context. Link alias names of all higher-level topics with “.”

<$top_url$>

Calculate the current topic's URL path according to context.
for example,there are topic named 'book' with code 'product.book',and the site root URL is 'http://www.jwebstar.com/',and then
<$top_url$> = http://www.jwebstar.com/product/book/

<$top_path$>

Calculate the current topic's path according to context.
for example,there are topic named 'book' with code 'product.book',and then
<$top_path$> = /product/book/

<$top_navigator$>

Calculate the current topic's position according to context.
for example,there are two topics:a topic named 'news' with code 'news' and another named 'demostic' with code 'demostic.news',then the topic named 'demostic' has top_navigator value as:
<a href="/news">news</a> > <a href="/news/demostic">demostic</a>

The Default split word between topics is " > ".That's say:<$top_navigator$> is same as <$top_navigator(" \\> ")$>
<$top_navigator(splitword:STRING)$> to use the split word specified,for example:
<$top_navigator("\\>\\>")$> means:use ">>" for split word.Note:NPS will convert ">" to "&gt;",and add \\ will turn off the conversation。,

<$top_nav$>

Same as top_navigator

<$top_parentid$>

Calculate the unique identification of current topic's parent according to context.

<$top_parentcode$>

Calculate the code of current topic’s parent according to context.

<$top_parentname$>

Calculate the name of current topic’s parent according to context.

<$top_parentalias$>

Calculate the alias of current topic’s parent according to context.

<$top_parenturl$>

Calculate the url of current topic’s parent according to context.

<$top_parentpath$>

Same as top_parenturl