<dtml-tree> question
Greetings Zopisti, I'm beginning to make some real progress on my Zopified Web site. My overall goal is to make our 9th grade science curriculum available online in browsable and downloadable form. I'm using a navigation tree to browse the curriculum. I've got it so that the tree gets constructed properly, but clicking on any of the nodes fails to get me to that page. Feel free to see for yourself at http://206.131.108.122:8080/atlas/curriculum/particle/ In particular, open the "Particle Theory of Matter" branch and try to read "1-2 How do we "prove" something in science." I never see anything but the curriculum's initial page. Any ideas? -Tim BTW, feel free to make suggestions about the site. The homepage is at http://206.131.108.122:8080/atlas/. -- 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/
Tim Wilson wrote:
Greetings Zopisti,
I'm beginning to make some real progress on my Zopified Web site. My overall goal is to make our 9th grade science curriculum available online in browsable and downloadable form. I'm using a navigation tree to browse the curriculum. I've got it so that the tree gets constructed properly, but clicking on any of the nodes fails to get me to that page.
Feel free to see for yourself at http://206.131.108.122:8080/atlas/curriculum/particle/
In particular, open the "Particle Theory of Matter" branch and try to read "1-2 How do we "prove" something in science." I never see anything but the curriculum's initial page. Any ideas?
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 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. -Michel
-Tim
BTW, feel free to make suggestions about the site. The homepage is at http://206.131.108.122:8080/atlas/.
-- 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/
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
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/
Replacing the spaces with "%20"s would solve that problem, wouldn't it? ----- Original Message ----- From: Tim Wilson <wilson@chemsun.chem.umn.edu> To: Michel Pelletier <michel@digicool.com> Cc: Zope Listserv <zope@zope.org> Sent: Saturday, August 21, 1999 10:23 PM Subject: Re: [Zope] <dtml-tree> question
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/
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Michel Pelletier -
Sean Robertson -
Tim Wilson