Direct Links
Generate unique urls that you can send to your customers and track their submissions.
Templating
In your sites templates directory create the following folder structure:
.
├─ qarr
└─ direct
├─ review.twig
└─ question.twig
This will overwrite QARR's templates with your custom markup.
NOTE
You can use twig
or html
file extensions
Example Forms
Use these example forms for your templates:
At minimum these are required fields
<input type="hidden" name="elementId" value="{{ element.id }}">
<input type="hidden" name="currentUser" value="{{ user.id }}">
<input type="hidden" name="directLinkId" value="{{ model.id }}">
Variables
You have access to the following:
element
- craft\elements\Entry or craft\commerce\elments\Product (depending on type you choose when creating a direct link)user
- craft\elements\Usermodel
- Direct Link Model