Mecha CMS

Mecha CMS blog and documentation.

Filtering Posts and Responses

Updated: Sunday, 07 August 2016

About filtering pages.

Posts

Filter by Tag ID

Get::articles('DESC', 'kind:2');
Get::articles('DESC', 'kind:2,3,4');

Filter by Time

Get::articles('DESC', 'time:2014');
Get::articles('DESC', 'time:2014-11');
Get::articles('DESC', 'time:2014-11-10');

Filter by Slug

Get::articles('DESC', 'slug:lorem');
Get::articles('DESC', 'slug:lorem-ipsum');

Filter by Keyword

Get::articles('DESC', 'keyword:lorem');
Get::articles('DESC', 'keyword:lorem-ipsum');

This also applies to Get::pages():

Filter by Time

Get::pages('DESC', 'time:2014');
Get::pages('DESC', 'time:2014-11');
Get::pages('DESC', 'time:2014-11-10');

Filter by Slug

Get::pages('DESC', 'slug:lorem');
Get::pages('DESC', 'slug:lorem-ipsum');

Filter by Keyword

Get::pages('DESC', 'keyword:lorem');
Get::pages('DESC', 'keyword:lorem-ipsum');

Responses

Added since version 1.2.0.

Filter by Post Time

Get::comments('DESC', 'post:2015-10-14');

Filter by Response Time

Get::comments('DESC', 'time:2015-10-27');

Filter by Response’s Parent Time

Get::comments('DESC', 'parent:2015-10-23');

Filter by Post ID

Get::comments('DESC', 'post:1444791852');

Filter by Response ID

Get::comments('DESC', 'time:1445937056');

Filter by Response’s Parent ID

Get::comments('DESC', 'parent:1445583518');
Donation and Email Subscription