Forum
Welcome, Guest
Please Login to access forum.
Re:Event booking passed events (1 viewing) 
Go to bottom
TOPIC: Re:Event booking passed events
#4296
John Dagelmore
Admin
Posts: 3873
User Online Now
Re:Event booking passed events Karma: 84  
Hello again.

If you prefer to remove past events of Eventbooking from the sitemap you can edit the SQL query adding an additional where condition as below:

Code:

SELECT `#__eb_events`.`title`, `#__eb_events`.`id`, `#__eb_event_categories`.`category_id` AS `catid`, `#__eb_categories`.`name` FROM `#__eb_events` JOIN `#__eb_event_categories` ON `#__eb_events`.`id` = `#__eb_event_categories`.`event_id` JOIN `#__eb_categories` ON `#__eb_event_categories`.`category_id` = `#__eb_categories`.`id` WHERE `#__eb_categories`.`published` = '1' AND `#__eb_events`.`published` = '1' AND `#__eb_events`.`access` IN {aid} AND (`#__eb_events`.`language` = '*' OR `#__eb_events`.`language` = {langtag}) AND `#__eb_events`.`event_date` > NOW() ORDER BY `#__eb_categories`.`ordering` ASC, `#__eb_events`.`ordering` ASC
where there is a new condition:
Code:

AND `#__eb_events`.`event_date` > NOW()
Please refer to the PDF docs about caching technologies there are detailed explanations. Only AJAX precaching requires manual refresh of the cached sitemap. Cheers, John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top