TemKa_SD Posted September 27, 2018 Share Posted September 27, 2018 Здравствуйте, хочу сделать вот такой блок последних записей с блогов на главной: http://prntscr.com/kz8w6y шаблоны скорпировал, всё работает, осталось подгрузить стили, как правильно? Link to comment Share on other sites More sharing options...
newbie Posted September 27, 2018 Share Posted September 27, 2018 \IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('grid.css', 'blog', 'front')); Link to comment Share on other sites More sharing options...
TemKa_SD Posted September 27, 2018 Author Share Posted September 27, 2018 Что не так ? http://prntscr.com/kz9rno Link to comment Share on other sites More sharing options...
TemKa_SD Posted September 28, 2018 Author Share Posted September 28, 2018 Не хочет и всё. Нашел идентичное подключение в клубах, вставил туда свой код - всё работает: http://prntscr.com/kzndaj http://prntscr.com/kzndciЕсли этот код или club.css вставлять в global_template или как на скрине выше - не работает. Link to comment Share on other sites More sharing options...
newbie Posted September 28, 2018 Share Posted September 28, 2018 Если этот код или club.css вставлять в global_template или как на скрине выше - не работает. Вставляйте в includeCSS 1 Link to comment Share on other sites More sharing options...
TemKa_SD Posted September 28, 2018 Author Share Posted September 28, 2018 Не хочет. http://prntscr.com/kzpd2chttp://prntscr.com/kzpcvm Link to comment Share on other sites More sharing options...
newbie Posted September 28, 2018 Share Posted September 28, 2018 Не хочет.Выше надо добавлять. 1 Link to comment Share on other sites More sharing options...
TemKa_SD Posted September 28, 2018 Author Share Posted September 28, 2018 Спасибо, работает. А как вывести только в приложении pages на той или иной странице? Данные тега body ведь не подойдут? (как в стилях). Link to comment Share on other sites More sharing options...
newbie Posted September 28, 2018 Share Posted September 28, 2018 А как вывести только в приложении pages на той или иной странице?Там вроде как должно работать, если добавить код в поле Content одноименной вкладки при создании/редактировании страницы Link to comment Share on other sites More sharing options...
TemKa_SD Posted September 28, 2018 Author Share Posted September 28, 2018 У меня страница с виджетами Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now