Jump to content

Adding PHP and JavaScript to CMS page


Recommended Posts

I want to add a Constant Contact form to a CMS page.  My idea was to use Smarty to include the file with the javascript on it.


In the theme CMS tpl I'd add:

{if $cms->id == 45}
   {include file=".ccform.tpl"}

Here's my question.  Is this a good way to do this?  Are there any concerns with doing it this way.  I've seen the category.tpl file work in a similar way including the product-sort.tpl and such.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...