Hi, I have the following hierarchical contents : FolderRoot ----Folders -------FolderA ---------FolderAA ---------FolderAB -------FolderB -------FolderC -------DocumentX I want to display it with Dtml-tree, so I have written : <dtml-let URL=absolute_url> <dtml-tree expr="Folders" leaves=dtcTemplate sort=title> <dtml-var title> </dtml-tree> </dtml-let> By this way I can catch FolderA, FolderB, FolderC and DocumentX. But I can't go inside FolderA, this is due to URL=absolute_url. What I have missing with Dtml-tree to catch the right URL and so open the contents ? Sincerily PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com
Pascal Samuzeau writes:
I have the following hierarchical contents :
FolderRoot ----Folders -------FolderA ---------FolderAA ---------FolderAB -------FolderB -------FolderC -------DocumentX
I want to display it with Dtml-tree, so I have written :
<dtml-let URL=absolute_url> <dtml-tree expr="Folders" leaves=dtcTemplate sort=title> <dtml-var title> </dtml-tree> </dtml-let>
By this way I can catch FolderA, FolderB, FolderC and DocumentX. But I can't go inside FolderA, this is due to URL=absolute_url. You know more than we do.
What is the problem with "URL=absolute_url"? What happens when you try to go inside "FolderA"? Dieter
Hi Dieter, I know, I know, ... I try to understand well... So, when I try to go inside the FolderA, I have my site's page returned. When I have a look about the link it looks like : http://MySite/FolderA?tree-e=............. It must go to http://MySite/FolderA/FolderAA?tree-e=........, but it doesn't. Sincerily. PS -------------------
Pascal Samuzeau writes:
I have the following hierarchical contents :
FolderRoot
----Folders
-------FolderA
---------FolderAA
---------FolderAB
-------FolderB
-------FolderC
-------DocumentX
I want to display it with Dtml-tree, so I have written :
<dtml-let URL=absolute_url>
<dtml-tree expr="Folders" leaves=dtcTemplate sort=title>
<dtml-var title>
</dtml-tree>
</dtml-let>
By this way I can catch FolderA, FolderB, FolderC and DocumentX.
But I can't go inside FolderA, this is due to URL=absolute_url.
You know more than we do.
What is the problem with "URL=absolute_url"? What happens when you try to go inside "FolderA"?
Dieter
Cordialement PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com
Pascal Samuzeau writes:
I know, I know, ... I try to understand well...
So, when I try to go inside the FolderA, I have my site's page returned.
When I have a look about the link it looks like :
http://MySite/FolderA?tree-e=.............
It must go to http://MySite/FolderA/FolderAA?tree-e=........, but it doesn't. Why should it?
The (path part of the) URL is usually not changed when you expand the tree, just the query string. See the code for the left part of the ZMI (Zope Management Interface) on how to construct (inside the tree element content) URLs to corresponding objects. Dieter
Hi Dieter, I know, I know, ... I try to understand well... So, when I try to go inside the FolderA, I have my site's page returned. When I have a look about the link it looks like : http://MySite/FolderA?tree-e=............. It must go to http://MySite/FolderA/FolderAA?tree-e=........, but it doesn't. Sincerily. PS -------------------
Pascal Samuzeau writes:
I have the following hierarchical contents :
FolderRoot
----Folders
-------FolderA
---------FolderAA
---------FolderAB
-------FolderB
-------FolderC
-------DocumentX
I want to display it with Dtml-tree, so I have written :
<dtml-let URL=absolute_url>
<dtml-tree expr="Folders" leaves=dtcTemplate sort=title>
<dtml-var title>
</dtml-tree>
</dtml-let>
By this way I can catch FolderA, FolderB, FolderC and DocumentX.
But I can't go inside FolderA, this is due to URL=absolute_url.
You know more than we do.
What is the problem with "URL=absolute_url"? What happens when you try to go inside "FolderA"?
Dieter
Cordialement PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com
participants (2)
-
Dieter Maurer -
Pascal Samuzeau