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
Using existing PHP catalogue system with CMS made simple
Re: Using existing PHP catalogue system with CMS made simple
Hello,
have you seen the documentation about User Defined Tags (UDT) ?
Pierre M.
have you seen the documentation about User Defined Tags (UDT) ?
Pierre M.
Re: Using existing PHP catalogue system with CMS made simple
I am also trying to figure out how to get php tags to work in my content page. I've tried the above method, which doesn't work. I set my use php setting in the config file to true. Tried to use a UDT tag but I continue to get 500 errors.
Last edited by vx2008 on Mon Feb 25, 2008 1:14 am, edited 1 time in total.
Re: Using existing PHP catalogue system with CMS made simple SOLVED
The solution was easy - Just needed to find the right tag, for example:
{include_php file="top.inc.php"}
{include_php file="top.inc.php"}