[Zope] Webfolders and IE5

Ian Blenke icblenke@2c2.com
Thu, 7 Oct 1999 14:22:59 -0400


Here's a little snippet for those of you stuck with IE5 to show the current
page as an IE5/Office2000 webfolder. None of this will work for *any* other
browser. Don't blame me :)

-- Option #1---

In your stylesheet, add the following:

	A {
	 behavior: url(#default#AnchorClick);
	 color: #000000;
	}

Then, whenever you use the "FOLDER=" option in an Anchor, when you click on
the link - the WebFolder will be shown (using WebDAV access):

	<A 
       HREF="<!--#var absolute_url-->/webfolder" 
       FOLDER="<!--#var absolute_url-->"
      >View WebFolder</A>

Note, the HREF in the above example is ignored - but I've included it to
start the below method in case the stylesheet change wasn't present. You
*do* need an HREF, but it should point to a page telling users that they
have the wrong browser to accomplish this function (or something to that
effect).

-- Option #2 ---

If the above solution is too painful, you can also create a wrapper method
and do generally the same thing. Simply cut the following and put it in a
"webfolder" method in the root of your site. Then merely append a
"/webfolder" to any directory to view it as an IE webfolder:

(NOTE: This DOES NOT WORK with Netscape)

	<HTML>
	<HEAD>
	<TITLE><!--#var title_or_id--></TITLE>
	<STYLE>
	.httpFolder {behavior: url(#default#httpFolder);}
	</STYLE>
	<SCRIPT>
	function init(){
		oDAV.navigateFrame("<!--#var absolute_url-->","_self");
	}
	</SCRIPT>
	<BODY ONLOAD="init()">
	<DIV ID = "oDAV" CLASS = "httpFolder" >
	</BODY>
	</HTML>

All of this was found on a Microsoft webpage while looking for "WebDAV" and
"WebFolders" - but I've already lost the link. If you find it again, you may
wish to post it here. How anyone can find anything on the Microsoft website
is beyond me.

Hope this helps someone.

 - Ian C. Blenke <ian@blenke.com> <icblenke@2c2.com>