2012-03-20 3 views

답변

0

원래이 블록은 top.links
라고 그런 다음 모든 블록이 링크를 추가

<block type="page/html_header" name="header" as="header"> 
      <block type="page/template_links" name="top.links" as="topLinks"/> 
.... 
</block> 

page.xml에서 만든 것. 예를 들어 고객 모듈의 경우 :

 <reference name="top.links"> 
     <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action> 
    </reference> 

이 블록은 그래서 당신은 top.links 제거 또는 깨진 곳 찾기 위해 layout 파일을 검토해야하고 header.phtmlpage/html/header.phtml

<?php echo $this->getChildHtml('topLinks') ?> 

에 출력 됨된다. 도움이되지 않으면 Mage_Page_Block_Template_Links 로직 디버깅을 시도하는 데 도움이되지 않습니다.

+0

답장을 보내 주셔서 감사합니다. 문제는 테마가 커스텀 가기 링크 top.links.custom을 어떻게 든 나타나지 않는다는 것입니다. <참조 이름 = "헤더"> \t \t \t <= "top.links"이름을 제거 /> \t \t \t <블록 타입 = "페이지/template_links 'NAME = 여기 테마 폴더 local.xml의 코드는 "top.links.custom"as = "topLinksCustom"/> –

+0

내용이'page/html/header.phtml'에 출력되고 있는지 확인하십시오. – Sergey

관련 문제