PDA

View Full Version : How do I change the Agent page title?



Ivan Amador
June 28, 2015, 06:21 PM
Hi,

I would like to know how can I change the Agent page title.

Right now, if an agent has a business name, I get the business name as the title of his page (and the <h1>title</h1>) instead of his name.

I'm using realty_flatty v.4.4

Thanks!

Viktor
June 29, 2015, 08:42 AM
Hello Ivan,

You can change it in files only through ftp. If you know php I can show you.

go to: ftp://includes>>controllers>>account_type.inc.php

find code at line ~ 110-119



$title = $account['Full_name'];
if ( $account['company_name'] ) {
$title = $account['Fields']['company_name']['value'];
}

/* add bread crumbs step */
$bread_crumbs[] = array(
'name' => $title
);
$page_info['name'] = $title;


and change to:



$title = $account['Full_name'];
if ( $account['company_name'] ) {
$title = $account['Fields']['company_name']['value'];
}

/* add bread crumbs step */
$bread_crumbs[] = array(
'name' => $title
);
$page_info['name'] = $account['Fields']['title']['value'];

save and check again.

But I don't know exactly what key for the field "title".

Ivan Amador
June 30, 2015, 02:25 AM
Thanks Viktor!

I just replaced this:

$title = $account['Fields']['company_name']['value'];

with:

$title = $account['Full_name'] .', '. $account['Fields']['company_name']['value'];

And it worked perfectly!

:)

Ivan Amador
March 12, 2019, 01:41 AM
Hello!

In version 4.7.1 how can I add the Full_name of the dealer to the page title (<title>Dealers Name</title>)

Thanks!