SimplePortal

Customization => Custom Coding => Topic started by: Petter on November 20, 2013, 02:22:41 AM

Title: Code for a collapsable navigationblock
Post by: Petter on November 20, 2013, 02:22:41 AM
Does anyone know if its possible to put a code for a collasable menu in a php-block? And where can I get the code?
See attached images (menu "Varor" at http://www.ordochbok.se/ and menu "Handbok" at http://handbok.alternativ.nu/ )
The code doesn´t have to fetch the categories and boardnames, I can put hardcoded names and links to them in the code manually if it´s easier.
 
Title: Re: Code for a collapsable navigationblock
Post by: dsystem on March 28, 2016, 11:18:09 AM
I'm going to be a grave digger and dig up this topic  :D

There is already a block so to simpleportal? I searched but not found.

I saw that has a block of this well PortaMX complete. Helps a lot on the Forum

(http://fotos.eletronicabr.com.br/images/2016/03/28/portaMX.png)
Title: Re: Code for a collapsable navigationblock
Post by: ♦ Ninja ZX-10RR ♦ on March 28, 2016, 12:29:42 PM
It's enough to put a little javascript linked to an onclick event, not very hard :)
Title: Re: Code for a collapsable navigationblock
Post by: Petter on March 28, 2016, 12:32:48 PM
Old, this is already part of SP i think.
Title: Re: Code for a collapsable navigationblock
Post by: Burke Knight on March 29, 2016, 05:24:28 AM
I do believe that if do the menu block, you can set it to be able to be collapsed.
Title: Re: Code for a collapsable navigationblock
Post by: ♦ Ninja ZX-10RR ♦ on March 29, 2016, 07:38:18 AM
The original request is actually a bit different, it's not the whole block to be collapsable or not, but more the inner elements. ;)
Title: Re: Code for a collapsable navigationblock
Post by: Burke Knight on March 29, 2016, 03:48:39 PM
Really do not see a reason for it to be that way, IMHO.
The collapse button, does that, without leaving a bit of the 2nd part of the block, and looks cleaner.
SimplePortal 2.3.8 © 2008-2024, SimplePortal