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/09/29 17:34:50 UTC

[1.4] Overriding JX Templates and Publication Templating

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.

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?

Thanks,

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: [1.4] Overriding JX Templates and Publication Templating

Posted by Richard Frovarp <Ri...@sendit.nodak.edu>.
> 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
>

Unfortunately, this is what is in the cocoon.xconf file:

<component-instance 
class="org.apache.lenya.cms.site.usecases.CreateDocument" 
logger="lenya.site" name="sitemanagement.create">
      <view template="modules/sitemanagement/usecases/site/create.jx"/>
    </component-instance>

However it is being called, it does not recognize the fallback option.

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: [1.4] Overriding JX Templates and Publication Templating

Posted by Richard Frovarp <Ri...@sendit.nodak.edu>.
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


Re: [1.4] Overriding JX Templates and Publication Templating

Posted by Doug Chestnut <dh...@virginia.edu>.
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
> 
> Thanks,
> 
> Richard
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org