kubo12312 Posted March 11, 2017 Share Posted March 11, 2017 Hi, I want to add "Show more button" in section. The result must be something like this: The blocks I have already styled. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted March 13, 2017 Share Posted March 13, 2017 To show what exactly? Can you share the site's url? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 13, 2017 Author Share Posted March 13, 2017 http://test.vybaveni-hotelu.cz/sk/150-koupelny-a-toalety Take a look how it is Link to comment Share on other sites More sharing options...
NemoPS Posted March 15, 2017 Share Posted March 15, 2017 You mean you want to hide some of those, and show them when you click? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 15, 2017 Author Share Posted March 15, 2017 Yes, I want to show first six and other hide. After click show them Link to comment Share on other sites More sharing options...
NemoPS Posted March 17, 2017 Share Posted March 17, 2017 There is a loop for subcategories in category.tpl. If you add {break} it will interrupt when you want, or you can even use it to add a further div, like{foreach from=$subcategories item=subcategory name='subcategories_loop'} <-- You need to add the name<li {if $smarty.foreach.subcategories_loop.iteration >= 6}class="hidden"{/if}>Then you can create a button that makes the .hidden LIs visible on click 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