You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Richard Frovarp <Ri...@sendit.nodak.edu> on 2006/10/02 23:44:55 UTC
Re: [1.4] Overriding JX Templates and Publication Templating
Doug Chestnut wrote:
> Hi Richard
>
> Richard Frovarp wrote:
>> I am trying to override the site/create.jx template to remove all the
>> extra Dublin Core stuff my users will have no clue about. I am
>> guessing I will need to patch the cocoon.xconf file to do it.
>> However, I am using publication templating and am trying to figure
>> out how that will tie in.
> Copy modules-core/sitemanagement/usecases/site/create.jx to
> {yourpub}/lenya/modules/sitemanagement/usecases/site/create.jx, edit
> your copy, build, start :).
>
>>
>> Right now my base publication is the default publication. From there
>> I have used the default to create a new publication that contains my
>> XSLT changes and the like. Then my actual sites are based off of that
>> template. I don't want to keep applying my changes to the default
>> publication, as that changes as development goes on. So I prefer all
>> of my changes to be set in the first publication off of it. Any
>> suggestions?
> This should work. Most files that you would want to customize are
> referenced by the fallback:// protocol.
>
> ex: fallback://lenya/modules/sitemanagement/usecases/site/create.jx
> checks ->
> {currentpub}/lenya/modules/sitemanagement/usecases/site/create.jx
> then ->
> {templatepub}/lenya/modules/sitemanagement/usecases/site/create.jx
> then -> ...
> then -> context:/lenya/modules/sitemanagement/usecases/site/create.jx
>
> HTH,
> --Doug
This did work. I don't know what the heck I was reading/typing when it
didn't.
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org