Page 1 of 1
User Control Panel
Posted: 20 May 2017, 18:21
by cpm73
Is it possible to remove the subcategories tab in the user control panel? Since I only want user to have the 1 main folder I would rather not have the subcatagory option even be seen by them in their control panel.
Re: User Control Panel
Posted: 21 May 2017, 15:18
by Benno
Hi,
you can set: backend --> Components --> Phoca Gallery --> Control Panel --> Options --> Users --> User Control Panel Settings -->
Maximal Count Of Subcategories=0
Then no user is able to create subcategories.
To hide the tab:
/media/com_phocagallery/css/main/phocagallery.css Line: 427
Change this code:
Code: Select all
dl.tabs dt.open {
background: #ffffff;
border-bottom: 1px solid #ffffff;
z-index: 100;
color: #000;
}
to:
Code: Select all
dl.tabs dt.open {
background: #ffffff;
border-bottom: 1px solid #ffffff;
z-index: 100;
color: #000;
display: none;
}
Kind regards,
Benno
Re: User Control Panel
Posted: 21 May 2017, 18:30
by cpm73
Hey Benno, I appreciate the reply and assist. While this did remove a tab, it removed the main catagory tab leaving the subcatagory tab.. I want the reverse (have main tab but no subcat tab)
Re: User Control Panel
Posted: 21 May 2017, 20:05
by Benno
Hi,
This is peculiar. In my test environment, it works the way I described.
See images below:
Before code changing:
After code changing:
Kind regards,
Benno
Re: User Control Panel
Posted: 22 May 2017, 01:36
by cpm73
Alright got it to work, thank you so much. I'm not sure why it flipped them before, but I went in and tried again and it did it properly this time around. Cheers Benno. NOw I have to figure out why when I click on images tab the main catagory tab disappears and the subcatagories tab appears (then if i click on the subcat tab it disappears and main cat tab appears) lol Best way to learn is to tinker :)
Re: User Control Panel
Posted: 22 May 2017, 11:52
by Benno
Ok.
Kind regards,
Benno