Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# mrt 5/25/2007 9:55 AM
I'm modyfing the downloads module to request information before allowing the download. I've got a contact form module with lots of little features I want to use.

I've been trying to think of a way to embed the contact module inside the download, so when they click the link it reveals the contact module. But of course contact needs all its section config to exist, so now i'm thinking maybe I can embed a contact module next to the download one, and get the event in the download to reveal the hidden contact one, then when contact is submitted it will return to the download event to process it.

Is there an easy way to do this?
# swilliam 5/25/2007 10:44 AM
I can't think of a clever solution, but you could try the strategy used by forms authentication; redirect the user to the contact form with the return URL tacked into the querystring, then redirect to that URL once you've finished.

Not pretty, but could be a quick fix.

Simon
# martijnb 5/25/2007 10:45 AM
Personally, I think it will be easier to just extend the Downloads module.
# mrt 5/29/2007 5:58 AM
yeah i was planning on extending the existing downloads module for this anyway, and i'll need to extend my contact form. I'm just trying to get the encapsulation as logical as I can.

I think the idea of redirecting across pages is the best one, then i can add a redirect option to downloads that passes in the filename, and a redirect after submit option on the contact form.