Is this possible with Structure & Freebie?

jasonmorehead's Avatar

jasonmorehead

24 Jun, 2012 05:20 AM

I'm working on a site that will include a "Downloads" area where users can download various types of files. So I was going to build out the section in Structure like normal, set up a couple of channels to handle different types of downloads, and set each channel up as a listing. So far, pretty straightforward. But the catch is that the client wants to require users to fill out a contact form before they can download the file.

So my thought would be to build out the section as normal. However, on the page for a particular download listing, I'll set up a basic contact form using Freeform which, when successfully submitted, would send them to the same URL but with a "success" segment added on the end. Freebie would then use that "success" segment as a trigger word, and instead of displaying the form, would display the download link. So, in other words, here are two sample URLs:

http://www.domain.com/downloads/pdfs/pdf-to-download/ - Normal Structure URL, displays form
http://www.domain.com/downloads/pdfs/pdf-to-download/download/ - Displays if form on above URL is successfully submitted, displays file details and a download link

Based on some other posts I've read in the forum, it seems doable, but I just want to verify that once and for all. Is my reasoning solid, or am I missing something?

FWIW, I'm using EE 2.5.1, Structure 3.2.4, and Freeform 3.1.4.

  1. Support Staff 2 Posted by Travis Schmeisser on 25 Jun, 2012 02:36 PM

    Travis Schmeisser's Avatar

    Sounds completely doable to me, but of course you'll need to run a few tests to verify your specific instance. I've never hidden things behind a form using it, but I don't see why not. Should be really easy to prototype.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Recent Discussions

20 May, 2013 01:18 AM
19 May, 2013 03:57 PM
18 Sep, 2012 03:52 PM
17 May, 2013 02:23 PM
17 May, 2013 11:45 PM