0
나는
홈 페이지에서 제품 페이지 한 미니 검색 상자에 한 미니 검색 상자을 갖고 싶어
에서 여러 "미니 검색 상자"를 생성 내 Magento 1.7.2에이 있습니다.젠토 제품 페이지와 main.page
이<reference name="left">
<block type="core/template" name="top.search" template="catalogsearch/form.mini.phtml" after="sibling.blockName"/>
</reference>
<reference name="right">
<block type="core/template" name="top.search_main" template="catalogsearch/form.mini_main.phtml" after="sibling.blockName"/>
</reference>
내가에 top.search_main 을 할 수 없습니다 :
이 미니 검색 상자
는 local.xml에서 다음과 같은(당연히 내 자신의 템플릿에)이라고합니다 기본 페이지에서 apear ... 참조 이름 = "right"를 써야합니까?
의견이 있으십니까?
답장을 보내 주셔서 감사합니다 ...! "home.search"를 cms가 아니라 1column.phtml에서 호출하는 방법이 있습니까? 더 많은 프로그래밍 방식으로 호출하고 싶지만 작업을 제안한 내용도 있습니다. 이것에 대한 의견? – kost
@kost 이것을 시도해 보라. php echo $ this-> getLayout() -> createBlock ('core/template') -> setTemplate ('catalogsearch/form.mini.phtml') -> toHtml(); ?> –