Hi,
I'm modifying your event calendar example to work with my own site and I'm having an issue.
So far I have managed to get the small calendar to work, but the issue comes when I click on a date with a linked event to drill down to.
If I click on a calendar day, it always seems to open the events.php as a list, rather than a page. The query string is "events.php?d=20120120" and for this page:
k_is_list: 1
k_is_page: 0
k_is_archive: 1
Is this because events.php is trying to list all events for that date? I'm unlikely to have more than one event per date, so ideally would like to be able to do the following when the user clicks on a date in the small calendar:
Pseudo Code
The difficulty is this bit --> <link to events.php showing the only event for that day> I don't know what variable to use to link to just that page.
Many thanks for your help.
Mark
I'm modifying your event calendar example to work with my own site and I'm having an issue.
So far I have managed to get the small calendar to work, but the issue comes when I click on a date with a linked event to drill down to.
If I click on a calendar day, it always seems to open the events.php as a list, rather than a page. The query string is "events.php?d=20120120" and for this page:
k_is_list: 1
k_is_page: 0
k_is_archive: 1
Is this because events.php is trying to list all events for that date? I'm unlikely to have more than one event per date, so ideally would like to be able to do the following when the user clicks on a date in the small calendar:
Pseudo Code
- Code: Select all
if k_count_entries = 1
<link to events.php showing the only event for that day>
else if k_count_entries >1
<link to events.php showing all events for that day>
/*I'm guessing this is what it is doing now */
else
<no links to display>
The difficulty is this bit --> <link to events.php showing the only event for that day> I don't know what variable to use to link to just that page.
Many thanks for your help.
Mark