Phoca top menu module - toggle joomla menu off by default?

Phoca modules - support for all Phoca modules except Phoca Gallery modules
User avatar
fabio42
Phoca Enthusiast
Phoca Enthusiast
Posts: 81
Joined: 09 Oct 2018, 16:39

Phoca top menu module - toggle joomla menu off by default?

Post by fabio42 »

Hello!
I didn't know where to post this as there is no section in the Phoca Forum dedicated to the Phoca Top Menu module.
I am delighted with this menu, which allows me to find my "former" joomla back.
Yet, as I have this menu now, can you tell me if there's a trick to toogle the default Joomla menu off (on the left) as it is of no use to me now... Joomla doesn't seem to offer this possibility ot else I haven't found it yet. Does it mean we have to hack the core files? and how? Any idea?
Thanks for your help!
Fabio

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: Phoca top menu module - toggle joomla menu off by default?

Post by christine »

Hi Fabio,

1)
Maybe this is enough - then there is only a narrow part:

Image

2) And/or:

Code: Select all

#sidebar-wrapper.sidebar-wrapper.sidebar-menu {
display: none;  
}
Normally in the user.css created by Cassiopeia (administrator).
You might want to create a custom.css.

Kind regards
Christine
User avatar
fabio42
Phoca Enthusiast
Phoca Enthusiast
Posts: 81
Joined: 09 Oct 2018, 16:39

Re: Phoca top menu module - toggle joomla menu off by default?

Post by fabio42 »

Hello Christine!
You mean in the user.css file for the Atum template ? Because Cassiopeia is for the front end... and what I'm talking about is the menu that is on the administrator side. Yet, I tried to insert the code in the user.css file of the Atum template, and it does not toggle the menu off BY DEFAULT. Actually, this does not have any effect at all. There's no way to recompile the css in the template on the admin side.
Any idea then?
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: Phoca top menu module - toggle joomla menu off by default?

Post by christine »

Hi Fabio,

Yes, of course I mean the Atum template. I wrote too quickly. No wonder after this (other) long thread where these words often appeared: cassiopeia vs. gantry... :-)

I have now temporarily tested:

a) a user.css in Atum, i.e.: css > create user.css

Image

b) entered the above code (1st post) there.

c) refresh (clear cache)

d) It works. Result:

Image

I will ask Jan if he can move this thread to: Phoca modules.

Kind regards
Christine
User avatar
fabio42
Phoca Enthusiast
Phoca Enthusiast
Posts: 81
Joined: 09 Oct 2018, 16:39

Re: Phoca top menu module - toggle joomla menu off by default?

Post by fabio42 »

Ok, I did not clear the cache, that's why. Yet, what you suggest is remove the full left menu. What I would have preferred was simply to have it toggled off (with just the icons) on the left. Possible?
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: Phoca top menu module - toggle joomla menu off by default?

Post by christine »

fabio42 wrote: 02 Oct 2024, 16:45 Ok, I did not clear the cache, that's why. Yet, what you suggest is remove the full left menu. What I would have preferred was simply to have it toggled off (with just the icons) on the left. Possible?
Difficult because a lot of things depend on it. For example, removing the title next to the icons would also affect the top module etc. Therefore, I changed the width:

Code: Select all

#sidebar-wrapper.sidebar-wrapper.sidebar-menu {
max-width: 2.9rem;  
}
Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca top menu module - toggle joomla menu off by default?

Post by Jan »

Hi,

Phoca Top Menu only displays different menus in custom top position, so it does not have any tool to influence Joomla system. I am not sure (didn't test), but maybe there is some way to hide default menu in Joomla administration (maybe some module option, or administration menu option). :idea:

Jan
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: Phoca top menu module - toggle joomla menu off by default?

Post by christine »

Hi,
Jan wrote: 03 Oct 2024, 14:34
... maybe there is some way to hide default menu in Joomla administration
Yes, that is possible. Deactivate the admin module. But then you still have the first row: "Toggle Menu".
You would then have to remove the icon using CSS (it works). But also the title. As I said above:
.... removing the title next to the icons would also affect the top module etc ....

That's why it is "covered" with the above code.

Kind regards
Christine
User avatar
fabio42
Phoca Enthusiast
Phoca Enthusiast
Posts: 81
Joined: 09 Oct 2018, 16:39

Re: Phoca top menu module - toggle joomla menu off by default?

Post by fabio42 »

Hey everyone!
While we were having this conversation I had also thrown a bottle in the sea on the Joomla Community Forum and got a response.
This is what they suggest and it hit the jackpot. With flying colors.
Here's the post in case: https://forum.joomla.org/viewtopic.php? ... 0#p3732250
Thanks A LOT anyway for your suggestions! 8)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca top menu module - toggle joomla menu off by default?

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply