0

I have just been testing CE 1.9 using the rwd theme.

I have set up a simple category tree as follows"

Default Category
- Cat 1
--- Sub cat 1
--- Sub cat 2
--- Sub cat 3
--- Sub cat 4
- Cat 2
- Cat 3

On the front end main Navigation I'm getting an additional "View All Cat 1" link as follows:

Cat 1
- View all Cat 1
- Sub cat 1
- Sub cat 2
- Sub cat 3
- Sub cat 4

Where is the "view all" link coming form (it simply redirects to Cat1)?

Thanks.

0

The "View All ..." link for categories comes from app/design/frontend/rwd/default/template/page/html/topmenu/renderer.phtml and it is built to point to the main category. This is the piece of code that generates it.

if (!empty($_hasChildren)) {
    $html .= '<ul class="level'. $childLevel .'">';
    $html .=     '<li class="level'. $nextChildLevel .'">';
    $html .=         '<a class="level'. $nextChildLevel .'" href="'. $child->getUrl() .'">';
    $html .=             $this->__('View All ') . $this->escapeHtml($this->__($child->getName()));
    $html .=         '</a>';
    $html .=     '</li>';
    $html .=     $this->render($child, $childrenWrapClass);
    $html .= '</ul>';
}
1
  • I commented out the necessary lines. It seems this "extra" link is unique to the rwd theme. I haven't seen it in any other themes. – shnozolla Jun 2 '14 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.