How filter event page type by month?

Vuthy Sok asked on June 5, 2018 05:09

I would like to know how to display page type note by filter month.

Here my navigation list

APR - JUN 2018 
JAN - MAR 2018
OCT - DEC 2017 
JUL - SEP 2017 
OLDER

Do you have any idea to get list of navigation archive like above?

Also when I click on each month will show content follow that I select

Thanks Vuthy

Recent Answers


Rui Wang answered on June 5, 2018 20:50 (last edited on June 5, 2018 22:26)

If you have a field that's storing the date of the page, then you can use where condition like EventDate >= '4/1/2018' AND EventDate < '7/1/2018' to filter the list of items.

And your URL maybe, /events?startrange=4-1-2018&endrange=7-1-2018 then you use querystring macro to parse them. be sure to sanitize the query to prevent SQL injection.

1 votesVote for this answer Mark as a Correct answer

Vuthy Sok answered on June 6, 2018 05:30

Thanks Rui Wang, It seen be not dynamic. It possible have code in repeater for generate list of month

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on June 6, 2018 14:31

If you can think of a easy logic, then it may be possible. I can't think of one.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.