0

I need to remove this link only from a custom handle. The handle is working, but I cannot find the right syntax to remove the link, maybe removeLinkByUrl or byName.


<reference name="top.links"><action method="addLink" translate="label title" module="customer"><label>Faq</label><url>faq</url><title>Faq</title><prepare>true</prepare><urlParams/><position>200</position><liParams/><aParams/></action></reference>

thanks

1 Answer 1

1

top.links stands for Mage_Page_Block_Template_Links. There you can see a method to remove link based on url. Method name is removeLinkByUrl().

So try this.

<custom_layout_handle>
    <reference name="top.links>
        <action method="removeLinkByUrl">
             <url>faq</url>
        </action>
    </reference>
</custom_layout_handle>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.