From d3bd74a4185326d49103605f9f1f306f43d04dac Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 18 Oct 2017 07:27:14 +0000 Subject: [PATCH] Relocated jsp template to avoid code duplication and copy&paste errors git-svn-id: https://svn.libreccm.org/ccm/trunk@5051 8810af33-2d31-482b-a856-94f89814c4df --- .../bundles/base/cfg/integration.properties | 4 +- .../{gen-templates.txt => lcs-templates.txt} | 16 +- .../bundles/base/templates/placeholder.info | 15 +- .../bundles/demo/cfg/integration.properties | 4 +- .../{gen-templates.txt => lcs-templates.txt} | 16 +- .../bundles/demo/templates/placeholder.info | 15 +- .../bundles/devel/cfg/integration.properties | 4 +- ccm-lcs-bundle/bundles/devel/cfg/project.xml | 4 +- .../{gen-templates.txt => lcs-templates.txt} | 16 +- .../bundles/devel/templates/placeholder.info | 15 +- .../slimline/cfg/integration.properties | 4 +- .../{gen-templates.txt => lcs-templates.txt} | 16 +- .../{ => ccm-navigation}/placeholder.info | 9 +- .../standard/cfg/integration.properties | 4 +- .../res/bundle/navigation/gen-templates.txt | 8 - .../res/bundle/navigation/lcs-templates.txt | 8 + .../standard/templates/placeholder.info | 9 +- .../navigation/SpecializingList.jsp | 46 ------ .../navigation/{README => aaREADME} | 2 +- .../ccm-navigation/navigation/gen-atoz.jsp | 51 ------- .../ccm-navigation/navigation/gen-default.jsp | 62 -------- .../ccm-navigation/navigation/gen-events.jsp | 73 --------- .../navigation/gen-portal-welcome.jsp | 40 ----- .../ccm-navigation/navigation/gen-portal.jsp | 38 ----- .../ccm-navigation/navigation/gen-recent.jsp | 56 ------- .../ccm-navigation/navigation/gen-welcome.jsp | 142 ------------------ .../ccm-navigation/navigation/sitemap.jsp | 36 ----- 27 files changed, 98 insertions(+), 615 deletions(-) rename ccm-lcs-bundle/bundles/base/res/bundle/navigation/{gen-templates.txt => lcs-templates.txt} (58%) rename ccm-lcs-bundle/bundles/demo/res/bundle/navigation/{gen-templates.txt => lcs-templates.txt} (58%) rename ccm-lcs-bundle/bundles/devel/res/bundle/navigation/{gen-templates.txt => lcs-templates.txt} (58%) rename ccm-lcs-bundle/bundles/slimline/res/bundle/navigation/{gen-templates.txt => lcs-templates.txt} (58%) rename ccm-lcs-bundle/bundles/slimline/templates/{ => ccm-navigation}/placeholder.info (72%) delete mode 100755 ccm-lcs-bundle/bundles/standard/res/bundle/navigation/gen-templates.txt create mode 100755 ccm-lcs-bundle/bundles/standard/res/bundle/navigation/lcs-templates.txt delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/SpecializingList.jsp rename ccm-lcs-bundle/web/templates/ccm-navigation/navigation/{README => aaREADME} (87%) delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-atoz.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-default.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-events.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-portal-welcome.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-portal.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-recent.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/gen-welcome.jsp delete mode 100644 ccm-lcs-bundle/web/templates/ccm-navigation/navigation/sitemap.jsp diff --git a/ccm-lcs-bundle/bundles/base/cfg/integration.properties b/ccm-lcs-bundle/bundles/base/cfg/integration.properties index 28515576b..27c09aa32 100644 --- a/ccm-lcs-bundle/bundles/base/cfg/integration.properties +++ b/ccm-lcs-bundle/bundles/base/cfg/integration.properties @@ -170,8 +170,8 @@ com.arsdigita.forum.use_wysiwyg_editor=true com.arsdigita.navigation.category_menu_show_grand_children=false ; com.arsdigita.navigation.category_menu_show_nephews=false com.arsdigita.navigation.default_cat_root_path=/navigation/ -com.arsdigita.navigation.default_template=/templates/ccm-navigation/navigation/gen-default.jsp -com.arsdigita.navigation.templates_file=bundle/navigation/gen-templates.txt +com.arsdigita.navigation.default_template=/templates/ccm-navigation/navigation/def-page.jsp +com.arsdigita.navigation.templates_file=bundle/navigation/lcs-templates.txt # SUBSITE configuration parameters diff --git a/ccm-lcs-bundle/bundles/base/res/bundle/navigation/gen-templates.txt b/ccm-lcs-bundle/bundles/base/res/bundle/navigation/lcs-templates.txt similarity index 58% rename from ccm-lcs-bundle/bundles/base/res/bundle/navigation/gen-templates.txt rename to ccm-lcs-bundle/bundles/base/res/bundle/navigation/lcs-templates.txt index 65aa29330..065a0c338 100755 --- a/ccm-lcs-bundle/bundles/base/res/bundle/navigation/gen-templates.txt +++ b/ccm-lcs-bundle/bundles/base/res/bundle/navigation/lcs-templates.txt @@ -1,8 +1,8 @@ -LibreCMS Default Items Page,Default Navigation Index Page ordering items in ascending order,/templates/ccm-navigation/navigation/gen-default.jsp -LibreCMS Recent Items Page,List of items ordered with most recent first,/templates/ccm-navigation/navigation/gen-recent.jsp -LibreCMS A-Z Items,List of items paginated as A-Z,/templates/ccm-navigation/navigation/gen-atoz.jsp -LibreCMS Events Page,Events Page ordering events in decending order,/templates/ccm-navigation/navigation/gen-events.jsp -LibreCMS Portal Page,Portal Page for embedding a portal page as navigation leaves page,/templates/ccm-navigation/navigation/gen-portal.jsp -LibreCMS Portal Welcome Page,Portal page meant as site welcome page,/templates/ccm-navigation/navigation/gen-portal-welcome.jsp -LibreCMS Navigation Welcome Page,Site welcome page created by navigation root term,/templates/ccm-navigation/navigation/gen-welcome.jsp -LibreCMS Specializing Items List,Specialising List item page,/templates/ccm-navigation/navigation/SpecializingList.jsp \ No newline at end of file +LibreCMS Default Items Page,Default Navigation Index Page ordering items in ascending order,/templates/ccm-navigation/navigation/def-page.jsp +LibreCMS Recent Items Page,List of items ordered with most recent first,/templates/ccm-navigation/navigation/def-recent.jsp +LibreCMS A-Z Items,List of items paginated as A-Z,/templates/ccm-navigation/navigation/def-atoz.jsp +LibreCMS Events Page,Events Page ordering events in decending order,/templates/ccm-navigation/navigation/def-events.jsp +LibreCMS Portal Page,Portal Page for embedding a portal page as navigation leaves page,/templates/ccm-navigation/navigation/def-portal.jsp +LibreCMS Portal Welcome Page,Portal page meant as site welcome page,/templates/ccm-navigation/navigation/def-portal-welcome.jsp +LibreCMS Navigation Welcome Page,Site welcome page created by navigation root term,/templates/ccm-navigation/navigation/def-welcome.jsp +LibreCMS Specializing Items List,Specialising List item page,/templates/ccm-navigation/navigation/def-specializing-list.jsp \ No newline at end of file diff --git a/ccm-lcs-bundle/bundles/base/templates/placeholder.info b/ccm-lcs-bundle/bundles/base/templates/placeholder.info index c78cf06e6..762f1b8b4 100644 --- a/ccm-lcs-bundle/bundles/base/templates/placeholder.info +++ b/ccm-lcs-bundle/bundles/base/templates/placeholder.info @@ -1,12 +1,19 @@ -Subdirectory