- b2evolution CMS User Manual
- Back-office Reference
- Collections
- Contents
- Short Tags Reference
- [emailcapture:] Short Tag
[emailcapture:] Short Tag
Built-in Feature
This will display an email capture form (through the Email capture / Quick registration Widget) and automatically register users to a mailing list.
You may use this at the end of a post or even on a standalone "sales" page.
After the email capture, you may or may not ask the user for more info, including a password. See: Options for All Registration Methods Panel.
Note:
[emailcapture:]
renders a widget "Email capture / Quick registration Widget" (<div class="evo_widget widget widget_core_user_register_quick">...</div>
) and cannot appear inside a paragraph. (b2evolution will automatically move it out of the paragraph).Syntax Breakdown
[emailcapture:
List ID [ /User Tag ] [ : Fields ] [ : Button Text ] ]
- List ID: the ID of the mailing list where registered users will automatically be subscribed into.
- User Tag: optional user tag that will be assigned to the account of registered users.
- Fields: By default only the email of the user is required by the form. You can require the following fields in the email capture form by specifying them in this param, separated by a plus (
+
) sign:firstname
: require first namelastname
: require last namecountry
: require country
- Button Text: string displayed in the submit button of the capture form
Samples
[emailcapture:2]
[emailcapture:1/interested user:lastname+country:Register me]
Please note:
- Quick registration must be enabled in Standard Registration Panel, otherwise the tag will display an error message.
- If the User is already logged in, this tag will display nothing.