kosix Posted January 10, 2015 Report Share Posted January 10, 2015 Всем привет! Друзья, у меня в данный момент состоится верстка шаблона. Столкнулся с проблемой. Дизайн респонсив, в 3 колонки. Два сайдбара (левый, правый)В левом сайдбаре на главной странице нужно вывести одну информацию а на страницах категорий и товаров другую. Что нужно прописать?У меня вышло показать информацию только на страницах категорий, брендов а в товаре отображает как на главной. Вот таким кодом скрыл с главной, но и скрылось со страницы товаров. {if $features || $category->brands || $features_sizes|count > 1 || $features_colors|count > 1 || $features_heights|count > 1} ... {/if} Как побороть? На Симпле верстаю полностью впервые Quote Link to post Share on other sites
Solution Kors Posted January 10, 2015 Solution Report Share Posted January 10, 2015 Примерно так: {if $module=='MainView'} Блок для главной {elseif $module=='ProductsView' || $module=='ProductView'} Блок на страницах категорий и товаров {else} Блок на прочих {/if} Quote Link to post Share on other sites
kosix Posted January 10, 2015 Author Report Share Posted January 10, 2015 Спасибо Quote Link to post Share on other sites
ps-simpla Posted January 10, 2015 Report Share Posted January 10, 2015 на будущее http://forum.simplacms.ru/topic/4953-%D0%B2%D1%8B%D0%B2%D0%BE%D0%B4-%D0%B1%D0%BB%D0%BE%D0%BA%D0%BE%D0%B2-%D0%B2-%D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%BE%D0%B9-%D0%BA%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D0%B8-%D0%B8%D0%BB%D0%B8-%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B5/ 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.