View Single Post
  #515  
Old 07-10-2012, 11:51 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: CDSEO Pro - Complete SEO Solution - Custom Urls, Page Titles, Meta Data, Link Anchors

Quote:
Originally Posted by sabinudash
I'm trying to change the 'company name' in page titles auto-populated by cdseo.

I used following instructions as provided in knowledgebase.
---------------------------------------------
Open modules/cdseolinks/cdseo_config.php

FIND:
?>


BEFORE ADD:
// WCM - Customization to replace company name in page title
// Be sure to change "New Title" to the text you want to appear
if ($cdseopage == 'auto-population' OR $_GET['cdseopage'] == 'auto-population')
db_query("UPDATE wcm_cdseo set cdseoTitle = replace(cdseoTitle,'- " . trim($config[Company][company_name]) . "','- New Title')");
// / WCM - Customization to replace company name in page title

---------------------------------------------

I applied auto-population again after following above instructions. However the company name did not change in page titles.

Anybody tried this? Appreciate help.

EDIT: This works with newly added products only. However does not work for existing ones.

Anybody has any clue to get this work for existing product titles?

Thank you.

If your company name has changed since you first autopopulated then you need to change the code with the text you want to remove.

Code:
// WCM - Customization to replace company name in page title // Be sure to change "New Title" to the text you want to appear if ($cdseopage == 'auto-population' OR $_GET['cdseopage'] == 'auto-population') db_query("UPDATE wcm_cdseo set cdseoTitle = replace(cdseoTitle,'- Text to Remove','- New Title')"); // / WCM - Customization to replace company name in page title
Reply With Quote