Referencing Objects from id's stored in a lines property.
I'm considering using a DTML document having a lines property that stores id's of related objects (i.e., objects where there is to be a user-defined relation). Essentially, the lines property would be a container of id's of objects available to the object having the lines container. I can load the id's into the lines property (that is easy). However, does anyone know of the DTML code needed to sequentially list each of the elements in the lines property (which is a Python list) and then call that object to obtain and then display the title corresponding to the object id? The following some pseudo-Python, I make no pretense that this is syntactically correct DTML. It's not pretty, but I think it illustrates what I'm looking for. Note, there is a DTML document with a lines property called "my_related_objects" <dtml-in my_related_objects> # Get the item at this point in the list (lines)... <dtml-var my_related_objeccts[item]> # call that object and get its title and absoluteURL and list as a hyperlink. <A HREF="<dtml-var my_related_objects[item]>"><dtml-var my_related_objects[item].title></A> </dtml-in> Is something like that possible? Is there a better way of doing it? TIA, Ron
Dear All, Just to draw your attention to Naviscope **, which is a free web accelerator, advert blocker, atomic-time teller etc. which actually works very well for normal browsing on explorer 5.5 (PC). However, it does bugger up Zope a bit, in that it caches a bit too much. (Errors on Saving in Management screen like 'This resource not found, etc., try refreshing your page.) Naviscope brought to my attention by Phil, and its shortcomings also pinpointed by Phil. I have since, like a true newby, tried and begun to use Opera, which I think is really cool (except for the adverts, which are only OK if you set preferences to 'Female, earning a million grand, single' etc. in the preferences). <Design> I also began to work out Bluerobot's *** (CSS) Opera (Explorer) hacks after I installed Opera, which were pretty difficult for me to work out at first, but have since enabled my (poorly understood) CSS layouts to work in Opera 5.1.2 (PC). ** http://www.naviscope.com/splash.php3 *** http://www.bluerobot.com/web/layouts/.
participants (2)
-
complaw@hal-pc.org -
David Smithson