Guide for article tags

Below explains article tags’ grammar, application and context of use.

Attention for the topic of self-defined data source:

1.only <$art_id$>、<$art_title$>、<$art_url$>、<$art_createdate$> and <$art_publishdate$> is valid among all article tags below. The quotation value of other article tags is null.

2.For other fields’ usage, please refer to guide for RS tags.

Since V1.5, page break tag supported for very long page, so, people could create a page break during writing an article. There're two kinds of tag, one is called FCKEditor style and another is called NPS style:
    FCKEditor style: <div style="page-break-after: always"><span style="display: none">&nbsp;</span></div>
    NPS style: <!--pagebreak-->

Once these tags found in the article content, NPS would generate one more page during passing the tag <$art_content$> of article template, but not <$art_content(90,"...")$> nor <$art_content$> of page template.

The default pagination style is onebyone style, which would show all pages generated one by one, It looks like that:


Please Call the function SetPageBreakStyle4Content(String style) to reset the style. Below shows how to reset your style, for example, modern style. For more details for style, please refer to guide for RS tags
    <%
        SetPageBreakStyle4Content("modern");
    %>

top

<$art_id$>

Article’s unique identifier

top

<$art_title(wordcount:int,append:string)$>

Article title
<$art_title$>:return to the entire title。
<$art_title(50)$>:Only return to title’s 50 characters, the characters more the 50 will be truncated.
<$art_title(50,"..."$>:Only return to title’s 50 characters.The characters more the 50 will be truncated,and "..." appended.
for example:
art_title="this is a test string"
<$art_title(4)$>="this"
<$art_title(4,"...")$>="this..."

top

<$art_subtitle(wordcount:int,append:string)$>

Article subtitle
<$art_subtitle$>:<$art_subtitle$>:return to the entire subtitle
<$art_subtitle(50)$>:only return to subtitle’s 50 characters, the characters more the 50 will be truncated.
<$art_subtitle(50,"...")$>:only return to subtitle’s 50 characters.The characters more the 50 will be truncated and "..." appended.

top

<$art_abtitle(wordcount:int,append:string)$>

Article abbreviated title
<$art_abtitle$>:<$art_abtitle$>:return to the entire abbreviated title
<$art_abtitle(50)$>:only return to abbreviated title’s 50 characters, the characters more the 50 will be truncated.
<$art_abtitle(50,"...")$>:only return to abbreviated title’s 50 characters.The characters more the 50 will be truncated and "..." appended.

top

<$art_url$>

Article’s url path after publishing.

top

<$art_author$>

Article’s author.

top

<$art_source(wordcount:int,append:string)$>

Article’s source
<$art_source$>:return to article’s source
<$art_source(50)$>:only return to 50 characters of article’s source, the characters more the 50 will be truncated.
<$art_source(50,"...")$>:Only return to 50 characters of article's source.The characters more the 50 will be truncated,and "..." appended.

top

<$art_imgurl$>

Guided Image

top

<$art_tag(wordcount:int,append:string)$>

Tag or category
<$art_tag$>:return the tag
<$art_tag(50)$>:only return to 50 characters of tag, the characters more the 50 will be truncated.
<$art_tag(50,"...")$>:Only return to 50 characters of tag.The characters more the 50 will be truncated,and "..." appended.

top

<$art_validdays$>

Valid period. The return value is “days”(integer). “0” means permanently valid.

top

<$art_important$>

Article’s importance. The return value is integer. “0”means ordinary. “1” means important. “2”means very important.

top

<$art_creator$>

Creator’s ID number

top

<$art_creatorcn$>

Creator’s name

top

<$art_creatorfn$>

Creator’s full name. Format: Name (department name/unit name)

top

<$art_publishdate(format:string)$>

Publishing date. Format can be combined by using parameters 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
Pattern letters are usually repeated, as their number determines the exact presentation:
For parsing, if the number of pattern letters is more than 2, the year is interpreted literally, regardless of the number of digits. So using the pattern "MM/dd/yyyy", "01/11/12" parses to Jan 11, 12 A.D.
For parsing with the abbreviated year pattern ("y" or "yy"), SimpleDateFormat must interpret the abbreviated year relative to some century. It does this by adjusting dates to be within 80 years before and 20 years after the time the SimpleDateFormat instance is created. For example, using a pattern of "MM/dd/yy" and a SimpleDateFormat instance created on Jan 1, 1997, the string "01/11/12" would be interpreted as Jan 11, 2012 while the string "05/04/64" would be interpreted as May 4, 1964. During parsing, only strings consisting of exactly two digits, as defined by Character.isDigit(char), will be parsed into the default century. Any other numeric string, such as a one digit string, a three or more digit string, or a two digit string that isn't all digits (for example, "-1"), is interpreted literally. So "01/02/3" or "01/02/003" are parsed, using the same pattern, as Jan 2, 3 AD. Likewise, "01/02/-3" is parsed as Jan 2, 4 BC.

top

<$art_createdate(format:string)$>

Create date. For the format’s mode, please refer to the tag of art_publishdate.

top

<$art_previd$>

Previous article ID#. If not exists, return null.

top

<$art_prevtitle$>

Previous article's title. If not exists, return null.

top

<$art_prevurl$>

Previous article's URL. If not exists, return null

top

<$art_prevtopic$>

Previous article's topic. If not exists, return null.
You can fetch all global tags as following:
<$art_prevtopic.top_name$> will return the previous article's topic name

top

<$art_prev$>

Previous article. If not exists, return null.
You can fetch article tags as following:
<$art_prev.art_publishdate$> will return the publish date of the previous article.
Attention pls:
<$art_previd$>=<$art_prev.art_id$>, but it's faster because <$art_prev$> will load all datas from Oracle and that will resume some time. So, if you try to get the id only, <$art_previd$> is highly recommended.

top

<$art_nextid$>

Next article ID#. If not exists, return null.

top

<$art_nexttitle$>

Next article's title. If not exists, return null.

top

<$art_nexturl$>

Next article's url. If not exists, return null.

top

<$art_nexttopic$>

Next article's topic. If not exists, return null. You can fetch all global tags as following:
<$art_nexttopic$.top_name$> will return the next article's topic name

top

<$art_next$>

Next article. If not exists, return null.
You can fetch article tags as following:
<$art_next.art_publishdate$> will return the publish date of the next article.
Attention pls:
<$art_nextid$>=<$art_next.art_id$>, but it's faster because <$art_next$> will load all datas from Oracle and that will resume some time. So, if you try to get the id only, <$art_nextid$> is highly recommended.

top

<$art_abstract$>

Article Abstract. If abstract is empty, and then <$art_abstract$> equals to <$art_content("flat",90,"...")$>;

top

<$art_content(format:string,wordcount:int,append:string)$>

Article content.
<$art_content$>:Return to the whole article marked with HTML.
<$art_content("flat")$>:Return to the plain text which neglect the tags of script、title、head、link、style.
<$art_content("flat",50)$>:Return to 50 characters of the plain text.
<$art_content("flat",50,"...")$>:Return to 50 characters of the plain text.The characters more the 50 will be truncated,and "..." appended.

top

<$art_content(wordcount:int,append:string)$>

Article content. <$art_content$>:Return to the whole article marked with HTML
<$art_content(50)$>:Return to the plain text which is less than fifty characters and neglect the tags of script、title、head、link、style. One Chinese character will be counted as one character.
<$art_content(50,"...")$>:Return to 50 characters of the plain text.The characters more the 50 will be truncated,and "..." appended.