Thursday, October 24, 2013

how to add page links in the navigation bar in magento

Step 1: Create a Subcategory


To add page links to the top navigation:


From the Admin panel, select Catalog > Manage Categories.


On the Categories Management page, click Add Subcategory. Then, do the following:


Enter a Name for the link.


Scroll down to the bottom of the form, and set Is Active to “Yes.”


Set Include in Navigation Menu to “Yes.”


In the URL Key field, type the name of your page link in lowercase letters with hyphens instead of spaces. (For example, newpage.)


In the upper-right, click the Save Category button.


magento_nav_links_1


 


Step 2: Create a Redirect


From the Admin panel, select Catalog > URL Rewrite Management.


In the text box at the top of the Request Path column, type the URL key for the subcategory, and click Search. When the the subcategory appears, click to open the record.


NOTE: you will have records for each installed language.

We will open each one in a new tab.


magento_nav_links_2


 


To save the Target Path value, do one of the following:


Copy the Target Path to the clipboard.


Write down the Target Path.


Then delete each item.


In the upper-right corner of the URL Rewrite Management page, click the Add URL Rewrite button, and do the following:


In the Create URL Rewrite list, select Custom. A form appears in the lower part of the page.


In the ID Path text field, type the URL key of the page link in lowercase, using hyphens instead of spaces. (For example, about-our-company.)


In the Request Path, either paste or type the Target Path value that you previously recorded.


In the Target Path field, type the URL for the page link.


Set Redirect to “Permanent (301).”


Click Save.


magento_nav_links_3


 


NOTE: this nees to be done for each language. In this example, we’ll perform it for only one English Language.


Now, we can create our page. Go to CMS -> Pages.


Click on Add New Page button


Specify Page Title and URL Key.


magento_nav_links_4


 


In the Content tab, place your page content.


In Design tab, choose desired page Layout


Click Save Page


NOTE: you may need to clean your magento Cache.


Go to System ->Cache Management.


In Cache Control box check all options and in All Cache dropdown select Refresh


Then click Save Cache Settings in the top right corner.


Open your website and refresh the page (CTRL+F5)



how to add page links in the navigation bar in magento

No comments:

Post a Comment