Different Template For Each news

Все блоги / DLE движок для сайтов 15 сентября 2012 0   
Hi,
Im trying to make a small hack for news. with this hack i can use separate template for each news.
in show.short.php after this code:
$row['category'] = intval( $row['category'] );

we add this code:
if ($row["ntemp"] == 1) {
$tpl->load_template( 'mini_download.tpl' );
} else {
$tpl->load_template( 'shortstory.tpl' );}

this is some part of hack.
now everything is fine and working well, but just in main page!
my problem is, this code is working just in main page, in category page all news will loading with default template "shortstory.tpl", how i can fix this hack to show news with different template in main and categorys page?
could u please help me for this hack?

 Источник:dle-faq.pro, DLE

💬 Комментарии

В связи с новыми требованиями законодательства РФ (ФЗ-152, ФЗ «О рекламе») и ужесточением контроля со стороны РКН, мы отключили систему комментариев на сайте.

🔒 Важно Теперь мы не собираем и не храним ваши персональные данные — даже если очень захотим.

💡 Хотите обсудить материал?

Присоединяйтесь к нашему Telegram-каналу:

https://t.me/blogssmartz

Нажмите кнопку ниже — и вы сразу попадёте в чат с комментариями

Похожие публикации

Архив публикаций