Implement Favorites
You can implement favorites so that users can bookmark frequently-used articles. Favorites provides users with quick and easy access to the articles they use most often. Users can access their favorites on article detail page and account overview page.
Users must log into Customer Portal to use favorites. They can add articles to their favorites by clicking Add Favorite on the article detail page, and remove articles from their favorites by clicking Remove Favorite. They can also view and manage their favorites on the account overview page.
The current implementation includes favorites on both the article detail page and the account overview page by default. If you upgrade from a previous implementation, you can implement favorites by adding the favorites button widget to the article detail page, adding the favorites list widget to the account overview page, and copying the favorites list reference page into your site.
Edit the file: /cp/customer/development/views/pages/answer/answer_view.php
Add the favorite button by adding this line:
rn:widget path="okcs/FavoritesButton"/>
after this line:
rn:widget path="okcs/OkcsRecommendContent"/>
Add the favorites list reference (list.php) page by copying the favorites folder from /cp/core/framework/views/pages/okcs/account to /cp/customer/development/views/pages/account
Edit the file: /cp/customer/development/views/pages/account/overview.php
Add the favorites list section by adding the following code:
<div class="rn_HeaderContainer"> <h2><a class="rn_Profile" href="/app/account/favorites/list#rn:session#">#rn:msg:MY_FAVORITES_LBL#</a></h2> </div> <div id="rn_OkcsFavoritesList"> <rn:widget path="okcs/OkcsFavoritesList" view_type="table" display_fields="title|documentId"/> <a href="/app/account/favorites/list#rn:session#">#rn:astr: See all favorites#</a> </div>
within this section:
<rn:container source_id="OKCSBrowse"> </rn:container>