use*_*265 1 navigation account magento
我想将我的客户帐户页面设置为1列页面布局,然后将customer_account_navigation从左侧移动到内容顶部.关于如何轻松做到这一点的任何想法/方法?多谢你们!
要移动导航菜单,您需要编辑customer.xml主题的布局文件,并在标签内<customer_account>移动此部分.
<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>
Run Code Online (Sandbox Code Playgroud)
如果从标签中删除<reference name="left">到<reference name="content">.
另外,为了将模板更改2columns-left为1column,在同一个标签内部进行更改<customer_account>,这样:
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
Run Code Online (Sandbox Code Playgroud)
对此:
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
Run Code Online (Sandbox Code Playgroud)
您可能需要在此之后进行一些css更改,以使导航菜单适合您的主题.