diff --git a/ccm-zes-aplaws/src/com/arsdigita/aplaws/Loader.java b/ccm-zes-aplaws/src/com/arsdigita/aplaws/Loader.java index 9347235d7..53c67b5e3 100644 --- a/ccm-zes-aplaws/src/com/arsdigita/aplaws/Loader.java +++ b/ccm-zes-aplaws/src/com/arsdigita/aplaws/Loader.java @@ -237,6 +237,25 @@ public class Loader extends PackageLoader { "Display a MultiPartArticle as index item", "/packages/navigation/templates/mparticle-index.jsp"); + + template = + Template.create( + "Specializing list", + "Displays a list of items as the ordinary template, but specializes the objects in the list.", + "/packages/navigation/templates/SpecializingList.jsp"); + + template = + Template.create( + "SciProject list", + "Displays a list of SciProject items, including some attributes.", + "/packages/navigation/templates/SciProjectList.jsp"); + + template = + Template.create( + "SciPublication list", + "Displays a list of publication items, including some attributes.", + "/packages/navigation/templates/SciPublicationList.jsp"); + } /** diff --git a/ccm-zes-aplaws/web/packages/navigation/templates/SpecializingList.jsp b/ccm-zes-aplaws/web/packages/navigation/templates/SpecializingList.jsp new file mode 100644 index 000000000..34898c1f9 --- /dev/null +++ b/ccm-zes-aplaws/web/packages/navigation/templates/SpecializingList.jsp @@ -0,0 +1,47 @@ + + + + + + + + + + + long age = Navigation.getConfig().getIndexPageCacheLifetime(); + if (age == 0) { + DispatcherHelper.cacheDisable(response); + } else { + DispatcherHelper.cacheForWorld(response, (int)age); + } + + + + + + + + + ((com.arsdigita.london.navigation.ui.object.ComplexObjectList) itemList).setDefinition(new CMSDataCollectionDefinition()); + ((com.arsdigita.london.navigation.ui.object.ComplexObjectList) itemList).setRenderer(new CMSDataCollectionRenderer()); + ((com.arsdigita.london.navigation.ui.object.ComplexObjectList) itemList).getDefinition().setObjectType("com.arsdigita.cms.ContentPage"); + ((com.arsdigita.london.navigation.ui.object.SimpleObjectList) itemList).getDefinition().addOrder("parent.categories.link.sortKey"); + ((com.arsdigita.london.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setPageSize(20); + ((com.arsdigita.london.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setSpecializeObjects(true); + + + + + + + \ No newline at end of file