local.xml
-- 特にログイン/ログアウトリンクを使用して、トップ リンクを再配置したいと思います。リンクを削除してから再度追加して位置タグを変更しなくても、これは可能ですか?
現在 (そしてデフォルトで) ログインとログアウトは 100 の位置に設定されていcustomer.xml
ます:
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
<customer_logged_out>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log In</label>
<url helper="customer/getLoginUrl"/>
<title>Log In</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_out>
両方とも位置 1 に配置したいと思います (経由local.xml
)。
アクション メソッドは認識してsetAttribute
いますが、この場合の使用方法がわかりません。