[Zope-CMF] Title() and page reloading
Chris Withers
chrisw@nipltd.com
Mon, 19 Aug 2002 09:57:40 +0100
Hi Pawel:
Pawel Lewicki wrote:
> localFolder=context.portal_membership.getHomeFolder()
> for folder in localFolder.contentItems(filter={'portal_type':['MyType',
> 'Folder']}):
> if folder[1].portal_type=='MyType':
> if folder[1].Title():print " <a
> href="+str(folder[1].absolute_url())+">"+str(folder[1].Title())+"</a><br>"
> else:print " <a
> href="+str(folder[1].absolute_url())+">"+str(folder[0])+"</a><br>"
> if folder[1].portal_type=='Folder':
> if folder[1].Title():print "<h2><a
> href="+str(folder[1].absolute_url())+"/folder_contents>"+str(folder[1].Title
> ())+"</a></h2>"
> else: print "b <h2><a
> href="+str(folder[1].absolute_url())+"/folder_contents>"+str(folder[0])+"</a
>
>></h2><br>"
>
> for dok in folder[1].contentItems(filter={'portal_type':'MyType'}):
> if dok[1].Title():print " ▪ <a
> href="+str(dok[1].absolute_url())+">"+str(dok[1].Title())+"</a><br>"
> else:print " ▪ <a
> href="+str(dok[1].absolute_url())+">"+str(dok[0])+"</a><br>"
This code is totally impenetrable, you'll have to rephrase you question simply
if you want help :-S
Chris