This module is a great addition to my Drupal install. Keep up the good work.

Although, I do have one question/request, is it possible to use a token like [title] as the subject?

Something like this... contact/Jill_Jones/[title], where [title] is the token for the title of the node, rather than... contact/Jill_Jones/Enquiry_about_Sales.

When I do try to use a token like [title], the subject field is populated with "[title]".

I have the Token module (http://drupal.org/project/token) installed if that helps any.

Maybe I'm just in the wrong place and this is actually a Contact Form question.

Comments

behindthepage’s picture

Status: Active » Postponed (maintainer needs more info)

Glad to hear that you have found my module useful.

The contact form submission is not a node and is not related in any way to any other node. The token, [title], represents the title of the current node that you are creating so in this situation it is meaningless and I don't think you can use tokens in drupal paths.

So I think the answer to your question is NO, however I am open to the possibility that you are trying to do something very clever that I haven't understood.

What were you expecting the token, [title], to represent?

Regards
Geoff

geverest’s picture

Well, as for tokens in Drupal paths, I use the FileField module for CCK and it allows me to assign a token to a Drupal path. At least I believe that's how it works.

As for what I want to do it's really very simple. When I am done I will have about 400,000 nodes that refer to a public domain publication that is in a specific modular format. These nodes are self creating by referencing databases like Project Gutenberg and the like. I was hoping to get Contact Forms to be able to use the token [title], which is the title of the node, to allow the user to report a possible copyright violation using the Contact Form with the node title in the subject. I hope that makes sense.

As for now I'll just use it the way it's designed and later work on a method to automate the building of the link to the Contact Form for the node.

Even if Contact Forms won't use tokens, this is still a cool module!

behindthepage’s picture

Right, I understand now. What you want to do is possible if, as you said you are using CCK and tokens. Also check out computed field module for CCK. It will allow you to automate the building of a link using the other fields of the node and any other info you are clever enough to access. I have used it for this purpose in the past.

As you said, the key here is not getting Contact forms to use tokens but to automate the creation of the link.

If you have any problems with that, give me more specifics and I will help further
Regards
Geoff

behindthepage’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)