[opencms-dev] siblings, templates

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Fri Mar 28 15:07:00 CET 2008


On Fri, Mar 28, 2008 at 12:53:38PM +0000, Olli Aro wrote:
> Hi Chris,
> 
> Yes this is definitely possible, you just need to build the required logic
> in your master template meaning the JSP where your "template" property point
> to is just controller including another JSP for the correct template e.g.
> based on a property value inherited from folder, URL pattern or something
> else.

Yes, that is, what I meant by "changing the template". Sure, that could
be done. But I thought of some "builtin" in OpenCms that does the trick.


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> I'm running opencms 6.2.3 (in the production version, 7.0.4 soon to come)
> in a multisite environment.
> 
> We have some pages that have the same content but have to appear in
> different sites with their different templates associated to them.
> 
> Now our sectretaries who are doing the content editing are groaning
> about having to maintain the same contents in different locations.
> 
> Is there a way such that a page kind of "inherits" the template from
> it's parent folder or some other mechanism that could solve that
> problem? 
> 
> Well, I could confine the contents to a single file and include it
> but that would require changing the templates etc. etc.



More information about the opencms-dev mailing list