[daisy] What defines the Daisy Home/place you land after login

Bruno Dumon bruno at outerthought.org
Wed Sep 12 02:48:11 CDT 2007


Hi,

On Tue, 2007-09-11 at 12:25 +0200, Vincent Mouton wrote:
> Hello,
> 
> I sometimes am confused at what happens after a user logs in. Sometimes I do
> land on the Daisy Home (or at least, the page that lists the available
> sites). Sometimes I am redirected to one of the site's homepages.
> 
> And the Daisy Home link, should that always lead you to the current site's
> home, or is the same functionality applying as what happens after login?

Not sure what links you are talking about:

 * there's the 'site home' and 'daisy home' links, the 'daisy home' link
brings you to the site index page.

 * the top-left logo is also linked to 'home', but in this case this is
either the 'site home' or the 'daisy home' depending on whether the page
you're currently on is within the context of a site.

Some confusion probably comes from the distinction between pages
displayed within the context of a site, and those not displayed within
the context of a site, such as the login, registration, etc.

> 
> 2 questions:
> - what defines where one will land?

The 'returnTo' request parameter passed to the login page. If no
returnTo parameter is specified, you will go to the site index page
after login.

The 'Login' link in the user menu is created in menu.xsl, and sets the
returnTo parameter to the URL of the currently requested page. This only
makes sense for GET requests, therefore the login link is only available
on pages resulting from a GET request.

> - is there a way to define, according to user/role/... where one lands after
> login,

You could generate a link to the login page with an appropriate returnTo
parameter.

>  or what sites are shown in the list on the Daisy Home (e.g. everyone
> in role Clown should not see the list of sites, but should go to the
> Clown-site; everyone in role Circus should see both the Clown-site *and*
> Acrobat-site)

The list of sites is filtered by leaving out those for which the user
has no read access to the site home page.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list