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