Administering Web Alerts

The Web Alert feature enables Ektron to generate email for a list of registered users whenever new or existing content is published. Interested site visitors register to be notified when new information about your product is published. When content is published, the users receive an email with a link to the new/updated page. The recipient clicks the link to access the page.

As a result, a self-selected group of users are notified of changes relating to their interests. When the Web Alert feature is set up, you don’t need to do anything—everything happens in the background.

Sample Web Alert email

Sample Web Alert email

Prerequisite: Only members of the Administrator Group or users assigned to the Folder User Admin role can work with Web Alerts

How Web Alert works

How Web Alert Works

The following explains the Web Alert feature.

  1. Content is published.
  2. Ektron checks the Staging Server checkbox on the Settings > Configuration > Setup screen. If it is unchecked, proceed to the next step. If the box is checked, no Web alerts are issued for this server.
  3. Ektron checks to see if any subscriptions are assigned to folders or content.
  4. If no subscriptions are assigned, the Web Alerts tab does not appear when editing content.
  5. If any subscription is assigned, Ektron checks to see if an email should be created for this content. The settings appear under the Web Alerts tab. For example, some content only triggers an email when first published, while other items always generate an email.
  6. If an email should be generated, Ektron composes the email by retrieving information from the Folder Properties screen > Web Alerts tab > Web Alert Contents fields.
  7. Ektron determines which subscription lists should receive the email. These are identified on the Available Web Alerts area of the Web Alerts tab. The lists contain subscribers' email addresses.

Server configuration

Server Configuration

The following is a typical Web Alerts server configuration.

  • Firewall—the Ektron business tier (which maintains the Ektron files) must have Web access to the asynchronous server. This configuration enables proper communication between Ektron and the asynchronous processor.
    • The asynchronous processor must have port 25 (SMTP) access to a valid mail server to send emails
    • The mail server (omitted from the illustration) must be allowed to send out port 25 (SMTP) traffic and can reside on the asynchronous server
  • Queuing—Message queuing must be enabled on the asynchronous server.
    • You must create a message queue on the asynchronous machine and record its name. The message queue is specified in the exe.config file for the service, and in the web.config file for the Web Service interface.
  • CMS—The web.config file includes a key for the location of the asynchronous processor. This needs to be verified as working.
  • Other—IIS must be installed on the asynchronous processor. IIS allows a Web service call to schedule a file download and send commands.
    • The asynchronous machine should only allow HTTP traffic from Ektron servers. This provides additional security on the asynchronous processor.
Verifying connections

Verifying Connections

  • You can verify the Web service > queue connection by
    • leaving the Ektron asynchronous processor service off, submitting content with notifications, and verifying that a message arrived in the queue
    • turning on journaling for the queue. Submit a message in the queue. The Ektron asynchronous processor service picks it up and places it in the journaled messages.
    • turning on logging for the Ektron asynchronous processor service
  • To verify the Ektron > Web service connection, open the asynchronous processor location inside a Web browser and test the Web services.
    • To verify the writing of files, ensure that Ektron has write access to the [sitepath]subscriptions directory and submit content that will trigger notifications. This action places a file inside that directory.
  • To verify that the Ektron asynchronous processor service can download a file, open a Web browser on the asynchronous machine and connect to the location of the notification command files. Attempt to download one.
Enabling the Web Alert feature

Enabling the Web Alert Feature

  1. Set up message queue and asynchronous processor.
    See Also: Setting Up Message Queuing and the Asynchronous Processor
  2. Create messages—Define components of the email to be sent to subscribers.
    See Also: CreatingMessage Components
  3. Define subscriptions—Categories of information on your site. Site visitors can subscribe to be notified when content in a category is added or updated.
    See Also: Defining Subscriptions
  4. Assign Web Alert information to folders and content—For each folder or content item to which you assign subscriptions, determine
  5. Create and publish site visitor registration page—Create a new Web form and drop the membership server control onto it. Then, publish that form on your Web site.See Also:

    NOTE:  This task is typically done by a developer.Membership Server Control

  6. Site visitors subscribe to lists of interest—Someone signs up to be notified when changes in a selected subscription (category) are published. See Also: How Users Sign up for Subscriptions
  7. Ektron users can also subscribe. See Also: CMS User Subscription Sign Up
  8. Subscribers are notified when content is first published or updated—If at least one subscription is assigned to the content or its folder, email is sent according the folder's Web Alert settings.
Combining components to create the message

Message Components

A Web Alert email is made up of the following components, defined on the Folder properties Web Alerts tab. See Also: Assigning Web Alert Information to Folders and Content

NOTE: If you reached this screen while creating an eCommerce message, see eCommerce Messages.

See list of components.

NOTE: To set or modify this information, you must have permission to edit the folder.

The elements appear in the sequence shown above.

Setting up message queuing and the asynchronous processor

Setting Up Message Queuing and the Asynchronous Processor

After installing Ektron, set up Microsoft Message Queuing and the Ektron Asynchronous Processor. The installation places the following directories and files on your server.

  • C:\Program Files\Ektron\CMS400versionnumber\EktronAsyncProcessor_Service\
  • C:\inetpub\wwwroot\siteroot\bin\EktronAsyncProcessorWS.dll
  • C:\inetpub\wwwroot\siteroot\Workarea\webservices\EktronAsyncProcessorWS.asmx

NOTE: If you need to move Web services file, use the Asynchronous Processor Location field in the Configuration > Setup screen to specify the new folder location.

Procedure for setting up message queuing and the asynchronous processor

Procedure for Setting Up Message Queuing and the Asynchronous Processor

  1. On the server that hosts Ektron, go to Control Panel > Add/Remove programs > Add/Remove Windows Components.

    NOTE: In some Windows versions, you access Turn Windows features on or off then select Microsoft Message Queue (MSMQ) Server.

  2. If it is not checked, check Message Queuing Services.

    Windows 2008 R2

    Windows 7

    NOTE: On Windows Server 2003, it is within the Application Server Components group.

  3. If Message Queuing Services was checked when you viewed it, go to step 5. If it was not checked, click Next. A wizard creates the component.

    The rest of this procedure employs a wizard that saves several manual steps. If you have a problem using the wizard, or prefer to install Web Alerts manually so you can track the files being installed to your server, see Manual Setup of Message Queue and Asynchronous Processor.

  4. From the Windows Start Menu, click All Programs > Ektron > CMS400v8x > Utilities > Web Alert Setup. The Web Alert Wizard setup screen appears.

  5. Click Next. The wizard begins installing the Web Alerts feature.

    The following screen appears.

  1. Enter the username and password that will be used to send and receive email.
  2. At the Log File Name field, enter the name of the file that will track Web Alert activities. If you enter nothing, the file is named listener.log. The file resides in the C:\Program Files\Ektron\CMS400versionnumber\EktronAsyncProcessor_Service folder. It is also available from the Workarea. See Administering Web Alerts. If you want a very detailed log file, click Logfile Verbose.
  3. If your Asynchronous Processor service is not running, the following message appears. If you see this message, click OK then click Finish.

  1. Go to Control Panel > Administrative Tools > Computer Management > Services and Applications > Services.
  2. Start the Ektron Async Processor service.
Manual setup of message queue and asynchronous processor

Manual Setup of Message Queue and Asynchronous Processor

This section describes manual steps for setting up the Message Queue and Asynchronous Processor. You can use this procedure if you had a problem using the wizard, or you want to know which files are being installed on your server.

  1. Go to Control Panel > Administrative Tools > Computer Management > Services and Applications > Message Queuing.

    NOTE: In some Windows versions, you access this screen by clicking Start > Computer > Manage.

  2. Right click the Services and Applications > Message Queuing > Private Queues folder and select New > Private Queue.

  3. Create a private queue named msmq_web.
  4. Right click msmq_web and select Properties.
  5. Go to the Security tab. You can give the Everyone group Full Control if you are in a testing environment. If you are on a production server or want better security, delete the following permissions for the local system account (the account under which the EktronAsyncProcessor Service runs):
  • Receive Message
  • Peek Message
  • Send Message
  1. Give the ASP.NET account (the account under which the Web services interface runs) Send Message permission.
  2. Click OK.
  3. Open the following file: C:\Program Files\Ektron\CMS400v8x\EktronAsyncProcessor_Service\RegEktron.Services.EktronAsyncProcessor.bat
  4. Review and update as necessary the paths to the .NET directory and Ektron.Services.EktronAsyncProcessor.exe file.
  5. Update the paths to the .NET Directory and the .exe file if necessary.
  6. Execute the .bat file. Or, from a command line or Start Menu > Run, enter: C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutilC:\program Files\Ektron\CMS400v8x\EktronAsyncProcessor_Service\Ektron.Services.EktronAsyncProcessor.exe
  7. Open the following file and enter your SMTP connection settings: C:\Program Files\Ektron\CMS400v8x\EktronAsyncProcessor_Service\Ektron.Services.EktronAsyncProcessor.exe.config.
  8. Go to Control Panel > Administrative Tools > Computer Management > Services and Applications > Services. Start the Ektron Async Processor Service.

Creating message components

CreatingMessage Components

Before you can create an email message, define the following components.

  • default message text
  • opt out message
  • unsubscribe message
  • “from” address

You can define several of each item. You must define at least one opt-out message, unsubscribe message, and “from” address to use the Web Alert feature.

After setting up message components, they are referenced on the folder's properties screen's Web Alerts tab. See Also: Message Components

Creating default message text

Creating Default Message Text

To create one or more default messages:

  1. From the Ektron Workarea, choose Settings > Configuration > Web Alerts > Messages.
  2. Click Add Email Message.
  3. Enter a Title that describes the message.
  4. At the Type field, select DefaultMessage.
  5. In the editor, enter the message text.
  6. Click Save.
Including variables in the default message

Including Variables in the Default Message

The default message can include variables that retrieve content information into the message text. The variables are surrounded by at signs (@). For example

The following content was recently updated: @AppContentLink@

The email text might read:

The following content was recently updated: The Effect of Coumadin on Cardiac Patients

Use the following variables in a Web Alert message.

Show list.
  • @appContentTitle@—The title of the content block.
  • @appCRLF@—A carriage return. Moves text down one line.
  • @appContentLink@—The link to the content block on the Web site.

    NOTE: You must be logged in to see the changes.

  • @appContentURL@—The URL of the content, from the quicklink and domain.
  • @appSubscriptionNames@—Comma separated list of subscriptions that a user selected.
  • @appComment@—The comments for the content block.
  • @appSubmitterFirstName@—The first name of the user who submitted the content block.
  • @appSubmitterLastName@—The last name of the user who submitted the content block.
Creating opt out message text

Creating Opt Out Message Text

An Opt-Out message appears as the first line of every email. It directs the reader to the Unsubscribe message at the bottom. Here is an example:

You have subscribed to receive alerts from the Ektron email alert system. See below for removal instructions.

You can add variables to the Opt Out text. See Also: Including Variables in the Default Message

  1. Go to Settings > Configuration > Web Alerts > Messages.
  2. Click Add Email Message.
  3. Enter a Title that describes the Opt-Out message.
  4. At the Type field, select OptOut.
  5. In the editor, enter the message text.
  6. Click Save.
Creating unsubscribe message text

Creating Unsubscribe Message Text

An Unsubscribe message helps an email recipient remove himself from the subscription list. You can add variables to the Unsubscribe text. See Also: Including Variables in the Default Message

  1. Go to Settings > Configuration > Web Alerts > Messages.
  2. Click Add Email Message
  3. Enter a title that describes the Unsubscribe message.
  4. At the Type field, select OptOut.
  5. In the editor, enter the message text.
  6. Click Save.
Creating “from” addresses

Creating“From” Addresses

Web Alert emails must have a “from” address.

  1. Go to Settings > Configuration > Web Alerts > Email From List.
  2. Click New > Email From.
  3. Enter an email address to be used in the "From" field of Web Alert messages.
  4. Click Save.
Defining subscriptions

Defining Subscriptions

Create a subscription for each type of information site visitors might want to be notified about. For example, if your site sells electronics, create subscription for televisions, computers, and smart phones. Site visitors subscribe to areas of interest. Ektron and membership users can also sign up for subscriptions.

Creating subscriptions

Creating Subscriptions

  1. Go to Settings > Configuration > Web Alerts > Subscriptions.
  2. Click Add Subscription.
  3. Enter a name for the subscription.
  4. Check the Enabled box if the subscription is active.
  5. Click Save.
Appearance of subscriptions on Custom User Properties screen

Appearance of Subscriptions on Custom User Properties Screen

When you create a subscription, a new entry is created on the User Properties screen's Custom tab. By default, its name is Subscriptions, and its type is Category.

Subscriptions appear on the

  • Site Visitor Registration screen
  • Membership user information screen > Custom tab
  • User information screen > Custom tab
  • User group information screen > Custom tab

By default, the label Subscriptions appears on the screen. To change it to something more helpful, such as Select Areas of Interest:

  1. In the Ektron Workarea, go to Settings > Configuration > Custom Properties.
  2. In the Object Type field, select User.
  3. Click Subscriptions.
  4. Edit the Label field.

The following graphic illustrates the relationship among the Subscriptions, Custom Properties, and the Site Visitor Registration screen's Custom tab.

Using subscriptions in a multi-language system

Using Subscriptions in a Multi-Language System

When you create a subscription, a version is created for every enabled language. You can edit the subscription name and Enabled value for any language, but cannot change the ID number.

  1. Go to Settings > Configuration > Web Alerts > Subscriptions.
  2. From the View Languages drop-down list, select the language into which you want to translate the subscription.
  3. Click the subscription that you want to translate.
  4. Click Edit.
  5. In the Name field, enter the translation for the subscription name. If desired, you can check or uncheck the Enabled checkbox. Only enabled subscriptions appear.
  6. Click Update.
Assigning Web Alert information to folders and content

Assigning Web Alert Information to Folders and Content

After creating messages (as explained in CreatingMessage Components) and subscriptions (as explained in Assigning Web Alert Information to Folders and Content), you identify which folders include content that, when updated, trigger a Web Alert. For example, new product announcements are placed in the Marketing folder.

NOTE: To set or modify Web Alert information, you must have permission to edit the folder. See Also: Managing Folder Permissions

For each folder, you can assign the following kinds of message information.

  • whether Web Alert information is inherited from a parent folder or customized
  • when email is sent: always, only on initial publication, or never
  • the content of the Web Alert email
  • the subscriptions assigned to the folder. These determine which recipients receive the Web alert email.
Customizing Web Alert information for a folder

Customizing Web Alert Information for a Folder

Like other folder-level information in Ektron, Web Alert information is inherited from a parent folder. By default, all folders inherit Web Alert settings from the root (Content) folder. However, you can break inheritance and customize the settings for any folder or content item. See Also: Assigning Web Alert Information to Content

To modify folder-level Web Alert information:

Prerequisites: 

  1. Navigate to the folder whose Web Alert information you want to edit.
  2. Click View > Properties.
  3. Click the Web Alerts tab. The Web Alert options appear.

  4. Click Edit Properties. The following table describes the fields.
    —Field descriptions—

    Field

    Group

    Description

    Inherit parent configuration

    To inherit Web Alert settings (described below) from this folder’s parent folder, leave this box (Break Inheritance) checked.

    To assign custom Web Alert settings for this folder, uncheck this box and use the fields below.

    Restore Web Alert inheritance to the content in this folderCheck this box if Web Alert inheritance has been broken for some content in the folder, and you want to restore inheritance. If you do, all folder content uses the Web Alert properties applied to this folder.

    Web Alert Options

    Check when Web Alert emails are sent as content in this folder is published.

    • Notify Always—send email whether content is being published for the first time or updated
    • Notify Only on Initial Publication—send email only the first time content is published. After that, email is not sent.
    • Notify Never—email is never sent for content in this folder.

    Web Alert Subject

    Enter the email's subject line.

    Web Alert email From Address

    Select the address from which email for this folder is sent. See Also: Creating“From” Addresses

    Web Alert Contents

    Check the following components to determine the email text . See Also: Message Components

    NOTE: If the content item is an Office document or a managed file, a link to that item appears within the email, not the item itself.

    • To select existing content, click Select next to the Use Content checkbox. Then, navigate to the content item.
    • To select the content whose creation or change triggers the Web Alert, click Use Current.
    • To create new content to be inserted into the Web Alert message for this folder, click Select next to the Use Content checkbox. When the folder navigation window appears, click Add Content. Then, see Creating HTML Content.

    The components appears within the email in the order listed above.

    Available Web Alerts

    All enabled subscriptions set up in the Subscriptions screen appear. Check those to be notified when content in this folder is added or updated. See Also: Defining Subscriptions

    IMPORTANT: If you uncheck all subscriptions, you disable the Web Alert feature for this folder and all of its content, even if unique subscription information is assigned to content within the folder.

Previewing the email message

Previewing the email Message

To preview the email message, click the Preview button () on the Web Alerts tab.

Assigning Web Alert information to content

Assigning Web Alert Information to Content

You can customize Web Alert settings for any content item. If you do, you break the inheritance from its folder. From then on, the content’s Web Alert settings are independent of the folder’s settings.

IMPORTANT: If all subscriptions are unchecked for a folder, the Web Alert feature is disabled for all content in the folder. This applies even if unique Web Alert information is assigned to content.

To customize the Web Alert settings for any content item:

  1. Navigate to the folder that contains the content.
  2. Click the content. The View Content screen appears.
  3. Click Edit.
  4. Click the Web Alerts tab.

    NOTE: The Web Alerts tab only appears if required messages, “from” email addresses, and at least one subscription are assigned to the content’s folder.

    The Web Alert settings for the content appear

The following table describes the settings.

Field

Group

Description

Options

Check when Web Alert emails are sent as this content is published.

  • Notify Always—send email whether content is being published for the first time or updated
  • Suspend Next Notification (override)—check this box to suspend the next email to be sent for this content. You might use this feature if you noticed a small error in the content and don’t want to notify subscribers that the page was updated.

WARNING! - This setting only applies until the next time this content is published. When that happens, this box is automatically unchecked.

  • Notify only on Initial Publication—send email the first time content is published. After that, email is not sent.
  • Send Next Notification (override)—send email to all subscribers the next time this content is published. Use this checkbox to send a one-time mailing to all subscribers about content that was already published.

WARNING! - This setting only applies until the next time this content is published. When that happens, this box is automatically unchecked.

  • Notify Never—email is never sent when this content is published.

Subject

Same as for a content folder. See Web Alert Subject

email From

Same as for a content folder. See Web Alert email From Address

Contents

Same as for a content folder. See Web Alert Contents

Available Alerts

Only Web Alerts assigned to the folder appear. Check ones that you want to assign to this content item. For more information, see Available Web Alerts.

Restoring folder-level Web alert information to content

Restoring Folder-level Web Alert Information to Content

If you customize Web Alert information for content and later decide to standardize that information for all content in a folder, use the Restore Web Alert Inheritance checkbox on the folder properties Web Alerts tab. See Also: Restore Web Alert inheritance to the content in this folder. This action copies the folder's Web Alert information to every content item in the folder, replacing any content-level information.

How dragged and dropped content is handled

How Dragged and Dropped Content is Handled

Web Alert emails are not generated for files that are dragged and dropped into Ektron and immediately published. To generate email for these files, you must manually publish them. Like HTML content, these files must reside in a folder for which the Web Alert feature is enabled.

How users sign up for subscriptions

How Users Sign up for Subscriptions

After setting up subscriptions, you create a Web page that lets site visitors subscribe to areas of interest.

To place this form on a Web page, your developer inserts a Membership Server Control. See Also:

Any user who subscribes via the above screen becomes an Ektron membership user, and is automatically added to the All Members user group. For more information, see Membership Users and Groups.

NOTE: The email address collected on the screen is used as the membership Username field.

What happens next depends on the Enable Verify email check box in the Application Setup screen (shown below).

What happens if verification email is not used

What Happens if Verification email is Not Used

If the Enable Verify email checkbox is not checked, everyone who signs up automatically becomes a membership user.

What happens if verification email is used

What Happens if Verification email is Used

WARNING! When using the Checkout Server Control on an eCommerce site, the Enable Verify Email setting must be unchecked. Otherwise, new users will receive an error message when they sign-up using this control. See Also: Checkout Server Control

Typically, when managing a self-subscribe list, you want new users to confirm their intention of being on the list. This prevents people from being subscribed without their permission.

If the Enable Verify email checkbox is checked, everyone who signs up is placed on the Users Not Verified list. (To see this list, go to Workarea > Settings > Community Management > Memberships > Users Not Verified.)

These people then receive an email. (You define its content in Workarea > Settings > Community Management > Messages.) The email should direct the unverified user to a Web page that asks him to confirm his interest in the subscription. (See Customizing the Verification Message.) New users are activated when the subscriber confirms his interest.

To create this page, your Web developer creates or updates a Web Form using the Membership Server Control. Set the control’s DisplayMode property to AccountActivate.

NOTE: Users can also be manually activated or removed via the View Not Verified Users screen. For more information, see The View Not Verified Users Screen.

Customizing the verification message

Customizing the Verification Message

By default, Ektron supplies a generic message asking the user to confirm his password and directing him to your Web site's activateuser.aspx page. To customize that message:

  1. Go to Workarea > Settings > Community Management > Messages.
  2. Click AddEmail Message.
  3. Assign a title to the message, such as Verification Message.
  4. In the Type drop-down, select Verification.
  5. Click the check mark in the Default box.
  6. In the Subject field, enter a subject line for the message.
  7. Enter the message. You must insert the @appQueryLink@ variable in the message to create a link to the confirmation page. For example:
    Welcome to example.com. You registered to be notified of updates to our site. 
    Before we can do this, you need to activate your account.
    To do so, please visit @appQueryLink@.

    The @appQueryLink@ variable gets resolved as follows:

    http://sitepath/workarea/activateuser.aspx?uid=[username]&acc=[accountID]

    For example:

    http://www.example.com/Workarea/[email protected]&acc=ce5w84o936477

You can insert these membership variables into the confirmation message.

See list.
  • @appEmail@—email address
  • @appActivateId@—Account ID
  • @appUserName@—UserName
  • @appFirstName@—First name
  • @appLastName@—Last name
  • @appDisplayName@—Display name
  • @appAvatar@ —Avatar
  • @appSignature@—Signature
The View Not Verified Users screen

The View Not Verified Users Screen

Users who signed up for a subscription but who have not been verified appear on the View Not Verified Users Screen. This screen is available via Settings > Community Management > Memberships > Users not Verified.

On this screen, you can activate accounts by selecting users then clicking ActivateUsers. Alternatively, you can delete members by selecting and clicking Delete ().

NOTE: The ek_PageSize setting in the web.config file determines the maximum number of users that can appear on a page before it “breaks.” When a page breaks, additional entries appear on another screen, and the following text appears near the bottom of the list:
Page 1 of 2 [First Page] [Previous Page] [Next Page] [Last Page]

To select all members, click the check box next to Username.

You can also change the way membership users are sorted, or use the Search button to find users that match your criteria (for example, users whose username includes example.com.)

Setting up other Web pages for site visitors

Setting up Other Web Pages for Site Visitors

You can set up other Web pages that let subscribers perform these actions:

  • Activate their account
  • Reset their password
  • Unsubscribe

To create these pages, place a Membership server control on the page. Then use its DisplayMode property to determine the kind of screen you want to place. For example, to create a screen that lets the user reset his password, set the control’s DisplayMode property to ResetPassword. See Also: see Membership Server Control

CMS user subscription signup

CMS User Subscription Sign Up

CMS users can subscribe to any subscription list. This is particularly useful on an intranet where, for example, employees are notified when job-related information is updated.

Another example is your internet site. The Marketing manager can sign up to be notified whenever Marketing content is added or updated. To do so, go to Settings > Users > Edit User > Custom tab.

See Also: Using eSync with Web Alerts