Commit 33b12468aaf85cf938182201150cadf0e90974cf
1 parent
95d8cde8
KTS-1608
"Help files are not customizable" Fixed. Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6183 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
10 additions
and
2 deletions
help.php
| ... | ... | @@ -132,7 +132,8 @@ class HelpDispatcher extends KTStandardDispatcher { |
| 132 | 132 | $aTemplateData = array( |
| 133 | 133 | "context" => $this, |
| 134 | 134 | "help_body" => $aHelpData['body'], |
| 135 | - "target_name" => KTUtil::arrayGet($aLocInfo, 'internal'), | |
| 135 | + "help_title" => $aHelpData['title'], | |
| 136 | + "target_name" => KTUtil::arrayGet($aLocInfo, 'subpath'), | |
| 136 | 137 | "back_key" => $sBackKey, |
| 137 | 138 | 'can_edit' => $bCanEdit, |
| 138 | 139 | ); | ... | ... |
templates/ktcore/manage_help.smarty
| ... | ... | @@ -9,6 +9,7 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 |
| 9 | 9 | <table class="listing" cellspacing="0" cellpadding="0" border="0"> |
| 10 | 10 | <thead> |
| 11 | 11 | <tr> |
| 12 | +<th>{i18n}Title{/i18n}</th> | |
| 12 | 13 | <th>{i18n}Name{/i18n}</th> |
| 13 | 14 | <th>{i18n}Actions{/i18n}</th> |
| 14 | 15 | </tr> |
| ... | ... | @@ -16,6 +17,9 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 |
| 16 | 17 | { foreach item=oHelpReplacement from=$helpreplacements } |
| 17 | 18 | <tr class="{cycle values="odd,even"}"> |
| 18 | 19 | <td> |
| 20 | +{ $oHelpReplacement->getTitle() } | |
| 21 | +</td> | |
| 22 | +<td> | |
| 19 | 23 | <a href="{addQS}action=editReplacement&id={$oHelpReplacement->getId()}{/addQS}">{ $oHelpReplacement->getName() }</a> |
| 20 | 24 | </td> |
| 21 | 25 | <td> | ... | ... |
templates/ktcore/manage_help_item.smarty
| ... | ... | @@ -12,7 +12,10 @@ tinyMCE.init({ |
| 12 | 12 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 13 | 13 | <input type="hidden" name="id" value="{$help->getId()}"> |
| 14 | 14 | <input type="hidden" name="action" value="updateReplacement"> |
| 15 | -<input type="text" name="title" value="{$help->getTitle()|escape}" /><br /><br /> | |
| 15 | +<h2>{i18n}Title{/i18n}</h2> | |
| 16 | +<input type="text" name="title" value="{$help->getTitle()|escape}" /> | |
| 17 | +<h2>{i18n}Help content{/i18n}</h2> | |
| 16 | 18 | <textarea cols="60" rows="20" name="description">{$help->getDescription()|escape}</textarea> |
| 19 | +<br /> | |
| 17 | 20 | <input type="submit" name="submit" value="{i18n}Update{/i18n}" /> |
| 18 | 21 | </form> | ... | ... |