Navigation/object relationships
I am working on building a site that contains automatically-generated navigation trees and site maps. Currently, I am using a convoluted system involving properties containing a "navigation level", and am running into problems with that system as I try to extend it to handle more deeply nested parts of the site. What I am looking for is a relatively painless way to determine for an object y, contained somewhere under object x, what is the relationship/containment hierarchy from x to y? Or, at the very least, how do I obtain a given object's container? I have figured out how to do that with path expressions in TAL, but something I can do from a PythonScript would be most useful. Thanks in advance, Mike
Michael Ekstrand wrote:
What I am looking for is a relatively painless way to determine for an object y, contained somewhere under object x, what is the relationship/containment hierarchy from x to y? Or, at the very least, how do I obtain a given object's container? I have figured out how to do that with path expressions in TAL, but something I can do from a PythonScript would be most useful.
If you don't care for the tree widget, I think you need to make an external method that does a recursive call for the objets you want listed. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science
participants (2)
-
Max M -
Michael Ekstrand