Certificated magento

Q.2.24) Which ways exist to specify the layout update handles that will be processed during a request?

- register a layout.xml file

- create a handle which is basically the the full action name as a xml node
- add handles through observer by "controller_action_layout_load_before" event
 
<layout>
<default>
<update handle="add_jquery_first" />
</default>
 
<add_jquery_first>
<action method="addJs" block="head">
<file>jquery/jquery-1.8.1.min.js</file>
</action>
<!- or
<reference name="head">
<action method="addJs">
<file>jquery/jquery-1.8.1.min.js</file>
</action>
</reference>
->
</add_jquery_first>
</layout>

0 Bình luận

Trở về
  • 1.12) Set up a cron job
  • 1.12) Set up a cron job

    Let’s start with server setup.   As any complex system, Magento has a lot of tasks that need to be executed...