Results 1 to 4 of 4

Thread: [SOLVED] Calendar browsing question

  1. #1
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default [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

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

  3. #3
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default 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!

  4. #4
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default Re: [SOLVED] Calendar browsing question

    Brilliant!!!!!! It works.....

    Thanks again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •