SSI if/else includes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tim_vr

    SSI if/else includes

    I have a number of pages that are cross linked from 2 different menus.

    menu 1 : 1,2,3,4,5,cup
    menu 2 : 11,12,13,14,15, cup

    the cup page will be accessed from both but I need the original menu
    ie 1-5 or 11-15 to remain.
    I am using a query string to pass my variable

    <!--#echo var="QUERY_STRI NG_UNESCAPED"-->
    this prints the correct variable on screen - ie. menu1

    <!--#if "QUERY_STRING_U NESCAPED"="menu 1" -->
    <!--#include virtual="/Library/menu1.lbi"-->
    <!--#else -->
    <!--#include virtual="/Library/menu2.lbi"-->
    <!--#endif -->


    I'm not a programmer(a basic knowledge)and I tend to work from
    examples etc but I can't see why this doesn't work. Any suggestions
    would be greatly appreciated.

    Regards
    Tim
Working...