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 »

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: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan »

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 »

Hi,how do I change the title tag of a page?How can i do this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan »

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 »

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: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan »

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 »

Hi, sorry, I don't know php well.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The title of page

Post by Jan »

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