Page 1 of 1

Setting of Title tag (Browser Page Title)

Posted: 27 Oct 2022, 14:15
by plamen
I have a menu item "List of Files (Category View)"
Category: Foo
In "Menus: Edit Item / Page Display":
Browser Page Title: Bar

Site Name: My_site_name
Site Name in Page Titles: After

Finally, I have a title tag in the form:

Code: Select all

<title>Bar - Foo - My_site_name</title>
How can I exclude "Foo" from the Title tag?
PD is always adding 'category name' to the Title tag.

EDIT:
If I left 'Browser Page Title' empty, I get:

Code: Select all

<title>Foo - Foo - My_site_name</title>
which duplication I want to avoid also, title tag should read:

Code: Select all

<title>Foo - My_site_name</title>

Re: Setting of Title tag (Browser Page Title)

Posted: 29 Oct 2022, 23:15
by Jan
Hi, the way is just to customize it directly in the code:

components/com_phocadownload/views/category/view.html.php

function _prepareDocument

Jan