Edit title on the web browser

<oXygen/> general issues.
jmanier
Posts: 35
Joined: Thu Jun 08, 2017 3:41 pm

Edit title on the web browser

Post by jmanier » Wed Mar 28, 2018 7:06 pm

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: 51
Joined: Mon Jun 12, 2017 10:50 am

Re: Edit title on the web browser

Post by cosmin_andrei » Thu Mar 29, 2018 2:18 pm

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: 35
Joined: Thu Jun 08, 2017 3:41 pm

Re: Edit title on the web browser

Post by jmanier » Thu Mar 29, 2018 3:10 pm

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

Re: Edit title on the web browser

Post by radu_pisoi » Fri Mar 30, 2018 4:24 pm

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: 35
Joined: Thu Jun 08, 2017 3:41 pm

Re: Edit title on the web browser

Post by jmanier » Fri Mar 30, 2018 5:48 pm

Thanks !

Post Reply