Question
I am trying to use Conditional Comments, but when I put:
<!-- [if IE]>
<p>This only appears in Internet Explorer</p>
<![endif]-->
TWIKI automatically rendered some "<" ">" characters transforming in ">" and "<":
<!-- [if IE]>
<p>This only appears in Internet Explorer</p>
<![endif]-->
Details about Conditional Comments
here
Thank you very much,
--
GustavoBittencourt - 14 Aug 2005
Environment
--
GustavoBittencourt - 14 Aug 2005
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
gee, thanks miscrosoft. thats horrible. if the endif tag started with !-- then i could propose a simple fix, as it is, i lost interest. does anyone want to work on a patch for DEVELOP for this?
as its not standard html, its not overy urgent though (compared to fixing bugs)
--
SvenDowideit - 14 Aug 2005
Yes, it is horrible, but it is the only way that I know to implement Horizontal CSS Menu. I am follow this page instructions:
http://www.seoconsultants.com/css/menus/tutorial/
If the only way is to patch TWIKI, I could try to hack TWIKI code. Other possibility is to create a plugin. As I am newbie with TWIKI, I don't know what is the better option.
--
GustavoBittencourt - 15 Aug 2005
You can use a conditional
SpreadSheetPlugin formula with
$IF()
--
PeterThoeny - 15 Aug 2005
It seems like this example (a conditional based on client browser) would be another good candidate for the new "context identifiers" feature in
DakarRelease (see feature discription
here).
--
LynnwoodBrown - 15 Aug 2005
It would be, and if anyone cares to try and reliably identify the client browser, then %IFCONTEXT can be used to switch on it (e.g. %IFCONTEXT{"browser_IE6" then="argh" else="sigh"}%)
Peter, you suggest using %CALC and $IF. Is there a way to identify the client browser there already?
--
CrawfordCurrie - 18 Aug 2005