[ZDP] Printable version of Tom's version of ZBook
Tue, 25 May 1999 12:37:39 +0200
At 19:10 21/05/99 , Tom Deprez wrote:
>tree-item-url-->?tree-s=<!--#var tree-s--><!--#if tree-e-->&tree-e=<!--#var
>tree-e--><!--#/if--><!--#if tree-c-->&tree-c=<!--#var tree-c-->
It builds up a link to the page, including all relevant state information
of the tree. You need all three variables (tree-s, tree-e and tree-c)
because they represent the state of the tree on click ago, before
displaying the tree. Complicated, but it works. Tree-s is the state of the
tree before expanding or collapsing any branches, tree-e and tree-c are
modifications to the tree, specifying collapsing or expanding branches. It
could be that this URL can be simplified, I haven't experimented enough
with this yet.
>Next Question :
>Is it possible to add such a little black banner (or footer) on the top
>(like we can see on ZDP itself (I think it's done with Tinytable?) which
>contains a link to the previous/next paragraph. And a link to the first
>page of ZBook?
Previous/Next can be a bit tricky, especially at the boundaries of the
chapters (we have to figure out what the last article in the previous
chapter is; and _if_ there is any previous chapter...)
I think I can solve this with a DTML Method in the starting folder that,
like the zb_all_view method, uses recursion and acquisition to determine
the full list of documents, and compiles a list from which we can determine
a previous/next link.
I'll get back to you on this.
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:firstname.lastname@example.org http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149