Hiding tabs in the Calendar's left hand side bar

Notes on our latest calendar for FileMaker 13,: DayBack
Posts: 36
Joined: Tue Mar 31, 2009 2:14 am
Location: SINGAPORE
PostPosted: Thu Sep 24, 2015 10:46 pm
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
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Sep 25, 2015 6:07 am
I have an idea here and will post back if I can get it working. Thanks, Simon.
John Sindelar
SeedCode
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Sep 25, 2015 12:12 pm
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
John Sindelar
SeedCode
Posts: 36
Joined: Tue Mar 31, 2009 2:14 am
Location: SINGAPORE
PostPosted: Sun Sep 27, 2015 6:31 pm
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 ?
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Sep 28, 2015 7:24 am
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 )

=)
John Sindelar
SeedCode
Posts: 36
Joined: Tue Mar 31, 2009 2:14 am
Location: SINGAPORE
PostPosted: Wed Sep 30, 2015 9:05 pm
Thank you John. All good now

Return to DayBack Calendar for FileMaker

Who is online

Users browsing this forum: No registered users and 3 guests

cron
(855) SEEDCODE
[email protected]
Follow us: