21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 282 Views |
-
Adding Contact Form in CMS

29 July 2012 at 7:24pm
Hi there
I'm wanting to add a contact form to a page but want to have the ability of where it is positioned on the page.
I have used the UserForm Module in the past which is fine but it is positioned under the $content - I want the contact form within the $content.
Is there a way that I can "embed" it from within the wysiwyg editor?
I would be greatful for any feedback or if someone can give me any ideas on how I can achieve this.
Cheers
Natalie.
-
Re: Adding Contact Form in CMS

30 July 2012 at 11:39am
You could use a "shortcode" type thing. Basically what you want to do is a find and replace on the Content. Use a tag/shortcode in the WYSIWYG editor like [UserForm id=5] and search for that string using RegEx. You'll need to load the UserForm and get it's render HTML into the Content variable of the page (not sure how to get the html of the user form off the top of my head though). Overload the Content function on whatever page you have.
-
Re: Adding Contact Form in CMS

30 July 2012 at 9:38pm
UserForms supports embedding the form within the content page (only on the same page as the form). Place $UserDefinedForm where you would like the form to display.
| 282 Views | ||
|
Page:
1
|
Go to Top |


