wish pagetitle in browser title bar
last edited: Thu, 01 Jun 2017 11:43:31 +0200
I inserted with
my wish pagetitle as
1.
and
2.
In the browser title bar will be displayed the 1. title value. How can I put my wish pagetitle in the browser title bar?
@Hubzilla Support Forum+ #pagetitle #wishpagetitle #browsertitlebar
[template]zen[/template]
[region=htmlhead]
[block][var=wrap]none[/var]pagetitle[/block]
[/region]
my wish pagetitle as
pagetitle
block. But yet contains the webpage two <title>-tags:1.
<title> - </title>
and
2.
<title>my wish pagetitle</title>
In the browser title bar will be displayed the 1. title value. How can I put my wish pagetitle in the browser title bar?
@Hubzilla Support Forum+ #pagetitle #wishpagetitle #browsertitlebar
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body>
<?php if(x($page,'content')) echo $page['content']; ?>
</body>
</html>
See if you can discover how this file is used to render the webpage using the zen template in its layout. Hint: start in /Zotlabs/Module/Page.php, the file that is invoked when you request https://hub.freecommunication.org/page/...
In the process you will find how the title is specified.