[SOLVED] Calendar browsing question
Dear all,
I am using a calendar on my site to show events. It is somewhere in the middle of the page. When I click next month, the page is reloaded with the appropriate data, but the page is shown from the top.
Is it possible to add a ref or something so the page is located at the position of the calendar?
Thanks,
Paul
Re: Calendar browsing question
Hey Paul,
One thing you could do is ID your calendar module (let's say you ID'd it "calendar").
You can edit your calendar template to append an anchor link on the end.
Assuming you are using cal_default.tpl, you would modify the prev/next links like so:
Code:
href="<?php echo $this->prevHref; ?>#calendar"
href="<?php echo $this->nextHref; ?>#calendar"
What that SHOULD do is take you to the prev/next month and jump you to the calendar part of the page.
Re: Calendar browsing question
Great! I'll think this will work AND is very simple! WOW, I am going to try that immedialtly
Thanks man!
Re: [SOLVED] Calendar browsing question
Brilliant!!!!!! It works.....
Thanks again