![]() |
![]() |
![]() |
|
|||||||
| User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Aug 2006
Posts: 23
![]() |
What is the smarty code I can use in the templates to only show something only on the directory homepage and not any other pages?
I have some php that I would only like to execute on the main page. Any help will be appreciated. Thanks! |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Oct 2005
Location: (California)
Posts: 5,268
![]() ![]() ![]() ![]() |
This should work. Free Version.
Code:
{if $category.id == 0}
Content here.This content will only show on your main page.
{/if}
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks! Last edited by Greg; 04-28-2010 at 10:31 PM. Reason: added free version |
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Aug 2006
Location: Floating on a rock in space thinking we are smart.
Posts: 632
![]() |
You also do from the backend using blocks to display only on home page... Pro Version
Admin Panel - Manage Blocks - New or Edit Block - If the block is set on sticky click off and other page display options appear - select home and save.
__________________
You`ve Never Seen Anything Like This Before! Last edited by smartpc; 04-29-2010 at 05:36 AM. |
|
|
|
|
|
#4 |
|
Join Date: Aug 2006
Posts: 23
![]() |
Thanks guys. Tried Gregs way (saw it first) and it worked perfectly.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|