Creating a 'send to a friend' formCreating a 'send to a friend form' in neatComponents is straightforward. The objective is to provide a link in many pages of your site, which goes to a form, in which the visitor enters the email address of their friend. Their friend is then sent an email which includes a link to the page the visitor was looking at. There are many variations on the 'send to a friend form' which you can do - for example you may want to allow a message to be entered by the visitor along with the link, and of course to include their identity too. These variation are simply a matter of adding in extra fields to the Form, and embedding them on the email. To create a 'send to a friend form': - Create a Form
- Include a field of type 'Page Referrer'
- Include a field of type 'Email'
- Include as many extra optional fields as you like.
- Configure the Event email for the Form to send an email to the Email address which contains a message, including the Page Referrer field - which will give the link back to the particular page on the site the visitor was on.
- Now, for each page you want to have a link to the Form, create a link to the Form component, and add in explicit parameters of 'action=edit&replyid=-1'.
(It will be quicker to include this in the text Zone of a Layout Element, rather than repeately adding it to individual pages)
|