We run a series of trainings that require advance registration. Most of these classes are free. We're looking for a method to stick some form or big red link at the top of every listing that users can click in order to express interest in the class. Sort of a "please call me about this, here's my info" method.

The standard Drupal contact module won't cut it because we would like the visitor to automatically have the class title and times already filled in on the form.

Any ideas how I could get this kind of function?

Thanks in advance!

Comments

seaneffel’s picture

I am using Webform to make the form and I can use Views to place that form in a block and show on pages. That's pretty good progress.

How can I set a contextual filter on the view to hide the block if the date field on the node is in the past. In other words, how to I hide the block when the class is over?

vm’s picture

the block shouldn't display if there aren't any results being returned. The contextual filter would seem to me to be the same as one required for upcoming events. D6 calendar modules came with a view that included an events calendar. IIRC it was set to something like now + x# of days ?

seaneffel’s picture

The filter for a date field has the relative language options, but the contextual filter is a different thing. If there were a way to have a relationship between the core submitted date field and a custom date field, then we could pull a match.

Convincing the view into returning no results when the date has passed is a few notches above my custom PHP ability. I'm stuck on this one.