Ticket #919 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

support external template sets

Reported by: russ Assigned to: dragisak
Priority: critical Milestone: 0.9.3_rc2
Component: ambra Version: 0.9-SNAPSHOT
Keywords: configuration Cc:
Blocking: Blocked By: 922, 923, 924, 925, 930, 931

Description

there should be an easy way to include external template sets in a build/package.

currently, enabling a template sets requires the following:

  • a set of files in a journals/template directory
  • a struts-template.xml file
  • <virtualJournals> config in ambra.xml
  • a set of <freemarker> config in ambra.xml
  • optional conditional logic in global/*.ftl and/or templates/main_template.ftl

we need to find a way to include all of the configuration necessary in the journals/template directory, so that as much as possible is self-contained and minimal configuration changes are necessary to enable a template set.

it would be nice to have a maven build/packaging option that would pull external template sets into the build/rpm.

Dependency Graph

Change History

04/23/08 14:13:07 changed by russ

also currently required:

  • an edit to struts.xml to include the struts-template.xml file

04/23/08 16:53:30 changed by amit

  • keywords set to configuration.
  • priority changed from high to critical.

After looking at the state of the ambra.xml configuration file, I suspect that we need to do a lot more cleanup here. I think ambra.xml needs to be made the commons configuration ConfigurationFactory? configuration file to allow it to add or override settings easily. This will allow us to pull out definitions into multiple files (for example, each journal setup is in another configuration file). Please see Configuration.

If the quick fix was half a days work, we would do it, but I suspect any quick fix will probably take as much as doing it well. If we get resources freed up we will do it for 0.9, else right after. Increasing priority though.

04/23/08 20:14:44 changed by amit

Pradeep pointed me to the updated page Configuration.

04/30/08 17:53:13 changed by russ

(In [5570]) moving (almost) everything out of journals/ambraJournal and into root

addresses #919 address #855

we'll work towards removing the need for a default journal at all.

12/19/08 08:09:05 changed by amit

  • owner changed from amit to dragisak.
  • blockedby set to 922, 923, 924, 925, 930, 931.

We should look at the new CAS build set-up to see if we can follow the same concept here.

04/06/09 11:58:08 changed by rich

  • milestone set to 0.9.3_rc2.

Moving to 0.9.3_rc2 as part of the template cleanup.