Jump to content

How can i just get the first categories


dibs223
 Share

Recommended Posts

Hi all

How can i just get the first categories showing up in the wiznav? pm me please

I want to be able to creat my own myadminphp database!

I want to put it into this code!

>{l s='pc' mod='wiznav'}  
</pre>
<ul>
       {foreach from=$blockCategTree.children item=child name=blockCategTree}
           {if $smarty.foreach.blockCategTree.last}
                       {include file=$branche_tpl_path node=$child last='false'}
           {else}
                       {include file=$branche_tpl_path node=$child}
           {/if}
       {/foreach}




Thanks

Share this post


Link to post
Share on other sites

Ive got another categorie in my web page and named it pc for my testing!

I have looked at blockcategories.php , category-tree-branch.tpl and blackcategories.tpl and cannot fig how to stop the categories from showign up!

I am just after showing the first list e.g Accessories,mobilephone,pc not the others leading off these!

Can anyone help me out or point me in the right direction please.

I have done database therory and the get command in php at university, but its harder when its not your own code that you have built up to find the links to the database.

hope somone can help me out here :-) if you need to look my site is www.kaihoo.co.uk

Share this post


Link to post
Share on other sites

I am getting there slowly! just need to try and get the same background can anyone help me out on my code plz

{l s='pc' mod='wiznav'}  
PC  
       {foreach from=$blockCategTree.children item=child name=blockCategTree}
           {if $smarty.foreach.blockCategTree.last}
                       {include file=$branche_tpl_path node=$child }

           {else}
                       {include file=$branche_tpl_path node=$child}
           {/if}
       {/foreach}         




The PC link is not picking up the

  • ???????

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More