Jump to content

repeating menu title.


starchini

Recommended Posts

Greetings, 

 

I am fairly new to templating with CubeCart and I have been experimenting these last few months, basically going through, trial by error (Its the best way I learn). I have come across an error I  must have made and not initially noticed and now I cannot figure out where that error lies or how to fix it.

 

Basically, in the site documents (t&c's, privacy etc) menu the homepage title keeps repeating (see picture)

' alt='' class='ipsImage' >

 

 

I know where the problem stems from, as I remember last week trying to find a way to remove the 'homepage' title from the main menu. Anyhow, I'm hoping that the solution is an easy one and that I'm too much of a noob to notice. 

 

I thank you all in advance for any help. 

 

Cheers, 

 

Christian. 

' alt='' class='ipsImage' >

Link to comment
Share on other sites

Hello starchini!

 

We will compare the storefront Navigation with the Documents list.

 

Please look at the template files box.navigation.php and element.navigation_tree.php.

 

The box file should have no looping code. Just a <ul> with <li> tags for Homepage, Gift Certs, and Sale Items. There will also be the {$placeholder} for the actual categories tree, {$NAVIGATION_TREE}.

 

The element file should also not contain a loop as the core code will call this little snippet of HTML for each category and sub-category to be listed, concatenating each to the end of the previous.

 

Compare with the file box.documents.php. This template loops through an array of all enabled documents. If you have added a <li> tag for the Homepage (which does not actually get included in the documents array) inside this loop, that would explain why it shows for every iteration of the {foreach} loop.

Link to comment
Share on other sites

Please look at the template file box.navigation.php.

 

The box file should have no looping code. Just a <ul> with <li> tags for Homepage, Gift Certs, and Sale Items.

 

You may remove (or <!-- Comment -->) the <li><a> homepage </a></li> statement.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...