| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Limiting content to home.php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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?
|
|||||||
#2
|
|||||||||
|
|||||||||
Code:
|
|||||||||
#3
|
|||||||
|
|||||||
Thanks for your reply. I solved this issue by adding to the home_main.tpl:
Code:
Code:
This works perfectly however do you think I would be better off using the method you posted?[/code] |
|||||||
#4
|
|||||||||
|
|||||||||
um.... they are the same thing. Look at the if statement that controls it.
|
|||||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
#6
|
|||||||||
|
|||||||||
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|