CEA- make these links visible and removable. They are spread across two templates: the customer account overview with the entry point, and the overview page of connected accounts with the actual list.
Guide: External login
Two prerequisites
The entry point in the customer account
The customer account overview page (ws_user_account.htm) only shows the notice that links exist, together with a link to the list.
CEA-Overview
Applies if at least one external account is connected.CEA-OverviewLink
Returns the address of the overview page. A single tag only.The negative area is worthwhile. A buyer who only logs in with email address and password should not be sent to an empty page.
The overview of connected accounts
The list is on its own template (ws_connected_externaccounts.htm).
CEA-Data
The central tag, in three roles.The details per link
CEA-AdditionalInfo can be empty. If someone set up their external account with a phone number instead of an email address, nothing is returned here. Therefore, bracket the field instead of leaving an empty table cell.CEA-ID has no meaning for the buyer and does not belong in the display. The identifier is useful as a hook for CSS and JavaScript, for example to target a specific row.Distinguishing by account type
CEA-LoginType() accepts an account type as a parameter and thereby becomes an area tag: the area applies if the link is of this type.
Without a parameter, the tag outputs the type as text. With a parameter, it compares and outputs nothing itself. This lets you set a separate logo for each provider without displaying the names from the database directly.
Removing a connection
CEA-DeleteLink
Returns the address via which the buyer removes the link. A single tag only, and only valid within the loop.The address contains an encrypted parameter that holds the account type and identifier. It cannot be built by hand, and a modified link is rejected. Therefore, always use the tag.
The feedback
After removing the link, the buyer returns to the overview page. Two areas report the result there.Both areas belong above the list, not below it. The buyer should see the feedback before reading the changed list.
The tags at a glance
Where the tags belong
Related topics
- Guide: External login
- Guide: Login and registration
- Reference: Buttons for customer account and login
- Guide: Customer account
