I am new to Magento and just learning. Tried something and got stuck.

I have a footer.phtml and it has a few links. One link is "Terms & Conditions" and I have a page called terms.phtml

When someone click "terms and conditions" want to load the page terms.phtml in the "contents" block.

In the local.xml file I add this

<reference name="content">
    <block type="core/template"  name="terms" as="terms" template="page/html/terms.phtml" />


But it is not working. Please help me

1) what should I give in the a href for terms and conditions

Terms & Conditions

2) What should I write in the local.xml

3) how to call the block in href to load the Contents

| improve this question | | | | |
  1. create a cms page for that follow this link
  2. use the url key in href

you don't need to add xml set the page layout if you want. you can also see the page by clicking the preview

| improve this answer | | | | |
  • Very much greatful , but I want to remove the home page contents and then load the terms and conditions, any suggestions please – user27321 Jun 23 '15 at 8:10
  • mean no header footer? – Qaisar Satti Jun 23 '15 at 8:11
  • I did the same, but works great. But the original body contents still there and the terms comes after the home contents, Am i doing wrong – user27321 Jun 23 '15 at 8:17
  • <reference name="root"> <block type="core/text_list" name="newreference" as="newreference" translate="label"> <label>New Reference</label> </block> </reference> <reference name="content"> <block type="core/template" name="newreference" template="page/html/ebaycatg1.phtml" /> </reference> – user27321 Jun 23 '15 at 8:17
  • r u created the new page? – Qaisar Satti Jun 23 '15 at 8:47

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.