Jump to content

Recommended Posts

Posted (edited)

Hello There, I have saw a post that was covering event-calendar with php, ajax and js. That was showing a monthly overview when I click on a "month" button or when I switch the month. And show the events on one particular date when I pick a day. Also, most events are kind of exhibitions and so they have a start date and an end date much later, and occur on each day in-between as well. So on the template I put two date picking fileds date_start and date_end. Is there an elegant way to select the events using the API? If yes, kindly help me out.

Thanks in Advance

Regards: 

 

Edited by kongondo
Moderator note: delete affiliate link; possibly spam.
Posted

Hi @Saleena Jhon

Something like that ?

$pages->find('template=event, date_start <= ' . $customDateStart . ', date_end >= ' . $customDateEnd . ', sort=date_start, sort=date_end');

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...