This article is about global tag’s grammar, application and context of use.
Changed in V1.5: Tags for company start with "org_" now.
<$env_now$>
<$site_id$>
<$site_name$>
<$site_domain$>
<$site_root$>
<$image_root$>
<$charset$>
<$org_id$>
<$org_name$>
<$org_code$>
<$org_attachman$>
<$org_address$>
<$org_zipcode$>
<$org_phonenum$>
<$org_phone$>
<$org_email$>
<$org_mobile$>
<$top_id$>
<$top_name$>
<$top_alias$>
<$top_code$>
<$top_url$>
<$top_path$>
<$top_navigator$>
<$top_nav$>
<$top_parentid$>
<$top_parentname$>
<$top_parentalias$>
<$top_parentcode$>
<$top_parenturl$>
<$top_parentpath$>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 |
Website name
Website domain
Document root
Image root
Charset
Organization's name
Organization's code
Organization's contact person
Organization's address
Organization's zipcode
Organization's phone number
Organization's contact phone(same as org_phonenum)
Organization's email
Organization's mobile phone
Calculate current topic’s name according to context.
Calculate current topic’s alias name according to context.
Calculate current topic’s code according to context. Link alias names of all higher-level topics with “.”
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/
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/
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 ">",and add \\ will turn off the conversation。,
Same as top_navigator
Calculate the unique identification of current topic's parent according to context.
Calculate the code of current topic’s parent according to context.
Calculate the name of current topic’s parent according to context.
Calculate the alias of current topic’s parent according to context.
Calculate the url of current topic’s parent according to context.
Same as top_parenturl