Are there limitations or constraints in the use of %%IF tests in wssi files?
I modified the standard "navigation.wssi" (witch already contains one %%IF)
and it just is not imported correctly any more.
The original file contained :
_____________________
<TABLE WIDTH="100%" BORDER=2 CELLSPACING=1 CELLPADDING=4>
<TR ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#C8C8EE">
<TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="Mailboxes.wssp">Mailboxes</A>
</B></FONT>
</TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="Compose.wssp">Compose</A>
</B></FONT>
</TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="Rules.wssp">Rules</A>
</B></FONT>
</TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="Settings.wssp">Settings</A>
</B></FONT>
</TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="RPOP.wssp">External</A>
</B></FONT>
<!--%%IF SESSION(webSiteEnabled)--></TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="WebSite.wssp">Web Site</A>
</B></FONT><!--%%ENDIF-->
</TH><TH NOWRAP>
<FONT face="Helvetica" size=3><B>
<A HREF="Bye.wssp" TARGET="_top">Log Out</A>
</B></FONT>
</TH></TR>
</TABLE>
_____________________
My version contains :
_____________________
<TABLE WIDTH="100%" BORDER=2 CELLSPACING=1 CELLPADDING=4>
<TR ALIGN=CENTER VALIGN=MIDDLE class="bgrouge">
<TD NOWRAP><A HREF="Mailboxes.wssp"
class="arial14boldblanc">Mailboxes</A></TD>
<TD NOWRAP><A HREF="Compose.wssp"
class="arial14boldblanc">Compose</A></TD>
<TD NOWRAP><A HREF="Rules.wssp" class="arial14boldblanc">Rules</A></TD>
<TD NOWRAP><A HREF="Settings.wssp"
class="arial14boldblanc">Settings</A></TD>
<TD NOWRAP><A HREF="RPOP.wssp"
class="arial14boldblanc">External</A></TD>
<!--%%IF SESSION(webSiteEnabled)--><TD NOWRAP><A HREF="WebSite.wssp"
class="arial14boldblanc">Web Site</A></TD><!--%%ENDIF-->
<TD NOWRAP><A HREF="Bye.wssp" TARGET="_top" class="arial14boldblanc">Log
Out</A></TD>
</TR>
</TABLE>
_____________________
Witch is basically the same except I use styles from a css
And it is loaded in the browser as :
_____________________
<TABLE WIDTH="100%" BORDER=2 CELLSPACING=1 CELLPADDING=4>
<TR ALIGN=CENTER VALIGN=MIDDLE class="bgrouge">
<TD NOWRAP><A HREF="Mailboxes.wssp"
class="arial14boldblanc">Mailboxes</A></TD>
<TD NOWRAP><A HREF="Compose.wssp"
class="arial14boldblanc">Compose</A></TD>
<TD NOWRAP><A HREF="Rules.wssp" class="arial14boldblanc">Rules</A></TD>
<TD NOWRAP><A HREF="Settings.wssp"
class="arial14boldblanc">Settings</A></TD>
<TD NOWRAP><A HREF="RPOP.wssp" class="arial14bol
_____________________
Nothing more, importation stopped in the middle of a line.
The line where it stops is clean (no invisible characters or other
strangies), and it seems the problem somehow comes from the %%IF condition
because everything goes fine if I remove it.
Any information about this is welcome,
Thanks for your time,
Theo
#############################################################
This message is sent to you because you are subscribed to
the mailing list <CGat...@mail.stalker.com>.
To unsubscribe, E-mail to: <CGateP...@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePr...@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePr...@mail.stalker.com>
Send administrative queries to <CGatePro...@mail.stalker.com>
After I've fixed the code by making sure that 'class' is separated from HREF
value with a space, not carriage return, everything imports without a
problem.
Attached is the corrected version of navigation.wssi
--
Best regards,
Dmitry Akindinov
=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your reply.