Hide and collapse sidebar in Joomla Administrator

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
sseguin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Sat Apr 10, 2010 2:24 am
Contact:

Hide and collapse sidebar in Joomla Administrator

Post by sseguin » Wed Jul 25, 2018 6:06 pm

Hello,

I am trying to hide and collapse the Sidebar that appears in Joomla Admin.

I placed the following in the custom.css of my admin template.
.j-sidebar-container {display: none;} and I've also tried visibility: collapse

This removes the sidebar, but is there anything else I can add that would collapse the space, so it isn't left as a white space and used by the rest of the stuff being displayed?

Thankyou.

p.s. Doing this for ACL reasons to hide stuff in components not appropriate for other admins to see. Those components don't have ACL controls to adjust this.
https://www.SlopeEdge.net - Dedicated to getting you up close and personal with skiing, hiking, kayaking and adventure

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37284
Joined: Sat Apr 05, 2008 9:58 pm

Re: Hide and collapse sidebar in Joomla Administrator

Post by Webdongle » Wed Jul 25, 2018 6:36 pm

sseguin wrote:
Wed Jul 25, 2018 6:06 pm
... Doing this for ACL reasons to hide stuff in components not appropriate for other admins to see. Those components don't have ACL controls to adjust this.
Create a new user group with Public as Parent
Select that group in 'Special' access/view level
In global config Allow (for the new user group) Site Login and administrator login
The in the Component(s) Options Allow that Group Access Administration Interface (and edit etc.)
That will hide the Components that have no Permissions options.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
sseguin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Sat Apr 10, 2010 2:24 am
Contact:

Re: Hide and collapse sidebar in Joomla Administrator

Post by sseguin » Wed Jul 25, 2018 6:53 pm

Yes, I can do that but it will block the whole component, the component doesn't have ACL built-in, all I can do is block it entirely. I just need to hide the stuff in the sidebar. Any ideas?
https://www.SlopeEdge.net - Dedicated to getting you up close and personal with skiing, hiking, kayaking and adventure

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37284
Joined: Sat Apr 05, 2008 9:58 pm

Re: Hide and collapse sidebar in Joomla Administrator

Post by Webdongle » Wed Jul 25, 2018 7:15 pm

You would need to hide the Components menu items as well to stop them having access to the other Components. Your only viable option (other than using a Component that uses the ACL) is to override the Admin Template https://docs.joomla.org/J3.x:How_to_use ... _Overrides . You could restrict the view that way but the Components could still be accessed.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
sseguin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Sat Apr 10, 2010 2:24 am
Contact:

Re: Hide and collapse sidebar in Joomla Administrator

Post by sseguin » Wed Jul 25, 2018 7:20 pm

Yes, we are using a custom Admin menu on our site to only show what is needed.

For example, in the Joomla Article manager, the sidebar also displays Categories, Custom Fields, Featured, etc...

No way to hide this without preventing access entirely to the Content component.

Hiding the Sidebar solves this. What I did in the first post at the top hides it, but it leaves the white space behind. The question is still, how to collapse that space or remove it so the space isn't wasted and the components can extend into it.
https://www.SlopeEdge.net - Dedicated to getting you up close and personal with skiing, hiking, kayaking and adventure


Post Reply

Return to “Administration Joomla! 3.x”