0

I am really new to magento,I am trying to add my own html page that I have created using visual studio, its an html file so I have renamed it to .phmtl I have places my file in this location

app/design/frontend/default/modern/template/page/profile.phtml

and then I have placed this code

{{block type="core/template" template="page/profile.phtml"}}

in the content area on the cms page. Once I have done this work nothing happens and page does not use the file profile.phtml I wanted to know is it possible to add my page this way or am I doing something/everything wrong? Also the actual profile.html page is not in php its in simple html/css/javascript/jquery file with jquery library tags etc in it. Please reply if anybody know the answer to my question. Thanks in advance

  • What are u seeing in this page?? I mean, Can u see anything after adding? – Sundar Aug 27 '15 at 9:41
  • no nothing appears – sm.ali Aug 27 '15 at 9:42
  • Can u see what u have added? {{block type="core/template" template="page/profile.phtml"}} This one coming? – Sundar Aug 27 '15 at 9:44
  • In the custom lay out I have used modern and empty so page is empty with nothing on it – sm.ali Aug 27 '15 at 9:44
  • 1
    note pad was saving it as .txt so when I changed it to all files then saved it as test.phtml now its giving output test on screen :) – sm.ali Aug 27 '15 at 11:41
1

So the code was correct but these would be the steps to check if something is wrong with the .phtml content

Try creating a different block

app/design/frontend/default/modern/template/page/test.phtml

And in that test.phtml file just write this:

<?php echo "Test"; ?>

Yes thats fine just try and create this and then add the block

{{block type="core/template" template="page/test.phtml"}} 

and see if it works, if yes you know your .phtml file is broken so you should debug this then.

|improve this answer|||||

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.