paidion Posted September 7, 2016 Report Share Posted September 7, 2016 Добрый день!!!! Уважаемые знатоки. Подскажите как сделать так, чтобы на форуме на главной странице новости печатались с картинкой. а вот как хотелось бы помогите где поправить, чтобы показывало картинки на публикации Quote Link to comment Share on other sites More sharing options...
paidion Posted September 20, 2016 Author Report Share Posted September 20, 2016 что никто не может ответить??? Quote Link to comment Share on other sites More sharing options...
Respected Posted September 20, 2016 Report Share Posted September 20, 2016 Наверное так: <img src="{$row->record_image}" /> Quote Link to comment Share on other sites More sharing options...
paidion Posted September 20, 2016 Author Report Share Posted September 20, 2016 1 час назад, Respected сказал: Наверное так: <img src="{$row->record_image}" /> не получается.... извините за глупый вопрос.... а куда добавить этот код? добавлял в шаблоны базы данных и страницы результата нет Quote Link to comment Share on other sites More sharing options...
Respected Posted September 20, 2016 Report Share Posted September 20, 2016 Не появилась битая картинка? Quote Link to comment Share on other sites More sharing options...
paidion Posted September 20, 2016 Author Report Share Posted September 20, 2016 Только что, Respected сказал: Не появилась битая картинка? нет Quote Link to comment Share on other sites More sharing options...
Respected Posted September 20, 2016 Report Share Posted September 20, 2016 Значит не в тот шаблон добавил. Посмотри в настройках базы какой шаблон используется. Quote Link to comment Share on other sites More sharing options...
paidion Posted September 20, 2016 Author Report Share Posted September 20, 2016 1 час назад, Respected сказал: Значит не в тот шаблон добавил. Посмотри в настройках базы какой шаблон используется. я правильно понимаю, что я должен редактировать шаблоны баз данных в страницах? Quote Link to comment Share on other sites More sharing options...
Respected Posted September 20, 2016 Report Share Posted September 20, 2016 4 минуты назад, paidion сказал: я правильно понимаю, что я должен редактировать шаблоны баз данных в страницах? Да Quote Link to comment Share on other sites More sharing options...
paidion Posted September 20, 2016 Author Report Share Posted September 20, 2016 1 час назад, Respected сказал: Значит не в тот шаблон добавил. Посмотри в настройках базы какой шаблон используется. Я что то вообще ничего не понимаю. Куда его вставить. вот код шаблона куда я хочу вставить <hr class='ipsHr'> <section class='ipsType_normal ipsSpacer_both' > {{if count($articles)}} {{foreach $articles as $id => $record}} {{if $id == 0}} <div class='ipsGrid ipsGrid_collapsePhone'> {template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, 0"} </div> {{else}} {{if $id % 2}} <div class='ipsGrid ipsGrid_collapsePhone cmsCategory2col'> {{endif}} {template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, $id"} {{if $id % 2 == 0}} </div> {{endif}} {{endif}} {{endforeach}} {{endif}} </section> {{if $database->featured_settings['pagination'] and ( $pagination['pages'] > 1 )}} {template="pagination" app="core" location="global" group="global" params="$url, $pagination['pages'], $pagination['page'], $database->featured_settings['perpage'], TRUE, 'page'"} {{endif}} Quote Link to comment Share on other sites More sharing options...
andros0789 Posted November 20, 2016 Report Share Posted November 20, 2016 {{if $id == 0}} <div class='ipsGrid ipsGrid_collapsePhone'> {template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, 0"} </div> {{else}} Как тут вывести 2 закрепленных новости? Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.