문제

I can call my block in a static block as like this :

{{block type="facebooklikebox/likebox" template="facebooklikebox/likebox.phtml"}}

but how can I use this action in a static block :

  <action method="setData"><name>position</name><value>right</value></action>
  <action method="setData"><name>page_id</name><value>facebooklikebox/general/page_id</value></action>
도움이 되었습니까?

해결책

Try this :

{{block type="facebooklikebox/likebox" position="right" page_id="facebooklikebox/general/page_id" template="facebooklikebox/likebox.phtml"}}

Then retreive it inside with getPosition or getPageId.

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