By AtReyU on
Hi all, I am absolutely new to Drupal and got thrown in the deep end.
I have basically taken over the website http://train.clearmark-demo.co.za ... It is a site where training courses are listed. Now I got asked to add a contact form on any page with the content type "Training Course" (at this moment there is an email address field which has a "mailto" link).
The reson that this is necessary is because the owner of the site wants a report on how many times each month a specific training course admin has been contacted.
I have absolutely no idea what to do or where to start with this.
Comments
webform
I think webform http://drupal.org/project/webform/ would be a good starting point as it stores all submissions & data can be exported as csv, excel
Peter J Lord
http://peterjlord.co.uk
Formblock
Agreed, webform is the best way, especially in the long term if CRM integration is a possibility, or if you plan on customizing the form itself, making different versions, etc.
But, if you're looking for the quick and easy way, you could always just install the formblock module. Put the site wide contact form in a block, then set that block to show up on all the training course pages. You would probably also need to install something like Contact Save or Mail Logger to handle the reporting.
It looks like you have pathauto installed, so you can use that to control the block. Go to the automated alias settings and give training course nodes a unique prefix. Then use that prefix with a wildcard character in the display settings of your formblock.
Before you make changes to your paths, though, it's also a good idea to look into redirect solutions if you haven't already, so you don't break everybody's links. There's more info about this on the pathauto module page.
Overestimated
I think you may have overestimated what I know about Drupal. I seriously don't know how anything in Drupal works. I look at it and it makes absolutely 0% sense to me. I know how to install a module and create a page, but further that that it's Greek to me.
Now that I have installed the "formblock" module, how do i "Put the site wide contact form in a block, then set that block to show up on all the training course pages.".
Let me first understand this and then the next step would be the unique prefix thing (Whatever that means).
1) Install webform 2) Enable
1) Install webform
2) Enable the module (admin/build/modules/list)
3) Grant yourself permissions to use the module (admin/user/permissions)
4) Now you can see that you can create new content (node/add/webform)
5) Enter the title, fill in the "e-mail from name" field and save
6) Now you can specify what components you want to have in your webform:
- Enter the name of your component and choose the type of your component. Press "add".
- In Advanced settings, you can specify if you want to make this field mandatory and include it in e-mails.
- Press "submit"
7) Add as many components as you want.
8) Save your webform.
9) Go to admin/content/node/overview and edit your webform
10) Enter the conditional e-mail recipients (you can choose from your components now)
11) Save
12) To make it displayed in a block, you have to install webform block module (http://drupal.org/project/webformblock), enable it and check the field "expose this webform as a block".
Good Luck! :)
Oruen