вопрос
Hi,
I'm 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:
we add this code:
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 category's page?
could u please help me for this hack?
I'm 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 category's page?
could u please help me for this hack?