Knowledgebase
Can I use the CDSEO Pro title as my on page dialog.tpl title?
Posted by Nick Poindexter on 04 March 2010 04:29 PM
|
|
Yes it is possible to use your CDSEO Pro page title as your on page dialog.tpl title. Note you can replace cdseoTitle with cdseoLinkTitle in the below code to use the link anchor text instead. For Products Open product.php FIND: $smarty->assign("product",$product_info); BEFORE ADD: // WCM - CDSEO Pro - Use Page Title in dialog.tpl $wcmcdseoCustomTitle = (isset($cdseoReplacement) AND $cdseoReplacement['cdseoTitle'] != '') ? htmlspecialchars_no_double_encode(strip_tags($cdseoReplacement['cdseoTitle'])) : $product_info['product']; $smarty->assign("wcmcdseoCustomTitle",$wcmcdseoCustomTitle); // / WCM - CDSEO Pro - Use Page Title in dialog.tpl Open skin1/customer/main/product.tpl FIND: {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'} REPLACE with: {* WCM - CDSEO Pro - Use Page Title in dialog.tpl *} {* include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"' *} {include file="dialog.tpl" title=$wcmcdseoCustomTitle content=$smarty.capture.dialog extra='width="100%"'} {* / WCM - CDSEO Pro - Use Page Title in dialog.tpl *} For Categories Open home.php FIND: $smarty->assign("main","catalog"); BEFORE ADD: // WCM - CDSEO Pro - Use Page Title in dialog.tpl $wcmcdseoCustomTitle = (isset($cdseoReplacement) AND $cdseoReplacement['cdseoTitle'] != '') ? htmlspecialchars_no_double_encode(strip_tags($cdseoReplacement['cdseoTitle'])) : $current_category['category']; $smarty->assign("wcmcdseoCustomTitle",$wcmcdseoCustomTitle); // / WCM - CDSEO Pro - Use Page Title in dialog.tpl Open skin1/customer/main/subcategories.tpl FIND: {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'} REPLACE with: {* WCM - CDSEO Pro - Use Page Title in dialog.tpl *} {* include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"' *} {include file="dialog.tpl" title=$wcmcdseoCustomTitle content=$smarty.capture.dialog extra='width="100%"'} {* / WCM - CDSEO Pro - Use Page Title in dialog.tpl *} | |
|
Comments (0)