Categories:
Author:
Current version:
1.14
About It:
Get it:
Rate it:
Flag it:
chh_article_custom
The chh_article_custom plugin is an enhanced replacement for txp:article_custom and txp:article, offering features like context-sensitive operation, support for multiple categories/sections, hierarchical category searching, and advanced date/time selection.
This plugin provides two tags, chh_article_custom and chh_article. The latter makes available all of the attributes of the former and enables some features more akin to txp:article, namely support for paging, searches, and frontpage filtering.
With chh_article custom, you can—
- restrict
sectionto a comma-separated list of names and/or the currently browsed section. - restrict
categoryto a comma-separated list, a specific pair of categories, and/or the currently browsed category. - list articles that are in subcategories of any specified category.
- restrict articles to those published within a certain interval of time.
- perform MySQL’s Natural Lanuage or Boolean searches.
- output a simple wraptag/break article list or a full form-based list.
- do anything else txp:article_custom or txp:article can do.
Please see the info and documentation page for more information, including download links, the full features list, changes since the 0.4x branch, planned features, and example usage.
Initially released:
2004-06-22Posted here:
20 Nov 2004Article modified:
21 Jan 2006









If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (1)
Comment out this line:
$out[‘permlink’] = formatPermLink($ID, $Section);
and replace it with:
$out[‘permlink’] = permlinkurl_id($ID);
Then, in both places where you see the following line:
$article = doPermlink($article, $out[‘permlink’], $Title, $url_title);
Comment it out entirely.
To fix the date formatting, comment out these lines:
if ($comments_dateformat 'since') {
$comment_time = since($time + $timeoffset);
} else {
$comment_time = date($comments_dateformat, $time + $timeoffset);
}
and replace it with:
if ($comments_dateformat “since”) {
$comment_time = since($time + tz_offset());
} else {
$comment_time = safe_strftime($comments_dateformat,$time);
}
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.