Skip to content

Helpful methods to be called in layout actions to allow more customizations via local.xml without touching the original layout files. Remove links from the account navigation from local.xml layout updates without touching the original layout files. Add CSS/JS before or after existing elements

Notifications You must be signed in to change notification settings

vinai-drive-by-commits/N98_LayoutHelper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

N98_LayoutHelper Magento Module

Helpful methods to be called in layout actions to allow more customizations via local.xml without touching the original layout files.

  • Remove links from the account navigation from local.xml layout updates

without touching the original layout files.

  • Add CSS/JS before or after existing elements

Example: Add CSS file at begin

<reference name="head">
    <action method="addCss">
        <stylesheet>css/footer.css</stylesheet>
        <params></params>
        <ref>*</ref>
        <before>1</before>
    </action>
</reference>

Example: Remove a link from customer menu

<customer_account>
    <reference name="customer_account_navigation">
        <action method="removeLink"><name>OAuth Customer Tokens</name></action>
        <action method="removeLink"><name>billing_agreements</name></action>
        <action method="removeLink"><name>recurring_profiles</name></action>
    </reference>
</customer_account>

About

Helpful methods to be called in layout actions to allow more customizations via local.xml without touching the original layout files. Remove links from the account navigation from local.xml layout updates without touching the original layout files. Add CSS/JS before or after existing elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%