0

I'm Having two pages

  1. parent_page
  2. child_page

and I'm having a child page link inside a parent page.
If i click on child page link the url should be

www.xyz.com/parent_page/child_page

when the url look like this i can't display the child page content

How to achieve this?

0

There is no way to connect the Pages like category Parent >> child URL structure.

You need to manully set the URL Key as per requirement like below:

parent.html

parent/child.html 
  • thank you for answers......can u pls tell me How to pass custom attribute values instead of child.phtml ? – Ranganathan Jun 30 '17 at 5:07
  • You can pass but then you need to validate custom value CMS Router - app/code/core/Mage/Cms/Controller/Router.php – Pankaj Pareek Jun 30 '17 at 5:10
  • No sir...i can't access default code in magento...is there any other way to get output?...or any sample process in internet? – Ranganathan Jun 30 '17 at 5:13
  • 1
    No You need to override CMS Router to apply your logic instead of directly modify core file. Also you can work on cms_controller_router_match_before event. – Pankaj Pareek Jun 30 '17 at 5:15
  • Sry sir i'm new in magento....Can you pls share sample process ? – Ranganathan Jun 30 '17 at 5:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.