1

I have created custom module which added link in Left navigation menu of My Account Page. Every things is handle By modules Layout.xml. But My Module link is appeared at Last in position i.e after News letter Subscription. I want to add this after "My Order" Menu.

How can I do this. Please help me.

Thanks Pravin

4

1 回答 1

1

在 XML 文件中,您可以将块设置在另一个块之前或之后。

在布局 XML 文件中,将以下属性添加到块中:

before="name_of_block"

或者:

after="name_of_block"

所以你的行看起来像这样:

<block type="some/type" before="some_other_block_name" template="some/path/to/template.phtml" />

如果您希望它出现在任何其他块之前(或每隔一个块之后),请使用以下命令:

before="-"

或者:

after="-"
于 2012-09-28T15:14:40.180 回答