You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Andreas Kollegger <an...@kollegger.name> on 2009/06/12 06:08:13 UTC

load root node from a bundle

Hi all,

The content loading web page [1] is pretty helpful for getting initial  
content for directories below root. But, is it possible to use a  
content definition file for the root node? Up to now I've just been  
using a static index.html file. Instead, I'd like to set the resource  
type and other properties of the root node, and render it with  
appropriate scripts.

Any tips or an example I can look at?

Thanks,
Andreas

[1] http://incubator.apache.org/sling/site/content-loading.html

Re: load root node from a bundle

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Andreas,

On Fri, Jun 12, 2009 at 6:08 AM, Andreas
Kollegger<an...@kollegger.name> wrote:
> The content loading web page [1] is pretty helpful for getting initial
> content for directories below root. But, is it possible to use a content
> definition file for the root node? ...

Yes, see http://svn.apache.org/repos/asf/incubator/sling/trunk/launchpad/content/src/main/resources/content/ROOT.json
for an example.

-Bertrand