I'm a bit confused as to how to use this module. The readme file is blank and the example in the help section is a little vague. Could you help fill in the missing blanks for me?

Thanks,
Jason

Comments

neclimdul’s picture

I will

jaskegreen’s picture

Huh? Again vague. How and when will this happen?

jaskegreen’s picture

Huh? Again vague. How and when will this happen?

neclimdul’s picture

That was an uncaffeinated attempt at saying I saw your issue before my work day started. Implying that while I couldn't look at it then I'd take a look later. Sorry it wasn't better.

First, I haven't made a full module because of points like this. The module is lacking some documentation and other features. Since you asked though I'll respond here and then fill in the README.

Here's what the help page provided by the module says:

This module provides extra functionality to the the default drupal contact module.

With it you can:

  • Pass "category" as a GET arguement to set the category of the contact. This coresponds directly to the text of the category.
  • Pass "subject" as a GET arguement to set the subject of the contact form.

An example would be:

l('Provide feedback about our new frontpage', 'contact', NULL, 'category=Website feedback&subject=New frontpage feedback')

With this module the listed code would link to a page("example.com/contact?category=Website feedback&subject=New frontpage feedback") that has the category "Website feedback" selected and hidden and the subject filled in with "New frontpage feedback". So when the form is filled out and submitted all the things that would happen if that form where normally filled out and that category selected will happen.

The reason I release this module was because I commonly found the need to link to specific types of feedback forms without breaking or drastically changing the default contact form provided by Drupal. It doesn't provide a lot of flash but I hope you find it helpful.

James

jaskegreen’s picture

Thank you, thank you, thank you for making this module. It is exactly what I needed. That's why I've kept prodding you for more. Sorry if I came across a little brash. I guess you can call my last post an over-caffeinated response. : - ) I can't believe someone else didn't need this before.

Again, thank you and good work,
Jason

jaskegreen’s picture

Sorry to drag this on, but I am getting page errors. I have used your example and modified it with my info but coming up with Not Found errors.

I have also created a link to the contact page with code as follows:
?q=contact?category=LifeDesign&subject=Apologetics Conference
This is resulting in errors as well.

I am using tinyMCE. Is this causing problems? Does the input format matter? As I can tell, there are no options to configure anything on this module. What do I need to do to get this working?

Thanks,
Jason

neclimdul’s picture

That is because both of my url assumed clean urls. the drupal l() and url() functions take care of figuring out if you have clean urls on automatically so are useful for this.

The problem is you have two "?" in you GET arguements.
?q=contact?category=LifeDesign&subject=Apologetics Conference

& separates GET variables so you should have the following url:
?q=contact&category=LifeDesign&subject=Apologetics Conference

jaskegreen’s picture

It has all come together now. Thank you for sticking with me on this. I'm still learning about Drupal even though I've been using it for a long time. Also, thanks for making this module, it's going to be very helpful.

Thank you very much,
Jason

jaskegreen’s picture

Status: Active » Closed (fixed)
mrlovecraft’s picture

How could I send as subject the title of the page that I'm in?

asak’s picture

mrlovecraft: use the tokenize.module to insert the token ([nid] or anything elese) as part of the link in a cck field.

tanyi’s picture

Were you able to get the tokenize module to do this?

asak’s picture

Yes. I'm now using this module with tokenize and CCK to create an automaticlly generated link to a contact form, using a defined catagory and setting the subject of the form to "Regarding: Node-Title-Goes-Here".

This rocks.

neclimdul’s picture

That is awesome! I'd never thought of using the module that way. Do you think you could open up maybe a forum post discussing how you did it? Maybe we will get a recipe handbook page built or something as I'm sure that would be a handy thing for people to use.

Thanks!

tanyi’s picture

I agree with your suggestion!

asak’s picture

Check out This HowTo page.

francewhoa’s picture

I'm contributing a README.txt file at: http://drupal.org/node/326340

It is base on above comments. Hope this help.