Tags
Rate this article
2.50
  • email Email to a friend
  • print Print version
  • Plain text Plain text
Browsing: Home » How-Tos

Advanced calendar widget

This calendar widget 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. 

 

change date: March 20, 2008 You must be logged in to download this resource.

Comments (3 posted):

Abdullah &Atilde;&sect;elik on December 13, 2007
avatar
I still couldnt understand the registering module in the configuration table
Carlos Cabezas L&oacute;pez on January 05, 2008
avatar
Me neither.
Vivvo Demo on January 07, 2008
avatar
To register module in configuration table, execute this SQL:

INSERT INTO `tblConfiguration` ( `id` , `variable_name` , `variable_property` , `variable_value` , `module` , `domain_id` , `reg_exp` )
VALUES (NULL , 'box_article_calendar', 'class_name', 'box_article_calendar', 'modules', '1', NULL),
(NULL , 'box_article_calendar', 'file', 'my_boxes.php', 'modules', '1', NULL);

You must be registered member of Vivvo.net to post a comment.