1列页面布局上的Magento客户帐户导航

1列页面布局上的Magento客户帐户导航,magento,navigation,account,Magento,Navigation,Account,我想将我的客户帐户页面设置为1列页面布局,然后将客户帐户导航从内容的左侧移动到顶部。有没有关于如何轻松做到这一点的想法/方法?谢谢大家 打开app\design\frontend\YOUR\u THEME\u TEMPLATE\default\layout\customer.xml文件。 在该customer\u帐户中chnage打开app\design\frontend\YOUR\u THEME\u TEMPLATE\default\layout\customer.xml文件。 <act

我想将我的客户帐户页面设置为1列页面布局,然后将客户帐户导航从内容的左侧移动到顶部。有没有关于如何轻松做到这一点的想法/方法?谢谢大家

打开
app\design\frontend\YOUR\u THEME\u TEMPLATE\default\layout\customer.xml
文件。

在该
customer\u帐户中
chnage
打开
app\design\frontend\YOUR\u THEME\u TEMPLATE\default\layout\customer.xml
文件。
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>

在该
customer\u帐户中
chnage

要移动导航菜单,您需要编辑主题的
customer.xml
布局文件并
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
并在标签内移动此部分

<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> 
为此:

<reference name="root">
    <action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>

第/1页column.phtml

在此之后,您可能需要进行一些css更改,以使导航菜单适合您的主题。

要移动导航菜单,您需要编辑主题的
customer.xml
布局文件并 并在标签内移动此部分

<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> 
为此:

<reference name="root">
    <action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>

第/1页column.phtml

在此之后,您可能需要进行一些css更改,以使导航菜单适合您的主题。

谢谢mate。工作得很有魅力!我只是想知道如何在我的local.xml上使用它,而不是更改customer.xml?谢谢。工作得很有魅力!我只是想知道如何在我的local.xml上使用它,而不是更改customer.xml?