Hello everyone,
I have recently been trying to do this and am not getting far. I want my sites homepage to have links to all new uploaded page templates/dtml/3rd party products to my site that are being ftp-ed on a daily basis. I have used the following code which works great for content that is listed in the portal_types: ( I got the code from zopelabs.com)
<div metal:fill-slot="main"
tal:define="results
python:container.portal_catalog(meta_type=[
'Document',
'Event',
'Image',
'News Item',
'Link',
'ZWiki Page',
'Book',
'Forum',
'Photo Album',
'CMFQuote',
'Blog Entry'
],sort_on='modified',sort_order='reverse');
Batch python:modules['Products.CMFPlone'].Batch;
DateTime python:modules['DateTime'].DateTime;
b_start python:request.get('b_start',0);">
The code works fine for the listed items Document, Event, Link etc. But if I add the meta_type page template in the list it does not work. I want to be able to show links to uploaded/ftp-ed such as dtml, page templates, and other 3rd party products. Do I need to create portal_types for each of these items. If so how do I do that?
I have used all the examples that JCLawrence has provided on zopelabs.com. They work great for portal_types that have Factory-based Type Information.
But I could not find any code on page templates, or dtml pages. Can someone help?
Thank you
TP