Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
1.14
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

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 section to a comma-separated list of names and/or the currently browsed section.
  • restrict category to 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.

Article Request Count:
Initially released:
2004-06-22
Posted here:
20 Nov 2004
Article 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:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

santheo made some edits to this plugin to make permalinks work properly in RC3:

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.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern