Search in support tickets

#857 – Single AD SEO Title

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 18 November 2020 19:17 CET

Do you know a quick way to put the title of the AD as the title of the web page? I mean, i'm trying to improve SEO performance and title tag is the most important, so i wish to set it.

Custom Fields
Joomla Version
Joomla! 3.9.21 Stable [ Amani ] 25-August-2020 15:00 GMT
PHP Version
Product Version
Thursday, 19 November 2020 15:45 CET

There is some code customization involved but yes, it can be done.

I give you the code tomorrow morning after checking it.

Best regards.
Friday, 20 November 2020 08:14 CET

In the file 'components/com_adsmanager/views/details/view.html.php', line 107, you will find that line of code :
$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE')." ".JText::_($category->name)." - ".$content->ad_headline);

It is that line that set the title of the page.

If you just wish to display the ad title, remove everything but the last part of the function parameters.


Best regards.
Friday, 20 November 2020 11:34 CET
I set that code as you said, but it's not working.

I Don't know if the function is related for the code in the index.php template file:

if ($this->params->get('sitetitle'))
$title = $this->params->get('sitetitle');

Isn't it?

P.S. you can access to the website with the credentials i given to you some weeks ago.
Friday, 20 November 2020 16:53 CET
So in part it is fixed, i found some code errors introduced by me.

But i have another few issues:

1. How can i dinamically set the Open Graph Facebook attributes? Example:

<meta property="og:url" content="<?php echo $this->params->get("url") ?>" />
<meta property="og:type" content="article" />
<meta property="og:title" content="<?php echo $this->params->get("sitetitle") ?>" />
<meta property="og:description" content="<?php echo $this->params->get("sitedescription") ?>" />
<meta property="og:image" content="<?php echo $image ?>" />

2. The URL string part "adsmanager-details" can be removed or changed?


Monday, 23 November 2020 11:19 CET

We the amount of ticket we have, finding the correct message with the credential isn't simple :).

Futhermorre, since the trouble you have now are not covered by the support, I cannot fix that for you.

Regarding the title, hte template file doesn't manage the page title of the details ad page.

It is managed exactly where I told you.

If by opengraph facebook attribute, you are talking about a share button for Facebook, then you can use the adsmanager social plugin.

How do you do to add those attributes ?

Best regards
Monday, 23 November 2020 16:58 CET

I solved the SEO title of home page because was named "Ads -" and i never set it.

Changing the same code you mentioned in "components/com_adsmanager/views/front/view.html.php" to:

$document->setTitle( JText::_('ADSMANAGER_SITE_TITLE'));


$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE'));

I saw the ads manager social plugin and partially is useful to me. Maybe i will edit some later...

Thanks again for you support. You can close the ticket ;-)
Tuesday, 24 November 2020 15:27 CET

The 'Ads -' is in fact the translation of the constant ADSMANAGER_PAGE_TITLE.

I close the ticket :).

Best regards.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.