[Zope] <dtml-tree> question
Tim Wilson
wilson@chemsun.chem.umn.edu
Sat, 21 Aug 1999 21:23:56 -0500 (CDT)
On Sat, 21 Aug 1999, Michel Pelletier wrote:
> You're URLs apear to contain illegal whitespace that is probably
> interfering with the tree tags ability to find out where it is. If you
> hover your mouse over the link you mentioned, you will see all kinds of
> whitespace in the URL.
I noticed that too.
> I suggest editing your DTML in the tree tag so that the whitespace goes
> away. Sometimes you have to sacrifice the clarity of your DTML for
> well-formed results.
I lifted the DTML syntax for the tree from the ZBook tutorial. Here's my
DTML:
<SPAN CLASS=tree>
<!--#tree particle branches_expr="objectValues(['Folder', 'DTML
Document'])" sort=id-->
<!--#if expr="meta_type == 'Folder'"-->
<!--#if tree-item-expanded-->
<IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_obook" ALIGN="TOP"
BORDER="0" width=16 height=16>
<!--#else-->
<IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_cbook" ALIGN="TOP"
BORDER="0" width=16 height=16>
<!--#/if-->
<!--#var title_or_id-->
<!--#else-->
<IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_dnode" ALIGN="TOP"
BORDER="0" width=16 height=16>
<A HREF="<!--#var "particle.absolute_url()"-->/
<!--#var tree-item-url-->?
<!--#if tree-s-->tree-s=<!--#var tree-s--><!--#/if-->
<!--#if tree-e-->&tree-e=<!--#var tree-e--><!--#/if-->
<!--#if tree-c-->&tree-c=<!--#var tree-c--><!--#/if-->">
<!--#var title_or_id--></a>
<!--#/if-->
<!--#/tree-->
</SPAN>
I don't see any extra whitespace in there. BTW, I haven't figured out the
purpose of <!--var SCRIPT_NAME>. To what does that refer?
Thanks for hints. I'll keep looking.
-Tim
--
Timothy Wilson | "The faster you | Check out:
Henry Sibley H.S. | go, the shorter | http://slashdot.org/
W. St. Paul, MN, USA | you are." | http://linux.com/
wilson@chem.umn.edu | -Einstein | http://www.mn-linux.org/