Last updated: 2006-01-09 22:01
chh_article_custom special attributes
chh_article_custom works like and accepts the same attributes as the built-in txp:article_custom, with the following differences and enhancements:
listform="article-form"label="label text"labeltag="labeltag text"break="tag text"<br />. (Applies only when listform is unset)wraptag="wraptag text"class="class name"breakclass="class name"form="article-form"section="section1,section2"category="Dog,Chicken&Egg,Cat"children="y"category="?").
Note, however, that paired categories (like "Chicken&Egg") must
still match exactly; their subcategories are never searched.
time="time"past, future, any, or a pair of interval values in the form time="start-interval,end-interval". Default is past. Some examples of valid intervals: time="-2 months" (articles published in the last two months), time="-2 days,-1 day" (articles published yesterday) time="-0 days,+1 day" (articles that will be published tomorrow). Valid interval names are second, hour, day, month, and year.
Intervals are figured from the current time, plus or minus the
specified value. The start-interval is required and must contain all
three elements: +/-, a number value, and an interval name. The
end-interval is optional, with the default being the current date and
time. Articles are matched beginning with and including the start date
up to be not including the end date.
month="month descriptor"month="-1" lists articles published last month. That is, if this is January, it will list all articles from December. month="+1" would list articles to be published in February.
day="day descriptor"day="-1" lists articles published from midnight to 11:59pm yesterday. day="+1" lists articles to be published tomorrow.
sortby="SmartTitle"titlearticles="wordlist"titlearticles="A,An,The". Note: The word list is case-sensitive.
CustomFieldName="keyword(s)"My_Keywords="textpattern".
strict_keywords="y"strict_keywords="y" forces the keywords to match exactly.
chh_article_custom inherited attributes
All of the following txp:article_custom attributes are also available.
id="integer"- The id# of any live article.
sortby="sort by"-
Sort retrieved articles. Available values:
ID(article id#),AuthorID(author),LastMod(date last modified),LastModID(author of last modification),Posted(date posted),Title,Category1,Category2,comments_count,Status,Section,Keywords,Image(article image id#), andcustom_1throughcustom_10. Please note that multiple attributes can be used, separated with a comma. sortdir="sort direction"-
Sort direction of retrieved articles. Available values:
asc(first to last), ordesc(last to first). limit="integer"-
The number of articles to display. Default is
10. offset="integer"-
The number of articles to skip. Default is
0 excerpted="excerpt value"-
Restrict by excerpt value. Available values:
y(containing an excerpt) orn(not containing an excerpt). author="author's name"- Restrict to a specified author.
month="yyyy-mm"- Restrict to articles from the specified month.
keywords="keyword(s)"- Restrict to articles with specified keyword(s). Put multiple keywords in a comma-separated list.
status="status"-
Restrict by status. Available values:
draft,hidden,pending,live,sticky. allowoverride="integer"-
When set to
0, disables override forms for the generated article list(does not effect individual articles). Available values:1or0.