[Zope] Starting a search from the correct folder

Nikko Wolf nikko-wolf at earthlink.net
Fri Jul 1 17:43:43 EDT 2005


Andreas Jung wrote:
> 
> 
> --On 30. Juni 2005 22:27:37 +0100 John Poltorak <jp at warpix.org> wrote:
> 
>> I have some code which here:-
>>
>> <ul tal:condition="python: context.objectValues(['Folder'])">
>>   <li tal:repeat="item python: context.objectValues(['Folder'])">
>>     <a href="ABSOLUTE_URL"
>>        tal:attributes="href item/absolute_url"
>>        tal:content="item/title_or_id">SUB-OBJECT TITLE OR ID</a></li>
>> </ul>

>> What I'd like to do is skip the first list. If I want to generate a list
>> of folders in say the 'groups' folder, how would I change the code above?
>>
>>
>>
> What is your real problem? I've read the posting three time and I not 
> still not getting to the point what you mean.

John, I'm not sure what you mean either -- but if my guess *is* right, 
try changing the two occurrances of "context" to "context.groups"

Nikko


More information about the Zope mailing list