[daisy] Setting the default home page

Parisi, Lou Lou.Parisi at photomask.com
Wed Sep 12 13:58:56 CDT 2007


Being new to daisy and not being familiar with cocoon, I have found it
to be a little time consuming to do some things that I think should be
easy.  One of those was how to configure the default home page.  I
didn't see anything about this in the documentation and didn't find
anything when I searched the mailing list.  After poking around, it
appears this is more about how to configure cocoon rather than daisy.  I
have been able to implement an alternate home page with a link to the
original listings page and am publishing here for other newbies like me
who may search for this.  I am not sure this is the "right" way to do
this so please feel free to comment if there is a better way.

 

1. I created a new site named "main" using the daisy-wiki-add-site
command line utility found in the install directory.  

2. I edited the home page of the main site as desired for my wiki home
page.

3. I edited the file
<daisyroot>/daisywiki/webapp/daisy/sites/cocoon/sitemap.xmap as follows:

 

------------------------------------------------------------------------
------------------------------------------------------

original configuration calls the IndexPageApple when you go to the wiki
site home page

------------------------------------------------------------------------
------------------------------------------------------

<map:match pattern="">

     <map:call function="org.outerj.daisy.frontend.IndexPageApple"/>

</map:match>

 

------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------------------

I updated the configuration to go to the "main" site for the index and
then on my main site 

I provided a link to the "listings" page.  The initial page shown when
redirected to main is determined by the main site siteconf.xml

------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------

<map:match pattern="">

     <map:redirect-to uri="main/" global="true"/>

</map:match>

 

<map:match pattern="listing">

    <map:call function="org.outerj.daisy.frontend.IndexPageApple"/>


</map:match>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20070912/73e35926/attachment-0001.htm


More information about the daisy mailing list