Edit the Answer Detail Page

Edit the answer detail page in your current instance to include code from the reference implementation answer detail (answer_view.php) page and rename the modified file.

Ensure that the answer detail page does not contain the answer details (answer_details) attribute in the meta code <rn:meta...>. The presence of this attribute will cause the articles to display incorrectly.

  1. Edit the file:
    /cp/customer/development/views/pages/answers/detail.php
  2. Replace the entire code with this code:
    <div class="rn_Container">
        <rn:condition config_check="OKCS_ENABLED == true">
            <div class="rn_ContentDetail">
                <rn:meta title="#rn:php:\RightNow\Libraries\SEO::getDynamicTitle('answer', \RightNow\Utils\Url::getParameter('a_id'))#" template="okcs_standard.php"  clickstream="answer_view"/>
                <div class="rn_PageTitle rn_RecordDetail">
                   <rn:widget path="okcs/OkcsProductCategoryBreadcrumb" display_first_item="true"/>
                    <div class="rn_OkcsAnswerAction">
                       <rn:widget path="okcs/SubscriptionButton"/>
                       <rn:widget path="okcs/OkcsRecommendContent"/>
                    /div>
                    <rn:widget path="okcs/AnswerTitle">
                </div>
                <div class="rn_AnswerView">
                    <rn:widget path="okcs/AnswerStatus">
                    <div class="rn_SectionTitle"></div>
                    <rn:widget path="okcs/AnswerContent">
                </div>
                <div class="rn_DetailTools rn_HideInPrint">
                    <div class="rn_Links">
                        <rn:widget path="okcs/OkcsEmailAnswerLink" />
                    </div>
                </div>
                <rn:widget path="okcs/DocumentRating"/>
                <rn:widget path="okcs/OkcsRelatedAnswers"/>
            </div>
            <aside class="rn_SideRail" role="complementary">
                <rn:widget path="okcs/OkcsRecentlyViewedContent"/>
            </aside>
        </rn:condition>
    </div>
  3. Rename the file:
    answer_view.php