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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -