Using existing PHP catalogue system with CMS made simple

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
erniez13
New Member
New Member
Posts: 3
Joined: Mon Feb 11, 2008 6:25 pm

Using existing PHP catalogue system with CMS made simple

Post by erniez13 »

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
Pierre M.

Re: Using existing PHP catalogue system with CMS made simple

Post by Pierre M. »

Hello,

have you seen the documentation about User Defined Tags (UDT) ?

Pierre M.
vx2008
New Member
New Member
Posts: 3
Joined: Sun Feb 24, 2008 2:51 am

Re: Using existing PHP catalogue system with CMS made simple

Post by vx2008 »

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.
erniez13
New Member
New Member
Posts: 3
Joined: Mon Feb 11, 2008 6:25 pm

Re: Using existing PHP catalogue system with CMS made simple SOLVED

Post by erniez13 »

The solution was easy - Just needed to find the right tag, for example:

{include_php file="top.inc.php"}
Post Reply

Return to “CMSMS Core”