rss
twitter
    Find out what I'm doing, Follow Me :)

Wednesday, February 24, 2010

Pin It

Widgets

How to create a custom page in magento and link it to a new menu

STEPS FOR CREATING A CUSTOM PAGE IN MAGENTO AND LINK IT TO A NEW MENU

1. Login as admin, Then select ‘Manage Pages’ from CMS menu.
2. Click ‘Add New Page’ Button to create a page.
3. In the New Page:

a) In General Information tab enter following details:
Page Title: Test Page
SEF URL Indentifier: test1
Store View: All Store Views
Status: Enabled
Content: Enter some text here..

b) Custome Design: Select your own layout from this tab
Select Layout: Three Column (you can select any layout)

c) Meta Data: If you want to add Keywords and Descriptions

Then click on ‘Save Page’ button. Now your test page is ready.

4. Now we have to create a new menu to link this page. Open app/design/frontend/default/default/template/catalog/navigation/top.phtml

Enter following line just above the foreach statement.

<li><a href="<?php echo $this->getUrl('test1')?>"><?php echo $this->__('Staff') ?></a></li>

Here test1 is the SEF URL Identifier and Staff is the new menu name.

Now your menu is ready.  Go to magento frontend and click on ‘Staff’ menu to see your new page.

No comments:

Post a Comment