You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by cgaeking <ch...@gaeking.de> on 2007/07/25 10:41:34 UTC

Menu/pages-problem with defaults

Hello,
following situation:
I have the following /pages – structure:
/pages/
       folder.metadata – contains:
            …<menu options="/" name="top">
               <options regexp="true">/*</options>
            </menu>…
/pages/admin/
             folder.metadata – contains “<default-page>one</default-page>
             logs.psml
/pages/admin/one/
                 folder.metadata
                 data.psml
/pages/admin/two/
                 folder.metadata
                 two.psml


The administrators can see the menu “admin” with the two submenus “one” and
“two” as well as the link to logs.psml; the submenu “one” is being selected
as default.

I created another user “foo” and a role which only allows this user to see
two.psml.

The user “foo” cannot see his submenu “two” as long as it is not set as
default-page! The problem is that I cannot set default-page to the folder
“two” especially for a defined role. Although when he enters
“http://localhost:8080/jetspeed/portal/two” the submenu suddenly appears.
Any help would be very appreciated!

Christian

-- 
View this message in context: http://www.nabble.com/Menu-pages-problem-with-defaults-tf4140850.html#a11778646
Sent from the Jetspeed - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Re: Menu/pages-problem with defaults

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Jul 25, 2007, at 1:41 AM, cgaeking wrote:

>
> Hello,
> following situation:
> I have the following /pages – structure:
> /pages/
>        folder.metadata – contains:
>             …<menu options="/" name="top">
>                <options regexp="true">/*</options>
>             </menu>…
> /pages/admin/
>              folder.metadata – contains “<default-page>one</default- 
> page>
>              logs.psml
> /pages/admin/one/
>                  folder.metadata
>                  data.psml
> /pages/admin/two/
>                  folder.metadata
>                  two.psml
>
>
> The administrators can see the menu “admin” with the two submenus  
> “one” and
> “two” as well as the link to logs.psml; the submenu “one” is being  
> selected
> as default.
>
> I created another user “foo” and a role which only allows this user  
> to see
> two.psml.
>
> The user “foo” cannot see his submenu “two” as long as it is not  
> set as
> default-page! The problem is that I cannot set default-page to the  
> folder
> “two” especially for a defined role. Although when he enters
> “http://localhost:8080/jetspeed/portal/two” the submenu suddenly  
> appears.
> Any help would be very appreciated!
>
If you using the default decorator (tigris) it will not look for  
folders and put them in the menu

#set($pagesStandardMenu = $site.getMenu("pages"))

as the pages menu is defined to only look for pages

Perhaps this might work in your decorator

#set($pagesStandardMenu = $site.getMenu("top"))

also see

http://portals.apache.org/jetspeed-2/guides/guide-menus-declarative- 
psml.html