Commit 03a9bbef authored by Jyhem's avatar Jyhem

[ENH] Permit choice of Custom Homepage Browser title

parent d6558a0d
......@@ -250,6 +250,8 @@ class Smarty_Tiki extends Smarty
$str = substr($script_name, 9, strpos($script_name, '.php') - 9);
$str = ucwords(trim(str_replace('_', ' ', $str)));
$this->assign('headtitle', 'View ' . $str);
} else if (strpos($script_name, $prefs['urlIndex']) === 0) {
$this->assign('headtitle', tra($prefs['urlIndexBrowserTitle'])); // Viewing Custom Homepage
} else { // still not set? guess...
$str = str_replace(array('tiki-', '.php', '_'), array('', '', ' '), $script_name);
$str = ucwords($str);
......
......@@ -356,6 +356,17 @@ function prefs_global_list($partial = false)
'default' => 7200,
'tags' => array('basic'),
),
'urlIndexBrowserTitle' => array(
'name' => tra('Homepage Browser title'),
'description' => tra('Customize Browser title for the custom homepage'),
'type' => 'text',
'size' => 50,
'default' => 'Homepage',
'tags' => array('basic'),
'dependencies' => array(
'useUrlIndex',
),
),
'urlIndex' => array(
'name' => tra('Homepage URL'),
'description' => tra(''),
......
......@@ -206,6 +206,7 @@
{preference name=useUrlIndex}
<div class="adminoptionboxchild" id="useUrlIndex_childcontainer">
{preference name=urlIndex}
{preference name=urlIndexBrowserTitle}
</div>
{preference name=wikiHomePage}
{preference name=home_blog}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment