Look at the below layout which is from "base/default/layout/contacts.xml".
<default>
<reference name="footer_links">
<action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled">
<label>Contact Us</label>
<url>contacts</url>
<title>Contact Us</title>
<prepare>true</prepare>
</action>
</reference>
</default>
What I understand from above layout is: (please let me know if I am wrong about something)
- The blocks will be added in to the "default" layout handle.
The block "footer_links" is being referred which is in "page.xml"
<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
- The "footer_links" has type: "page/template_links" which is calling the class "Mage_Page_Block_Template_Links".
- The "action" layout element is calling a method addLink from "Mage_Page_Block_Template_Links" class.
- The "translate" attribute is used for language specific changes.
What I want to understand is:
- What does "module" and "ifconfig" attributes are used for in "action" layout element?