ssi novice

A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Post Reply
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

ssi novice

Post by Maz »

Heck, I tried everything someone must know how I get an ssi include to show up only on the index page from the template.

This 'if' still shows up on every page.

Code: Select all

<!--#if expr="$DOCUMENT_URI=./index.php"-->
<?php @include(); ?>
<!--#endif-->
Thanks,
maz
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I don't know php, so I'll be no help to you there. However, it seems to me that if you want this only to show on the index page, why not just pull all this from the template and put only the include on the index page? Why ask all the other pages to go through the computation if you already know they aren't going to use it?
John
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Because includes won't go through the template system because its already an include for the whole system.

I've tried every possible combination, just can't get it to show only on index.

maz
Post Reply