我想将新页面添加到我的帐户部分。我需要在这个页面中放置一个带有一些自定义逻辑的iframe。
我已经尝试在下面的部分添加链接。
<reference name="left">
<block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
<action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
<action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
<action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
</block>
<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<remove name="tags_popular"/>
</reference>
但是它产生404错误。
Use this
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="modulename">
<name>Tab Name</name>
<path>path/index/index</path>
<label>Tab Info</label>
</action>
</reference>
</customer_account>
<modulename_index_index>
<update handle="customer_account"/>
<reference name="my.account.wrapper">
<block type="blockname/blockname" name="blockname" template="file.phtml" />
</reference>
</modulename_index_index>