Page 1 of 1

Edit title on the web browser

Posted: Wed Mar 28, 2018 7:06 pm
by jmanier
Hello,

I would like to know if it's possible to modify the page title on the web browser?
I mean I would like to display the title from <title> tag between <head> tags. If it's possible, how?

Thank you !

Regards,
Jeremy

Re: Edit title on the web browser

Posted: Thu Mar 29, 2018 2:18 pm
by cosmin_andrei
Hello,

What version of Oxygen are you using?

What transformation scenario are you currently using?

Also, note that for WebHelp Responsive this is the default behavior.

Re: Edit title on the web browser

Posted: Thu Mar 29, 2018 3:10 pm
by jmanier
Hello,

Thank you for your answer. In fact, I would like to know if it's possible to add something like the name of company.

If Title is Menu 1, would like to display : Title - NameOfCompany --> Menu 1 - NameOfCompany

We are using webhelp responsive scenario on 19.0 and 20.0 version

Re: Edit title on the web browser

Posted: Fri Mar 30, 2018 4:24 pm
by radu_pisoi
Hi,

In case you want to modify only the html/head/title element, without modifying the topic's title (h1), you need to write a DITA-OT extension plugin. The extension plugin specifies an XSLT stylesheet that could modify the title generation.

The XSLT template that generates HTML's title is generateChapterTitle, you can find it in:

Code: Select all

DITA-OT/plugins/org.dita.xhtml/xsl/xslhtml/dita2htmlImpl.xsl
You can find more details about how to write an extension plugin for HTML output in the DITA-OT documentation.

Re: Edit title on the web browser

Posted: Fri Mar 30, 2018 5:48 pm
by jmanier
Thanks !