Page 1 of 1

integrating a simple php application into cmsms site

Posted: Thu Jan 13, 2011 3:20 pm
by Jesse
Hi, I am in the process of re-creating a currently static site as a cmsms site.
In the existing site I put together a really basic php application. http://www.consumercredit.com/card-act-quiz.php
It is basically just a quiz which scores the user's answers.
I was wondering if anyone had tried incorporating something like this into a cmsms site in the past and how they did it?
Everything else I am doing is just content I can paste in, but Im not sure how I do something dynamic like this?

Re: integrating a simple php application into cmsms site

Posted: Thu Jan 13, 2011 4:08 pm
by Jeff
You should be able to put it in a UDT.

1. Remove the <?php .... ?> and put the rest in a UDT.
2. If the script has any embed html switch it to pure php with echo or print commands.
3. Put the UDT ( {udt_name} ) on a new page.
4. Update any page references in the UDT (pay attention to the file extension set in the config)

That should do it but to be sure I would have to look at the script.