Auto add product name beside web page title

Post here questions and problems related to editing and publishing DITA content.
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Auto add product name beside web page title

Post by catherine »

Dear Oxygen support,
I have one Oxygen project, signal source and publish webhelp for 2 products in our document center.
http://abc.com/docs/product1
http://abc.com/docs/product2

The problem is that:
1. In our document center, many same topic titles appear in product 1 and product 2 webhelp, which is not good for SEO.
For example, we have a topic " make a call" in both product 1 and product 2.
When I access the following two pages:
http://abc.com/docs/product1/make-a-call.html
http://abc/com/docs/product2/make-a-call.html
I get the same web page title "Make a Call".
My idea is that:
1. Keep the topic title the same for different products, no problem.
2. But the web page tile should be different, like the following:
- Make a call - Product A
- Make a Call - Product B

Is there any way to add product name beside each web page title when I publish Oxygen webhelp?
- It is very helpful for SEO.
- It is also helpful for the users who search articles on google to quickly identify the product and the relevant articles.


Will appreciate for your any response.
Regards,
Caterhine
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Auto add product name beside web page title

Post by Costin »

Hi catherine,

It is not possible to keep the same topic title for multiple products, but change only the title from the header of the HTML pages.
However, the next best thing would be to have topics with different topic title for each of the publications (each product). This way, the topic with the title "Make a call - Product A" could be included in the output for product A and another one with the title "Make a call - Product B" would be present in the output corresponding to product B.

You could use conditional profiling in oXygen in order to achieve this.
More information on profiling available in the oXygen User-Guide.
You may also find useful the "DITA Profiling" video demonstration and the "Managing DITA reuse with Oxygen XML Editor" webinar.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: Auto add product name beside web page title

Post by catherine »

Hi, Costin
Thanks for your response.
That's a bad news. However, I think there should be a way to achieve that...
I changed one of the generated web pages, and it worked.
- Keep the topic title.
- Change the web page <title> that is contained in the <head> tag.

I am afraid if you understand my question.
Refer to this page. https://docs.aws.amazon.com/AWSEC2/late ... cepts.html
- The topic title is "What Is Amazon EC2?"
- The web page title is "What Is Amazon EC2? - Amazon Elastic Compute Cloud"

Is there any way that I can change all the web page titles in bulk before I generate the Oxygen webhelp?
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Auto add product name beside web page title

Post by Costin »

Hi Catherine,

Yes, we are aware that it is possible to modify the title from the <head> element of an HTML document.
However, I'm afraid that the publishing process has its limitations, so this is not something that could be also performed automatically during transformation (at publishing time).
The only solution remains using conditional profiling to differentiate between topics from separate products.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: Auto add product name beside web page title

Post by catherine »

Thanks for your suggestion, Costin.
But it is not good to do that, because 80% of the topic titles are the same for product A and product B.
And when people search articles in Google, the search results could not help people identify the exact topic quickly.
Post Reply