this is my structure: Folder 'HERE' has Folders within it. Assume that they have ids ID1, ID2, ID3, etc. Each of these Folders has a property 'common_name' Thus, in HERE/ID1 can reference <!--#var common_name--> and get 'Name 1'. In HERE, I execute a form. The checkboxes build a list ids ['ID1', 'ID2']. Processing the form, <!--#var ids--> gives me the list. <!--#in ids--><!--#var sequence-item--><!--#/in--> gives 'ID1' on the first iteration. But I want to get 'Name 1' On Mon, 15 Feb 1999, Martijn Faassen wrote:
Richard Wackerbarth wrote:
I don't think so. Which "title" are you referencing?
The title of sequence-item (provided it has one). If outside an #in, 'title' would refer to the title of the folder (if any), I think.
I have a very similar problem.
In a form, I generate a list of 'ids' (just like the manage screens). When processing that form, I call "manage_delObjects" just fine. However, before doing so, I would like to generate a report. That report needs to list not the 'id', but the 'common_name' of the item.
-- -- snip -- --
<!--#in ids--> <P><!-- This gets the ID --> <!--#var sequence-item--> <!-- But this gives a key error --> <!--#var common_name--> <!--#/in--> <!-- This is fine if I don't make the above error --> <!--#call "manage_delObjects(REQUEST=REQUEST, ids=ids)"-->
Is common_name an attribute of an id object? I think if it is, <!#--#var common_name--> ought to work in the #in. At least that is how it appears to work for me. But I admit I'm muddled about this too. Figure 2 on page 21 of the Zope Document Template Markup Language User's Guide (what a title!) seems to confirm it, though.