Edit title on the web browser

Oxygen general issues.
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

Edit title on the web browser

Post 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
cosmin_andrei
Posts: 138
Joined: Mon Jun 12, 2017 10:50 am

Re: Edit title on the web browser

Post 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.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

Re: Edit title on the web browser

Post 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
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Edit title on the web browser

Post 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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

Re: Edit title on the web browser

Post by jmanier »

Thanks !
Post Reply