Best method for adding contact form to multiple pages?
|
96 posts
|
I need to add a contact form to dozens of pages. Each form is generic – just name, email, phone and enquiry. I’ve started using ‘Email template’, but it’s a bit of a chore adding 1 page part + 3 children (template, success, failure) for every form. Can anyone recommend a better plugin / method for what I’m doing? |
|
1493 posts
|
Hi David: One thought that comes to mind is inheritance-through-page-parts. Much depends on whether all these pages are children of the same parent. But if they share a common parent, then that parent can include a page-part containing the contact form, :) and you’re away. You would want to hide it on the parent page, I’m guessing. If so something like this might work:
Of course, I’m just guessing which “level” you might want to hide this from, of course. Update: I’ve just clocked that you’re using tuupola’s email form; of course, the method I’m suggesting here would need e.g. tb_contactform. Update #2: And of course I’ve just remembered that each page would need a unique email address for every individual page… So maybe this idea sucks. :) I’ll leave it here, both as a record of my stupidity which may serve as a warning to others, and also on the off chance it might inspire a solution that actually works. |
|
1493 posts
|
I’m frantically busy doing something else, so naturally this came back to mind… A glimmer of an idea inspired by Craig’s solution for multilingual titles:
So the links might look like this:
And the page part could have a comma-delimited list (or something):
And your Will it work? Craig’s been working hard today already, I noticed, but maybe he can opine whether this is a rubbish idea, or whether it might have a future. I don’t know if that would work, but thought I’d toss it out there, just in case it has any merit. If it does work, it would make it pretty easy to keep updated… |
|
291 posts
|
There is no need to add three templates or success and failure pages. Only one of each is enough. Each form can use same template and success or failure page. |
|
96 posts
|
Hi David, Thanks for the suggestions – although looks like I’m not going to use any of them (see reply to tuupola) – but they certainly help wedge a little more ‘Froggy Thinking™’ in to the cranium. ;) Although, I’m going to go back and quickly try tb_contactform again after your suggestion – I did try it a few months ago and didn’t get on with it for some reason – can’t remember what it was now. ~~~ tuupola, D’oh! Of course! :) That makes it much easier. Thank you. |