2012-09-11 2 views
1

Magento CE 1.7.0.2 페이지 아래에 내 사용자 정의 블록의 내용을 표시하는 데 문제가 있습니다. 블록이 페이지 오른쪽에 표시되지만 내용은 닫는 HTML 태그 뒤에 페이지 아래에 복사됩니다. 디스플레이 레이아웃 플러그인은 한 번 참조 된 블록 만 표시하므로 왜 이런 일이 발생하는지 알 수 없습니다. 기본/사용자 정의 패키지를 사용하고 있습니다. 도와주세요!!!!Magento 내용 아래 페이지

내 레이아웃, 그것은 도움이된다면 : 당신이 당신의 "makeorder/orderblock"블록 속성에서 output="toHtml" 지시문을 제거해야합니다

<?xml version="1.0"?> 

<layout version="0.1.0"> 
    <default> 
     <remove name="store_language" /> 
     <remove name="store_switcher"/> 
     <remove name="footer_links" /> 
    </default> 
    <makeorder_index_index> 
     <reference name="root"> 
      <action method="setTemplate"><template>page/1column.phtml</template></action> 
     </reference> 
     <reference name="content"> 
      <block type="makeorder/orderblock" output="toHtml" name="orderdispaly" 
        template="makeorder/orderdisplay.phtml"/> 
     </reference> 
    </makeorder_index_index> 
</layout> 

답변

1

. 이것이하는 일은 기본적으로 블록의 배치 내용에 관계없이 블록의 내용을 초기화하자마자 표시하는 것입니다. 따라서 "루트"블록 다음에 렌더링됩니다.