Page 1 of 1
Hiding tabs in the Calendar's left hand side bar
Posted:
Thu Sep 24, 2015 10:46 pm
by verybless
I would like to hide the 'Calendar' and "Setting' tab in the calendar's left had side bar. Can you advice how to achieve that ? Thank you
Re: Hiding tabs in the Calendar's left hand side bar
Posted:
Fri Sep 25, 2015 6:07 am
by John Sindelar
I have an idea here and will post back if I can get it working. Thanks, Simon.
Re: Hiding tabs in the Calendar's left hand side bar
Posted:
Fri Sep 25, 2015 12:12 pm
by John Sindelar
Hi Simon,
I'm not sure you'll want to hide the settings tab as without it there is no way to get to the Account Settings section of the calendar, but if you'd already entered your license--and you remember how to undo what follows--maybe that's ok.
Add the following near the bottom of DayBack's CSS file, right above the line "/* !-- Additions Block Do Not Remove - More Classes --> */"
- Code: Select all
.dbk_sidebar .settings, .dbk_sidebar .calendars {
display: none;
}
.tabButtonContainer button.filters, .tabButtonContainer button.filters {
width: 258px;
}
For those following along at home, more on editing CSS can be found here:
http://www.seedcode.com/pmwiki/index.ph ... eMaker.CSS
Re: Hiding tabs in the Calendar's left hand side bar
Posted:
Sun Sep 27, 2015 6:31 pm
by verybless
Thanks John.
My problem in showing the settings tab is the button Account Setting. I do not want any casual users to access update & documentation. If I were to keep the settings tab, is there a way for me to hide the Account Setting button if users do not have the access privileges ?
Re: Hiding tabs in the Calendar's left hand side bar
Posted:
Mon Sep 28, 2015 7:24 am
by John Sindelar
Yes, you can easily hide the Administrator Settings button for individual users or by access roles. In the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" you'll find a comment "Show Admin Settings". The variable following that determines if the admin settings button shows up or not: simply wrap that variable in an if() that checks Get ( CurrentPrivilegeSetName )
=)
Re: Hiding tabs in the Calendar's left hand side bar
Posted:
Wed Sep 30, 2015 9:05 pm
by verybless
Thank you John. All good now