문제

I am a bit confuse about this. I have

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

under header.phtml. How am i going to call 'accountlinks' inside my new static block in Admin?

Thank you!

도움이 되었습니까?

해결책

First,check any accountLinks alias name is exit in layout all xml file. Suppose

If i found that store_language is exit in page.xml and this called in header.phtml $this->getChildHtml('store_language') ;

if i want to call this file any where the used below code

 echo $this->getLayout()->createBlock('page/switch')
->setTemplate('page/switch/languages.phtml')->toHtml();

Same way you need to follow

다른 팁

There is probably a corresponding accountLinks.phtml template file.

You can load this in your static block with:

{{block type='core/template' template='path/to/accountLinks.phtml'}}

path/to/accountLinks.phtml is the path from app/design/frontend/[packagename]/[themename]/template, e.g.: page/html/header/accountLinks.phtml

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top