Last active
August 29, 2015 14:01
-
-
Save dreadfullyposh/55e11a0ad6cc9fe8cddc to your computer and use it in GitHub Desktop.
Using FreeForm to protect downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the form template, note the return including the form entry id | |
{exp:freeform:form | |
form_name="downloadform" | |
return="templategroup/downloadtemplate/%%entry_id%%" | |
} | |
// fields go here.. | |
{/exp:freeform:form} | |
// This is the download template specified in return | |
{exp:freeform:entries | |
entry_id="{segment_3}" | |
dynamic="no" | |
} | |
{if freeform:no_results}No downlaods for you!{/if} | |
// all the download links go here. | |
{/exp:freeform:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment