Jump to content

[SOLVED] Don't show selected subcategories into the category (category.tpl)


DARKF3D3

Recommended Posts

There's a way to exclude selected subcategories from the category page?

 

This is the code I'm using to show subcategories into the category page:

		{if isset($subcategories)}
		{if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) }
			<!-- Subcategories -->
			<div id="subcategories">
				<ul class="clearfix">
				{foreach from=$subcategories item=subcategory}
					<li>
						<h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</a></h5>
						{if $subcategory.description}
							<div class="cat_desc">{$subcategory.description}</div>
						{/if}
					</li>
				{/foreach}
				</ul>
			</div>
		{/if}
		{/if}
Edited by DARKF3D3 (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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...