palec
Профессор
- Регистрация
- 6 Дек 2006
- Сообщения
- 282
- Реакции
- 49
- Автор темы
- #1
Помогите не могу не как разобраца... и так DLE 9.7 в админке для одной категории поставил свой шаблон для краткой новости, но этот шаблон отображается только в конкретной категории... нужно чтоб он так же отображался и на главной странице! Как это реализовать?
Нашел старый хак в интернете:
Проблема в том что после установки этого хака у всех новостей пропадает кнопка:
Кнопка подробнее убрана в шаблоне который нужно вывести на главную страницу. Надеюсь кто то сможет помочь!
Нашел старый хак в интернете:
Код:
найти в engine/modules/show.short.php
while($row = $db->get_row($sql_result)){
ниже вставить
if ($cat_info[$row['category']]['short_tpl'] and $cat_info[$row['category']]['short_tpl'] != $bdssh)
{
$tpl->load_template($cat_info[$row['category']]['short_tpl'].'.tpl');
$bdssh = $cat_info[$row['category']]['short_tpl'];
}
Проблема в том что после установки этого хака у всех новостей пропадает кнопка:
Код:
<span class="argmore"><a href="{full-link}"><b>Подробнее</b></a></span>
Кнопка подробнее убрана в шаблоне который нужно вывести на главную страницу. Надеюсь кто то сможет помочь!