![]() |
Limiting content to home.php
Does anyone have any idea how I can limit the news.tpl to be included on the home.tpl only when the main home.php page is being viewed?
|
Code:
{if $main eq "catalog" and $current_category.category eq ""} |
Thanks for your reply. I solved this issue by adding to the home_main.tpl:
Code:
{include file="news.tpl"} Code:
{elseif $main eq "catalog" and $current_category.category eq ""} This works perfectly however do you think I would be better off using the method you posted?[/code] |
um.... they are the same thing. Look at the if statement that controls it.
|
what about displaying certain tpl's on contact, terms and contions section?
I tried something like {if $section="contact"} {include file = "default.tpl} it didn't work :-k |
Code:
{if $main eq "help" and $section eq "contactus"} |
All times are GMT -8. The time now is 11:31 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.