![]() |
![]() |
![]() |
|
|||||||
| Search Engine Optimization Want to improve your site rank and positions? Then this forum is definitely for you. Read link exchange and search engine optimization tips and tricks. Get more power with new SEO tools discussed here. Get professional advice and more... DO NOT POST YOUR LINK EXCHANGE REQUESTS HERE OR INFORMATION ABOUT YOUR DIRECTORIES. They will be interpreted as spam and deleted. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: May 2010
Posts: 4
![]() |
Hi
![]() I want to change meta title format of the listing details page. Now, i have: Listing title << Parent category << Subcategory << Site title. I want only "listing title" without this: << Parent category << Subcategory << Site title. How can I change this? "Full path to category in title" doesn`t work for me ![]() |
|
|
|
|
|
#2 | |
|
Join Date: Oct 2006
Posts: 31
![]() |
Quote:
open file view-listing.php find Code:
/** defines page title **/
$full_title_array = array();
esynUtil::getBreadcrumb($listing['category_id'], $full_title_array);
if ('-1' == $category['parent_id'])
{
$category['path'] = ESYN_URL;
$category['path'] = substr($category['path'], 0, -1);
}
elseif (0 < $category['parent_id'])
{
$category['path'] = array_reverse($full_title_array);
}
$esynSmarty->assign('category', $category);
$out_title = esynSanitize::html(strip_tags($listing['title']));
if(!empty($full_title_array))
{
foreach ($full_title_array as $jt_value)
{
$out_title.= " « ".esynSanitize::html(strip_tags($jt_value['title']));
}
}
$out_title.= " « ".esynSanitize::html(strip_tags($esynConfig->getConfig('site')));
$esynSmarty->assign('title', $out_title);
Code:
/** defines page title **/
$full_title_array = array();
esynUtil::getBreadcrumb($listing['category_id'], $full_title_array);
if ('-1' == $category['parent_id'])
{
$category['path'] = ESYN_URL;
$category['path'] = substr($category['path'], 0, -1);
}
elseif (0 < $category['parent_id'])
{
$category['path'] = array_reverse($full_title_array);
}
$esynSmarty->assign('category', $category);
$out_title = esynSanitize::html(strip_tags($listing['title']));
$esynSmarty->assign('title', $out_title);
Last edited by aafo; 05-15-2010 at 03:42 AM. Reason: correction |
|
|
|
|
|
|
#3 |
|
Join Date: May 2010
Posts: 4
![]() |
It works, thank you very much
![]() |
|
|
|
|
|
#4 |
|
Join Date: Dec 2009
Posts: 14
![]() |
is it possible to replace this caracters, and where ?
" << " |
|
|
|
![]() |
| Tags |
| listing details, title |
| Thread Tools | |
| Display Modes | |
|
|