1/ When you click on a cms category in the navigation menu I will see the first CMS page and not an overview of all my pages of that CMS category.
For example
If I click on the first cms category in my navigation menu I become:
http://www.maselection.eu/cms.php?id_cms_category=3
The thing I want is the obtain the first cms page, in this case ‘Qui est Marie Melodie’
http://www.maselection.eu/cms.php?id_cms=23
This my code of the blockcategories.tpl
<ul id=”main-nav”>
{foreach from=$cms_titles.categories item=cms_category}
<li><a class=”main-link” href=”{$cms_category.link}”>{$cms_category.name}</a>
<ul class=”sub-links”>
{foreach from=$cms_titles.cms item=cms_page}
{if $cms_category.id_cms_category eq $cms_page.id_cms_category}
<li><a href=”{$cms_page.link}”>{$cms_page.meta_title}</a></li>
{/if}
{/foreach}
</ul>
</li>
{/foreach}
{foreach from=$blockCategTree.children item=child name=blockCategTree}
<li><a class=”main-link” href=”{$child.link}”>{$child.name}</a>
{if count($child.children) gt 0}
<ul class=”sub-links”>
{foreach from=$child.children item=sub_child}
<li><a href=”{$sub_child.link}”>{$sub_child.name}</a></li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
<li><a class=”main-link” href=”{$base_dir}stores.php”>{l s=’Magasins’}</a></li>
<li><a class=”main-link” href=”{$base_dir}blog”>{l s=’Blog-Creation’ module=’blockcategories’}</a></li>
2/ When I click on a category or a subcategory in the navigation menu, the subcategory navigation menu must stay visible. Actually it doesn’t stay visible
For example:
When I click on ’boutique en ligne’ in the navigation menu http://www.maselection.eu
I can’t see the subcategories anymore, the must stay visible even when I go to productdetails.