Hi,
I checked this post but it was published over 4 years ago so, the code in my file is really different.
My Real Estate Manager version is: 4.2.58 PRO
and the part of the code containing $rem looks like:
Code: |
$tagtitle = "";
for ($i = 0; $i < count($title); $i++) {
$tagtitle = trim($tagtitle) . " | " . trim($title[$i]);
}
/*******************************************/
$app = JFactory::getApplication();
if ($app->getParams()->get('page_title') !='') $rem = $app->getParams()->get('page_title');
else $rem = $app->getMenu()->getActive()->title;
/*******************************************/
// $rem = $menu->getActive()->title; //"RealEstate Manager ";
//To set Title
$title_tag = PHP_realestatemanager::mylenStr($rem . $tagtitle, 75);
//To set meta Description
$metadata_description_tag = PHP_realestatemanager::mylenStr($rem . $tagtitle, 200);
//To set meta KeywordsTag
$metadata_keywords_tag = PHP_realestatemanager::mylenStr($rem . $tagtitle, 250);
$doc->setTitle($title_tag);
$doc->setMetaData('description', $metadata_description_tag);
$doc->setMetaData('keywords', $metadata_keywords_tag);
|