Using existing PHP catalogue system with CMS made simple
Posted: Mon Feb 11, 2008 6:32 pm
Hi,
I just started using CMS made simple for a client, and I love the simplicity it gives the end-user.
However, the requirements for the new site we are making have changed - and we would like to implement a custom product catalogue/designer and ordering system with CMS made simple - If at all possible.
Basically what I want to do:
Split out the header and footer parts of my CMSMS template so that I can include it in my code like so:
include("top.inc");
-> My code here
include("bottom.inc");
And then call it like: www.mysite.com/catalogue.php
- Of course in addition to having the "regular" CMSMS stuff running alongside this (default index.php)
This might seem simple enough - But I have not been able to figure out how to get CMSMS to parse some HTML with Smarty tags, and return the output to my script.
My first approach was that I just split out my header and footer - threw them into files, and then in the CMSMS template manager tried doing {php}include("top.inc"){/php} - Which obviously does not work.
So to recap: Split out header and footer parts of the website to files so that I can use them both in the CMSMS template AND in my custom scripts.
Any way this is possible without doing WAY too much hacking??
Thanks!
- Erniez13
I just started using CMS made simple for a client, and I love the simplicity it gives the end-user.
However, the requirements for the new site we are making have changed - and we would like to implement a custom product catalogue/designer and ordering system with CMS made simple - If at all possible.
Basically what I want to do:
Split out the header and footer parts of my CMSMS template so that I can include it in my code like so:
include("top.inc");
-> My code here
include("bottom.inc");
And then call it like: www.mysite.com/catalogue.php
- Of course in addition to having the "regular" CMSMS stuff running alongside this (default index.php)
This might seem simple enough - But I have not been able to figure out how to get CMSMS to parse some HTML with Smarty tags, and return the output to my script.
My first approach was that I just split out my header and footer - threw them into files, and then in the CMSMS template manager tried doing {php}include("top.inc"){/php} - Which obviously does not work.
So to recap: Split out header and footer parts of the website to files so that I can use them both in the CMSMS template AND in my custom scripts.
Any way this is possible without doing WAY too much hacking??
Thanks!
- Erniez13