Page 1 of 1
<SOLVED> Hiding << prev in Calendar
Posted: Thu Mar 10, 2011 8:19 am
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
Re: Hiding << prev in Calendar
Posted: Thu Mar 10, 2011 4:17 pm
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>
Re: Hiding << prev in Calendar
Posted: Fri Mar 11, 2011 7:03 am
by bmohor3
D**n, I must be blind. Thanks for your anwser.
Re: Hiding << prev in Calendar
Posted: Fri Mar 11, 2011 8:09 pm
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?...
Re: Hiding << prev in Calendar
Posted: Fri Mar 11, 2011 8:29 pm
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.