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



Comments (3 posted):
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.