Commit 6c32892526fb924dc553e250333cb1be00d20009
1 parent
cf7d7738
KTS-4072 - Added the main logo url to the config.ini and the system url to the database config.
"CLONE -change of hyperlink (SUP-1538)" Committed by: Megan Watson Reviewed by: Kevin Cyster
Showing
4 changed files
with
7 additions
and
2 deletions
config/config.ini
| ... | ... | @@ -86,6 +86,8 @@ manager = default |
| 86 | 86 | ;mainLogoWidth = 219px |
| 87 | 87 | ; ALT text - for accessibility purposes. |
| 88 | 88 | ;mainLogoTitle = ACME Knowledge Management Systems |
| 89 | +; URL on the main logo | |
| 90 | +;mainLogoUrl = ${rootUrl} | |
| 89 | 91 | ; powered by kt logo |
| 90 | 92 | ;powerLogo = ${rootUrl}/resources/powered-by-kt.png |
| 91 | 93 | ; the logo's width in pixels | ... | ... |
sql/mysql/install/data.sql
| ... | ... | @@ -285,7 +285,8 @@ INSERT INTO `config_settings` VALUES |
| 285 | 285 | (110, 'server', 'External Server port', 'The external port for the server.', 'server_port', 'default', '', 'numeric_string', NULL, 1), |
| 286 | 286 | (111, 'KnowledgeTree', 'Root Url', 'The path to the web application from the root of the web server. For example, if KT is at http://example.org/foo/, then the root directory should be \'/foo\'.', 'rootUrl', '', '', 'string', NULL, 1), |
| 287 | 287 | (112, 'urls', 'Var Directory', 'The path to the var directory.', 'varDirectory', 'default', '${fileSystemRoot}/var', 'string', NULL, 1), |
| 288 | -(113, 'tweaks','Increment version on rename','Defines whether to update the version number if a document filename is changed/renamed.','incrementVersionOnRename','default','true','boolean',NULL,1); | |
| 288 | +(113, 'tweaks','Increment version on rename','Defines whether to update the version number if a document filename is changed/renamed.','incrementVersionOnRename','default','true','boolean',NULL,1), | |
| 289 | +(114, 'ui', 'System URL', 'The system url, used in the main logo.', 'systemUrl', 'default', 'http://www.knowledgetree.com', 'string', '', 1); | |
| 289 | 290 | /*!40000 ALTER TABLE `config_settings` ENABLE KEYS */; |
| 290 | 291 | UNLOCK TABLES; |
| 291 | 292 | ... | ... |
sql/mysql/upgrade/3.5.5/config_systemurl.sql
0 → 100644
| 1 | +INSERT INTO config_settings (group_name, display_name, description, item, value, default_value, type, options, can_edit) | |
| 2 | +VALUES('ui', 'System URL', 'The system url, used in the main logo.', 'systemUrl', 'default', 'http://www.knowledgetree.com', 'string', '', 1); | |
| 0 | 3 | \ No newline at end of file | ... | ... |
templates/kt3/standard_page.smarty
| ... | ... | @@ -71,7 +71,7 @@ |
| 71 | 71 | <div id="bodyPad"> |
| 72 | 72 | <div id="logobar"> |
| 73 | 73 | {if $config->get("ui/mainLogo") != ''} |
| 74 | - <a href="{$rootUrl}"><img src="{$config->get("ui/mainLogo")}" class="primary" alt="{$config->get("ui/companyLogoTitle")}" title="{$config->get("ui/mainLogoTitle")}"/></a> | |
| 74 | + <a href="{$config->get("ui/mainLogoUrl")}"><img src="{$config->get("ui/mainLogo")}" class="primary" alt="{$config->get("ui/mainLogoTitle")}" title="{$config->get("ui/mainLogoTitle")}"/></a> | |
| 75 | 75 | {else} |
| 76 | 76 | <a href="{$page->systemURL}"><img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" class="primary" title="{$page->systemName}"/></a> |
| 77 | 77 | {/if} | ... | ... |