Question

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>
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top