Jump to content

Adding PHP and JavaScript to CMS page


nbarnum
 Share

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"}
{/if}

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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More