- Implementing Knowledge Advanced
- Edit the Standard Template
Edit the Standard Template
Edit the standard template to include code from the reference implementation standard template and rename the modified template file.
- Edit the file:
cp/customer/development/views/templates/standard.php
- Add the style sheet by changing this line:
to:<rn:theme path="/euf/assets/themes/standard" css="site.css"/>
<rn:theme path="/euf/assets/themes/standard" css="site.css, okcs.css"/>
- Add search by changing this line:
to:<rn:widget path="search/SimpleSearch" report_page_url="/app/results"/>
<rn:widget path="search/OkcsSimpleSearch" icon_path="" report_page_url="/app/search"/>
- Modify the navigation menu by changing this code:
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> <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>
<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>
- Modify the password login by adding this code:
after this line:sub:login:create_account_fields="Contact.Emails.PRIMARY.Address;Contact.Login;Contact.NewPassword;Contact.FullName"
sub:input_Contact.NewPassword:label_input="#rn:msg:PASSWORD_LBL#"
- Rename the template file to:
okcs_template.php