View Single Post
  #1  
Old 03-27-2008, 01:03 AM
 
GeeCee GeeCee is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 111
 

Question Problems with BCSE Category Title Plugin

I tried to install the BCSE Category Plugin from here: http://bcsengineering.com/store/customer/product.php?productid=161&cat=7&page=1

But the installation instructions appear to have caused a problem: now all product pages have the same title as their Category. This is how my home.tpl currently looks:

Code:
<title>{strip} {*BCSE Begin*} {if $page_data.metatitle} {$page_data.metatitle} {else} {*BCSE End*} {*BCSE Begin*} {if $cat and $current_category.meta_title and not $smarty.get.productid} {$current_category.meta_title} {else} {*BCSE End*} {if $main eq "catalog" AND $current_category.categoryid eq ""} {$lng.txt_site_title} {else} {capture name=title} {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {if not %position.first%}&nbsp;|&nbsp;{/if} {$location[position].0|strip_tags|escape} {/section} {else} {section name=position loop=$location step=-1} {if not %position.first%}&nbsp;|&nbsp;{/if} {$location[position].0|strip_tags|escape} {/section} {/if} {/capture} {if $config.SEO.page_title_limit <= 0} {$smarty.capture.title} {else} {$smarty.capture.title|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replace:" ":"&nbsp;"} {/if} {/if} {/if}{*BCSE Added*} {/if}{*BCSE Added*} {/strip}</title>

I believe the problem is with the 2nd IF:

{if $cat and $current_category.meta_title and not $smarty.get.productid}

because if I comment this out, the product details pages show their correct title. It appears that this IF is evaluating true for product pages, and it shouldn't be, but I don't know enough about how these variables get set, to know what to change. I would hazzard a guess and say that this is the problem: and not $smarty.get.productid as it appears the intention here is to exclude product pages.

On a more general note, my <Title> is a rather confused mess now, with several different mods overlapping. Anyone got a better way of laying all this out?

Many thanks,
__________________
X-Cart Gold v4.1.10
Manchester, UK
Get SEO, PPC or just advice from Intrinsic Marketing
Reply With Quote