BCSE Static Page mod & Product Metatags Plus code confusion
I am trying to install the static page metatag mod after the product metatag plus mod but the last step causes confusion with me.
In the last step you need to: 6. In skin1/meta.tpl, replace: <meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" /> <meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" /> With: {* BCSE Begin *} {if $page_data.metadescr} <meta name="description" content="{$page_data.metadescr|escape}" /> {else} {* BCSE End *} <meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" /> {* BCSE Begin *} {/if} {if $page_data.metakeywords} <meta name="keywords" content="{$page_data.metakeywords|escape}" /> {else} {* BCSE End *} <meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" /> {/if} {* BCSE added *} This is the current code in my meta.tpl: <meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" /> {* BCSE Begin *} {/if} {if $product_meta_keywords ne ""} <meta name="keywords" content="{$product_meta_keywords|escape}" /> {else} {* BCSE End *} <meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" /> {/if} {* BCSE added *} {/if} Now where do I need to add the code for the static page mod to work correctly? Any help would be great |
Re: BCSE Static Page mod & Product Metatags Plus code confusion
How about this as an alternative install instructions.
Find Code:
<meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" /> BEFORE add: Code:
{* BCSE Begin *} Find: Code:
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" /> BEFORE add Code:
{* BCSE Begin *} AFTER add Code:
{/if} {* BCSE added *} That should work. Hope that helps! Carrie |
Re: BCSE Static Page mod & Product Metatags Plus code confusion
Hi Carrie, I have just added the code you instructed. How can I check that the static page mod and the category mod are installed correctly? If I see the source code on those related pages I don't see the difference... Sorry for such a n00b question, I am just not a coder ;) Thanks for helping me out!
|
All times are GMT -8. The time now is 12:24 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.