Question

I'm studying to get FE certification and I'm trying to add a link to top.links block adding this code to local.xml:

<action method="addLink" block="top.links">
            <label>shop</label>
            <url>http://google.com</url>
            <title>test</title>
        </action>

Although it works properly, I can't find any reference or example using the "block" parameter inside the "action" tag. Anyone knows which parameters are allowed in the action tag? thanks

Was it helpful?

Solution

I believe you can find the answer by looking at _generateAction method inside Mage_Core_Model_Layout class. You will find following strings:

  • ifconfig
  • method
  • block
  • helper
  • json
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top