Home Articles Videos & Tutorials Advanced calendar
Rate this article
0
More from Videos & Tutorials

Advanced calendar

Filed under:

This calendar is based on archive calendar, but with more sophisticated search capabilities. It uses search result page to display matching articles.

You can customize your calendar output by adding specific filters to generate date restriction.

Code:

<vte:box module="box_article_calendar">
    <vte:params>
        <vte:param name="search_cid" value="21" />
    </vte:params>     

In this example calendar will only show dates with articles published in category with id 21.

Code:

<vte:box module="box_article_calendar">
    <vte:params>
        <vte:param name="search_user_id" value="1" />
    </vte:params>

Here you get only articles published by user with id 1.

Basically this calendar widget can use most of article list filters.

Note: Tpl file should go to in templates/xhtml/box/ folder

Don't forget to register the module in your configuration table. SQL instructions are indluded in PHP file provided for download. Alter the table name to match your database settings.

Advanced Calendar

cron