The title of page

Phoca Download - download manager
philip
Phoca Member
Phoca Member
Posts: 17
Joined: 04 May 2011, 19:46

The title of page

Post by philip » 30 Sep 2020, 20:17

Hi,
I have the title tag of the page is the same as the menu item.
It can be changed across custom.css, without changing the global joomla configuration parameter "Site Name In Page Titles"

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42971
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan » 01 Oct 2020, 16:31

Hi, what do you mean with "changing custom.css"?

Jan
If you find Phoca extensions useful, please support the project

philip
Phoca Member
Phoca Member
Posts: 17
Joined: 04 May 2011, 19:46

Re: The title of page

Post by philip » 03 Oct 2020, 17:58

Hi,how do I change the title tag of a page?How can i do this?

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42971
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan » 05 Oct 2020, 13:27

Hi, you can do an override of Phoca Download view, e.g.:
components\com_phocadownload\views\category\tmpl\default.php

where you can change the title tag to your own.

Jan
If you find Phoca extensions useful, please support the project

philip
Phoca Member
Phoca Member
Posts: 17
Joined: 04 May 2011, 19:46

Re: The title of page

Post by philip » 07 Oct 2020, 19:05

Hi, I don't want to change the title tag. I want to get the title tag of the open page.
There is a <title> menu </title> but a <title> page </title>

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42971
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan » 11 Oct 2020, 21:13

Hi, the title tag cannot be overriden by template override, it is set in view.html.php e.g. here:
components\com_phocadownload\views\category\view.html.php

in function _prepareDocument

Code: Select all

$this->document->setTitle($title);
But it can be differently displayed, depends on menu link parameters.

Jan
If you find Phoca extensions useful, please support the project

philip
Phoca Member
Phoca Member
Posts: 17
Joined: 04 May 2011, 19:46

Re: The title of page

Post by philip » 12 Oct 2020, 21:21

Hi, sorry, I don't know php well.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42971
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan » 13 Oct 2020, 15:43

Hi, if the setting made by options does not fit your needs, unfortunately, there is no other way :-(

Jan
If you find Phoca extensions useful, please support the project

Post Reply