I have a set of list view and page view pages, however I want a contact form on the page view page. The contact form is working 100%, error checking, sending, etc, works as expected.
However, I want to be able to find out what page within list view the contact form was sent from.
For example -
I have a set of pages within
Like so (Contact form is on these pages in the template) -
When the user sends an email from the page, I want to be able to find out which page within /pages/ the email was sent from. I thought by using the snippet below it would work, but no avail, it ends up like the screenshot below rather than swapping the CouchCMS code for the actual page name.
Any help would be greatly appreciated.
However, I want to be able to find out what page within list view the contact form was sent from.
For example -
I have a set of pages within
- Code: Select all
www.website.com/pages/
Like so (Contact form is on these pages in the template) -
- Code: Select all
www.website.com/pages/page-1.html
www.website.com/pages/page-2.html
www.website.com/pages/page-3.html
When the user sends an email from the page, I want to be able to find out which page within /pages/ the email was sent from. I thought by using the snippet below it would work, but no avail, it ends up like the screenshot below rather than swapping the CouchCMS code for the actual page name.
- Code: Select all
<cms:send_mail from=k_email_from to=k_email_to subject='Contact Form from Pages - <cms:show k_page_title />'>
The following is an email sent by a visitor to you via the contact form.
<cms:show k_success />
</cms:send_mail>
Any help would be greatly appreciated.