0

i know that this may be a stupid question, i've done reading MagentoDesignGuide.pdf and knows how to edit block, how the XML layout works, and template files works. Since magento documentation is not much i need a lot of question on the development (i'm new to magento Environment and framework)

what i get is 1 page of magento is made from lots of block, layout and modules. either way i want one of my link in my homepage goes to my custom page (a page which i want to made on my own). is there anyway to do it?

1 Answer 1

1

Let's say, you created a CMS page, with URL Key = introduction

You can add link of this page (on your CMS homepage) by :

<a href="{{store url="introduction"}}">Introduction</a>

For template files (.phtml), use:

<a href="<?php echo $this->getUrl('introduction'); ?>">Introduction</a>
3
  • how about none cms pages? i thought there're lots of them on every themes Commented May 5, 2016 at 9:13
  • what's none cms pages ? Commented May 5, 2016 at 9:15
  • CMS page is the easiest way to create a page
    – Manikandan
    Commented May 5, 2016 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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