Edit the Standard Template

Edit the standard template to include code from the reference implementation standard template and rename the modified template file.

  1. Edit the file:
    cp/customer/development/views/templates/standard.php
  2. Add the style sheet by changing this line:
    <rn:theme path="/euf/assets/themes/standard" css="site.css"/>
    to:
    <rn:theme path="/euf/assets/themes/standard" css="site.css, okcs.css"/>
  3. Add search by changing this line:
    <rn:widget path="search/SimpleSearch" report_page_url="/app/results"/>
    to:
    <rn:widget path="search/OkcsSimpleSearch" icon_path="" report_page_url="/app/search"/>
  4. Modify the navigation menu by changing this code:
    <ul class="rn_NavigationMenu">
       <li>
          <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:SUPPORT_HOME_TAB_HDG#" link="/app/#rn:config:CP_HOME_URL#" pages="home"/>
       </li>
       <li>
          <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:ASK_QUESTION_HDG#" link="/app/ask" pages="ask, ask_confirm"/>
       </li>
       <li>
          <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:COMMUNITY_HOME_LBL#" link="/app/social/home" pages="social/home"/>
       </li>
    </ul>
    to:
    <ul class="rn_NavigationMenu">
       <li>
          <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:SUPPORT_HOME_TAB_HDG#" link="/app/#rn:config:CP_HOME_URL#" pages="home"/>
       </li>
       <rn:condition config_check="OKCS_ENABLED == true">
          <li>
             <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:ANSWERS_HDG#" link="/app/browse" pages="browse, answers/list, answers/detail, answers/intent, answers/answer_view, search"/>
          </li>
       <rn:condition_else>
          <li>
             <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:ANSWERS_HDG#" link="/app/search" pages="answers/list, answers/detail, answers/intent, answers/answer_view, search"/>
          </li>
       </rn:condition>
       <li>
          <rn:widget path="navigation/NavigationTab" label_tab="#rn:msg:ASK_QUESTION_HDG#" link="/app/ask" pages="ask, ask_confirm"/>
       </li>
    </ul>
  5. Modify the password login by adding this code:
    sub:login:create_account_fields="Contact.Emails.PRIMARY.Address;Contact.Login;Contact.NewPassword;Contact.FullName"
    after this line:
    sub:input_Contact.NewPassword:label_input="#rn:msg:PASSWORD_LBL#"
  6. Rename the template file to:
    okcs_template.php