<SOLVED> Hiding << prev in Calendar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
bmohor3
Forum Members
Forum Members
Posts: 19
Joined: Sat Jan 12, 2008 8:49 pm

<SOLVED> Hiding << prev in Calendar

Post by bmohor3 »

I'm using calendar on my web page. For quite a while I'm try to figure it out, how to hide << prev. I don't want users to search for previous monts, i just want to have >> on my calendar view. Is there any way to do that?

Thanks for your help
Bostjan
Last edited by bmohor3 on Thu Mar 17, 2011 8:15 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Hiding << prev in Calendar

Post by Wishbone »

Look at your calendar template. It's in the 'caption' section of the table if you're using the default template. Just remove what you don't want.

Code: Select all

<caption class="calendar-month"><span class="calendar-prev"><a href="{$navigation.prev}">«</a></span> {$month_names[$month]} {$year} <span class="calendar-next"><a href="{$navigation.next}">»</a></span></caption>
bmohor3
Forum Members
Forum Members
Posts: 19
Joined: Sat Jan 12, 2008 8:49 pm

Re: Hiding << prev in Calendar

Post by bmohor3 »

D**n, I must be blind. Thanks for your anwser.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Hiding << prev in Calendar

Post by Dr.CSS »

If they go tot the next month of the calendar how will they get back to this month if you remove that?...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Hiding << prev in Calendar

Post by Wishbone »

The back button in the browser? Or you can check to see if the month matches the current month, then remove the <<, else show it.
Post Reply

Return to “Modules/Add-Ons”