Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Extensions / Navigation & Structure / Comlist

Generates commented resources list

Comlist Plugin shows commented pages, polls etc.

You can use it to generate last commented pages/polls/etc. list, most commented pages/polls/etc. list and so on.

As a Pagelist Plugin, Comlist is available via {PHP|comlist} callback from TPL file with the following settings:

$tpl - Template code (TPL file name without ".php" at the end)
$items - Number of items to show. 0 - all items
$order - Sorting order (SQL)
$condition - Custom selection filter (SQL)
$area - Custom comments areas list semicolon separated (both pages and polls by default)
$bwlist_cat - White and black lists of page categories. Mark categories with + or - to include them to the white or black list and separate with semicolon symbol. (+white_cat_1;...;+white_cat_N;-black_cat_1;...;-black_cat_Y;) Order does not matter.
$sub - Include subcategories in to the black and white lists of pages categorys TRUE/FALSE
$pagination - Pagination parameter name for the URL, e.g. 'pcm'. Make sure it does not conflict with other paginations. Leave it empty to turn off pagination

return string Parsed HTML


{PHP|comlist('comlist', '10', 'com_maxdate DESC', '', 'page;polls', '', 'true')}

shows 10 last commented pages and polls in all pages categorys without pagination

{PHP|comlist('comlist', '5', 'com_maxdate DESC', '', 'page', '+news;-sport', 'TRUE', 'pcl')}

shows 5 last commented pages in 'news' categorys without pages in 'news/sport' category with pagination

{PHP|comlist('comlist', '5', 'com_count DESC', '', '', '', 'TRUE', 'pcl')}

shows 5 most commented resources (pages,polls, etc.) in all availible areas with pagination

{PHP|comlist('comlist', '5', 'com_count DESC', '', '', '+articles', 'FALSE')}

shows 5 most commented pages of the root articles category without pagination

You can turn on/turn off caching and caching for authorized users in administration panel.

Cache is sensitive to TPL code, location, language and page number.

No comments yet
Only registered users can post new comments