<meta name="robots" content="index,follow">
Для страницы пожеланий и сравнений
Нахожу в head нужный мне код
Код: Выделить всё
{* Meta tags *}
{if !empty($meta_keywords)}
<meta name="keywords" content="{$meta_keywords|escape}"/>
{/if}
{if !empty($meta_description)}
<meta name="description" content="{$meta_description|escape}"/>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
{if $controller == 'CategoryController' || $controller == 'BrandController' || $controller == 'ProductsController'}
{if $set_canonical && !$need_indexing}
<meta name="robots" content="noindex,nofollow">
{elseif $sort}
<meta name="robots" content="noindex,follow">
{elseif isset($smarty.get.keyword)}
<meta name="robots" content="noindex,follow">
{else}
<meta name="robots" content="index,follow">
{/if}
{elseif $controller == "RegisterController" || $controller == "LoginController" || $controller == "UserController" || $controller == "CartController"}
<meta name="robots" content="noindex,follow">
{elseif $controller == "OrderController"}
<meta name="robots" content="noindex,nofollow">
{elseif $controller == "CartController"}
<meta name="robots" content="noindex,follow">
{else}
<meta name="robots" content="index,follow">
{/if}
Мне нужно пристроить к нему
Код: Выделить всё
{elseif $smarty.get.module == "RegisterView" || $smarty.get.module == "LoginView" || $smarty.get.module == "UserView" || $smarty.get.module == "CartView"}
<meta name="robots" content="noindex,follow">
{elseif $smarty.get.module == "OrderView"}
<meta name="robots" content="noindex,nofollow">
{elseif $smarty.get.module == "ComparisonView" || $smarty.get.module == "WishlistView"}
<meta name="robots" content="noindex,nofollow">
Помогите пожалуйста, как я не силен в програмингу