The frontend-form can be added everywhere on the site as a content-element. The PID of this page has to be used later to configure the links to the form. Set this page as “hidden in the menu”, so it doesn't appear in the menu tree.
A single link can be added everywhere as a content element. Change the code in the general-sheet to TIPLINK. Set the link over the PIDtipform constant in TS or with the Constant Editor.
To add a link on every page with TempleVoila add something like this in the setup-field of the template:
lib.tipafriend = USER
lib.tipafriend {
userFunc = tx_tipafriendplus_pi1->main
typolink.target = _self
code = TIPLINK
templateFile = {$plugin.tipafriend_plus.file.templateFile}
typolink.parameter = {$plugin.tipafriend_plus.PIDtipForm}
htmlMail = {$plugin.tipafriend_plus.htmlMail}
typolink.ATagParams = {$plugin.tipafriend_plus.ATagParams}
}
Add the lib to the TV XML and map it to the desired element.
Code
FIELD | Description: |
|---|---|
TIPFORM | Displays the form in which to enter the email address of the recipient. |
TIPLINK | Makes a link from the current page to the TIPFORM page. |
Admit Html-Mail Option:
If checked a checkbox that allows the user to send html-mails will appear in the frontend-send-form.
Disclaimer:
Diclaimer text for frontend-send-form.
Email : Subject
The subject field of the email. If left empty a default value will be used. Default (eng) : “Tip: Check this”.
Email: Text between sender and URL
The text that appears in the email body after the sender and before the link to the recommended page. If left empty a default value will be used. Default (eng): “wants you to take a look at this link:”
Email: Text before Message
The text that appears in the email body before the message. If left empty a default value will be used. Default (eng): “Message:”
Email: Footer
The text that appears in the email body at the end. If left empty a default value will be used. Default (eng): “Best regards”