質問

カスタムモジュールを開発していますが、ソリューションを取得できません。

custom_module.xmlをbellow

として追加しました
<module_index_index>
        <reference name="content">
            <block type="module/list" name="module_list" template="module/list.phtml" />
        </reference>

</module_index_index>
.

私はそれを得る方法を理解することができません。

役に立ちましたか?

解決

custom_module.xmlファイルにタイトルフェッチコードを追加する必要があるため、以下のようになります。

<module_index_index>
        <reference name="content">
            <block type="module/list" name="module_list" template="module/list.phtml" />
        </reference>
 <reference name="head">
            <action method="setTitle" translate="title">
                <title>Custom Title</title>
            </action>
        </reference>
</module_index_index>
.

これがあなたを助けるのに役立ちます

他のヒント

「handler

の中に次のコードを追加する

<reference name="head">
    <action method="setTitle" translate="title" module="modulename"><title>Your Custom Title</title></action>
</reference>

.

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top