Foх Posted March 1, 2017 Report Share Posted March 1, 2017 Подскажите как убрать дубли страниц, к примеру описание категории. На 1 странице оно есть, как и задуманно. На 2 исчезает а на http://demo.simplacms.ru/catalog/mobilnye-telefony?page=all Опять появляется. Quote Link to post Share on other sites
xBitor Posted March 1, 2017 Report Share Posted March 1, 2017 javascrpt + ajax - на контроль ?=***+ robots.txt - убрать с индексации Quote Link to post Share on other sites
Foх Posted March 1, 2017 Author Report Share Posted March 1, 2017 javascrpt + ajax - на контроль ?=***+ robots.txt - убрать с индексации Очень объемный ответ Quote Link to post Share on other sites
Solution mishanya Posted March 1, 2017 Solution Report Share Posted March 1, 2017 (edited) Очень объемный ответ достаточно в шаблоне заменить {if $current_page_num==1} {* Описание категории *} {$category->description} {/if} на {if $current_page_num==1 && $smarty.get.page!='all'} {* Описание категории *} {$category->description} {/if} тогда на странице всех товаров не будет показываться описание категории Edited March 1, 2017 by mishanya Quote Link to post Share on other sites
Foх Posted March 1, 2017 Author Report Share Posted March 1, 2017 достаточно в шаблоне заменить {if $current_page_num==1} {* Описание категории *} {$category->description} {/if} на {if $current_page_num==1 && $smarty.get.page!='all'} {* Описание категории *} {$category->description} {/if} тогда на странице всех товаров не будет показываться описание категорииСпасибо! Сам запрос незнал как написать.. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.