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

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

@
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent

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