Hi Felix,
Felix Meschberger schrieb:
Felix Meschberger schrieb:
Andreas Hartmann schrieb:
is it possible to load overlapping initial content from multiple bundles
when overwriting is enabled? E.g. if I have the following bundles with
content:
IIRC the initial content tree should be disjoint for different bundles
if overwrite is set.
This makes sense.
bundle "core": content/apps/foo/index.html
bundle "gui": content/apps/foo/gui/css/foo.css
When I install either of these bundles, the content of the other module
is removed. Is there any way around this, or do I have to disable
overwriting?
So maybe in your core bundle you should just provide
content/apps/foo/index.html while in the gui bundle you should provide
contetn/apps/foo/gui.
I have to admit that I don't really understand this – what's the
difference to the entries I mentioned above?
It's not possible to define a "target base path" for initial content, is
it? Something like this:
Core bundle:
src/main/resources/content/apps/foo/index.html
<Sling-Initial-Content>
content;overwrite:=true
</Sling-Initial-Content>
Ah ! point is, that there is another parameter "path" which may be used
to set the target location.
[…]
See also http://incubator.apache.org/sling/site/content-loading.html
thanks a lot! One minute before your reply I remembered having seen
something like this and just found it when I examined the Loader SVN
history: https://issues.apache.org/jira/browse/SLING-453
I had used the Wiki page as a reference, it is probably outdated:
http://cwiki.apache.org/SLING/content-loading.html
Thanks again!
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01