So I fixed it by using a ternary statment hack, that evaluates both entries/blocks.
[code]
<metal:fill fill-slot="main">
<metal:main_macro define-macro="main"
tal:define="portal_type python:here.getPortalTypeName().lower().replace(' ', '_');
folder_list context/folderlistingFolderContents;
folder_list python: (folder_list.reverse(), folder_list)[1];
base_macros here/base/macros;
view_template python:'%s_view' % portal_type;
<!-- rest of code -->
[/code]
1 comments:
Great! Many thanks, that's what I was looking for! I used it as a draft for plone.comments reverse order :-)
Post a Comment