Pregunta

Estoy desarrollando un módulo personalizado, pero no puedo obtener la solución cómo agregar título de pestaña en el navegador.

he agregado custom_module.xml como Bellow

<module_index_index>
        <reference name="content">
            <block type="module/list" name="module_list" template="module/list.phtml" />
        </reference>

</module_index_index>

No puedo entender cómo conseguirlo.

¿Fue útil?

Solución

Necesita agregar el código de recuperación del título en su archivo custom_module.xml para que se vea a continuación:

<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>

espero que esto lo ayude

Otros consejos

Añadir siguiente código dentro de " Handler


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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top