Jump to content

Collapse & expand any block


Recommended Posts

How to Collapse & expand any block?

 

i want to have the ability to collapse and expand any block, like categories, manufacturers, Information, RSS feed, etc...

this comes useful for saving space.

can some one help?

 

My prestashop version is 1.5.4.1

using default theme

 

tanks in advance

Edited by majority (see edit history)
Link to comment
Share on other sites

unfortunately this isn't possible by default in prestashop. Moreover, i don't know any module for that.

I think that it is necessary to edit all modules (.tpl files) to achieve this

 

hard and a lot of work. If you're interested in this - feel free to continue discussion, i will try to help

Link to comment
Share on other sites

unfortunately this isn't possible by default in prestashop. Moreover, i don't know any module for that.

I think that it is necessary to edit all modules (.tpl files) to achieve this

 

hard and a lot of work. If you're interested in this - feel free to continue discussion, i will try to help

 

Tanks vekia for your reply

 

that's cannot be too difficult... Prestashop already have an implemented collapse & expand option, but not for blocks

 

How about copy the code from categories content, like "<ul class="tree dynamized" style="display: block;">" and this: "<span class="grower CLOSE"> </span>" and: "<ul style="display: none;">" I don't now... I'm just guessing...

 

Or maybe this code here:

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

 

taken from this silent topic

 

hope some one can help

 

tanks in advance

 

Alcino Major

Link to comment
Share on other sites

but sometimes blocks haven't got .block and .block_content classes, so it isn't as simple as it seems

in this case it is necessary to create separate script for each block with different classes

 

I can't do this for sure, can you do this? how much a module like this will cost for you to make?

 

tanks.

 

Alcino Major

Edited by majority (see edit history)
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...