Enable Users to Manage Answer Notifications

You must edit the notifications (list.php) page so that users can manage their notifications. Users can see notifications they have subscribed to and delete a subscription from the notifications page.

You can edit the notifications page in your current instance to include code from the reference implementation notifications page.

  1. Edit the file:

    /cp/customer/development/views/pages/account/notif/list.php
  2. Add the loading indicator by adding this code:

    <div id="rn_LoadingIndicator" class="rn_Browse">
       <rn:widget path="okcs/LoadingIndicator"/>
    </div>

    before this code:

    <div class=”rn_PageContent”>
  3. Add the answer notification manager widget by adding this code:

    <rn:widget path="okcs/OkcsAnswerNotificationManager" view_type="list"/>

    within this section:

    <div class=”rn_PageContent”>

Here’s an example of the reference implementation notifications (list.php) page:

<rn:meta title="#rn:msg:NOTIFICATIONS_HDG#" template="okcs_standard.php" login_required="true" force_https="true"/>
<div class="rn_Hero">
    <div class="rn_Container">
        <h1>#rn:msg:NOTIFICATIONS_HDG#</h1>
    </div>
</div>
<div id="rn_LoadingIndicator" class="rn_Browse">
    <rn:widget path="okcs/LoadingIndicator"/>
</div>
<div class="rn_PageContent rn_AccountNotifications rn_Container">
    <h2>#rn:msg:ANS_NOTIFICATIONS_LBL#</h2>
    <rn:widget path="okcs/OkcsAnswerNotificationManager" view_type="list"/> 
</div>