Forms included with eeSiteKit:
- Comment
- Email Contact
- Email List Signup
- Member Login
- Simple Search
- Tell-a-Friend
Using eeSiteKit’s Pre-Coded Forms
eeSiteKit includes pre-coded forms for most of ExpressionEngine’s form-using modules.
Multilingual Ready: All the forums are multilingual-ready, so the language used in them can be set in the language templates in the “kit_language” template group. If your website will only have one language, you may remove any of the language variables in the forms. The advantage to adjusting language in the host language template in a single-language site, is that you are building a custom language template that you can can copy and install into future websites.
How to Embed A Form: The benefit of having each form in its own template, is that the same form code may be embedded into many different pages, and should it ever need updating, the code may be changed in one place.
A common practice is to embed a contact form into a Landing or Category level page within a website. For this example, we want the contact form to display in the “kit_display/category” template when visitors are viewing the /contact-us/ category of the site. We only want this form to be added to the page when the URL is:
http://asitedomain.com/about/contact-us/
We will wrap the Contact Form embed tag in a simple conditional that tests against setment_2 of the URI for “contact-us”:
{if segment_2 == 'contact-us'}
{embed='kit_language/{embed:site_language}' template='kit_forms/contact' email_recipients='email@asitedomain.com'}
{/if}
Now the Contact Form will be dynamically embedded into the page of the website created by the category called “contact-us”.
If this were to be a contact form in a multilingual site, then you may set up the simple conditional to check against the selected language of the /contact-us/ segment by having it check a language variable. In this example, we are checking segment_1 (the landing page) for the template group /contact-us/ as it would appear in segment_1.
{if segment_1 == '{embed:lang_contact_us_template_group}'}
{embed='kit_language/{embed:site_language}' template='kit_forms/contact' email_recipients='email@asitedomain.com'}
{/if}
You’ll find all the form embed tags in the kit-embed-tags page of the User Guide.
More information specific to each form is available in the other pages of this section.
