magento - Custom grid.phtml For Just CMS > Pages -


i'm making first extension trying learn magento. i'm kind of stuck @ part, because i'm wanting customize \app\design\adminhtml\default\default\template\widget\grid.phtml file, more cms > pages uses file. there anyway break out cms > pages section points different grid.phtml file? surely there way can't seem figure out @ moment.

since have own extension, can change block template via layout update file. if don't have one, create (app/design/adminhtml/default/default/your_extension.xml) , add following lines adminhtml section of extension's config.xml:

<layout>     <updates>         <your_extension>             <file>your_extension.xml</file>         </your_extension>     </updates> </layout> 

and layout update file (in our case your_extension.xml) should this:

<?xml version="1.0"?> <layout>     <adminhtml_cms_page_index>         <reference name="cms_page.grid">             <action method="settemplate">                 <template>widget/grid2.phtml</template>             </action>         </reference>     </adminhtml_cms_page_index> </layout> 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -