Jump to content

Collapse/expand blocks


Recommended Posts

Hello!

I have a script, which collapse/expand blocks:

$(document).ready(function(){
$(".block h4").nextAll().hide();
$(".block_content, .block h4").click(function(){
$(".block_content").nextAll().hide();
$(this).nextAll().slideToggle("fast");
});
});



Help me to make that the list with the active element wouldn't be collapse blocks on the current page.

Example with the correct working script: _http://sekta.name

Link to comment
Share on other sites

... Help me to make that the list with the active element wouldn't be collapse blocks on the current page... Ex. with the correct working script: _http://sekta.name


SilverOK,
Thank you for your input.

However, myself,
could not really understand much,
from the quoted words of yours,
what this message is all about.

BUT...
...
... YES!

Code for Collapsible blocks
(like the small upward/downward small triangle
in the official PS CartBlock)
could be wonderful to have.

I was thinking especially to the MyAccountBlock,
which is occupying a lot of space.

Anyone knows or have read anywhere in the forums
about how to make any block collapsible?
My searching could not find much :o(

Greetings to all :o)

Angelo
from Calcutta
Link to comment
Share on other sites

  • 4 weeks later...

Just a small bumper,
after one whole month of silence...

It should be helpful
to many visitors/customers
to be allowed to collapse blocks,
with a small arrow up or down,
like in the cart block.

This is especially relevant
for the seldom-used MyAccount block,
that occupies such a big prime estate

I guess the code should be there inside that,
but 2 good php-eyes should look into it...

Though I am wearing
quite good html-spectacles :o)
I am afraid that
I am a bit php-blind :o(


CIAO from Kolkata (Calcutta):
Angelo

Link to comment
Share on other sites

  • 2 years later...

Hello!

 

I have a script, which collapse/expand blocks:

 

$(document).ready(function(){
$(".block h4").nextAll().hide();
$(".block_content, .block h4").click(function(){
$(".block_content").nextAll().hide();
$(this).nextAll().slideToggle("fast");
});
});

 

Help me to make that the list with the active element wouldn't be collapse blocks on the current page.

 

Example with the correct working script: _http://sekta.name

 

Hello SilverOK

 

did you managed to make this working?

 

i'm also interested to have an option to expand and collapse any blocks

my prestashop version is: 1.5.4.1

can you please help

 

 

Tanks in advance

 

Alcino Major

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...