ALMAJ Posted May 19, 2013 Share Posted May 19, 2013 (edited) 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 May 19, 2013 by majority (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2013 Share Posted May 19, 2013 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 More sharing options...
ALMAJ Posted May 19, 2013 Author Share Posted May 19, 2013 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 More sharing options...
vekia Posted May 19, 2013 Share Posted May 19, 2013 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 Link to comment Share on other sites More sharing options...
ALMAJ Posted May 19, 2013 Author Share Posted May 19, 2013 (edited) 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 May 21, 2013 by majority (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now