Bug 114207 - TemplateResolver needs to be able to look for templates in multiple directories
Summary: TemplateResolver needs to be able to look for templates in multiple directories
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-23 23:30 UTC by Dennis Gregorovic
Modified: 2007-04-18 17:02 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-05 17:41:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Dennis Gregorovic 2004-01-23 23:30:49 UTC
Underlying problem
------------------
p2fs must publish templates to the webapp root

Why this is a problem
---------------------
This prevents us from deploying CMS as a WAR.  Also, the webapp
directory name is hard-coded, and therefore brittle.  Finally,
depending on the security model of the servlet container, we may not
be able to write to the webapp directory.

How to fix it
-------------
Currently, TemplateResolver only looks in one directory when searching
for templates.  Since the default templates live in
webapps/ROOT/packages/content-section/templates, the Template Resolver
uses that directory.  Therefore, dynamically published templates must
be written to that directory in order to be found.  One solution is to
extend Template Resolver to use two paths - one for default templates
and one for dynamic templates.  Then, the directory for dynamic
templates could be outside of the webapp root.  

Thanks to Dan for pointing out the problem and the possible solution.

Comment 1 Jon Orris 2006-09-05 17:41:34 UTC
Closing old tickets





Note You need to log in before you can comment on or make changes to this bug.