forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vicent Mas <uve...@gmail.com>
Subject xdocs title element and the title bar of browser windows
Date Fri, 13 Nov 2009 18:49:35 GMT
Hi all,

I'm trying to fine tunning my dispatcher website. One thing that I find 
particularly annoying is the fact that regular processing of a xdoc fragment 
like:

<document id="mydoc_id">

  <header>
    <title>My title</title>
  </header>
  <body>
...

will produce an HTML page like:

<html>
  <head>
    <title>My title</title>
  </head>
  <body>
    <div id="content">
      <h1 class="content-title">My title</h1>
...

so the *same* title will appear in the title bar of the browser window and in 
the body of the html page.  In addition, this title is used for search engines 
like google when the result of a search is shown. But the body title string 
normally is not meaningful when displayed as a result of a search or when 
displayed in the title bar of the web browser. So I'd like to know how to 
specify different titles for the HTML head and the HTML body. Is ther a direct 
way for doing it with Forrest? Or have I to do some hacking?

Thanks in advance.

Vicent
::

	Share what you know, learn what you don't


Mime
View raw message