David,

Yes. In fact, I tried out your PSML hierarchy as best I could and the menu I defined below worked fine without the special profiler rule.

All I can think of at this point is some issue with the PSML. If you could jar/tar up your PSML tree I'd be glad to take a look at it, (send them to me directly if you can). Something odd is indeed going on and I'd like to get to the bottom of it, not to mention clear up the confusion!

One thing to note is that folders w/o pages in them are stripped from the menus. This is because one cannot navigate to the folder since it does not have a default page to land on. I know you have pages in your PSML tree, but perhaps there is some issue with those pages and it is having trouble loading them, (thus the folder appears empty). And no, I dont know why it would work with the special profiler rule in this case. Hopefully, we can get to bottom of it.

Thanks!

Randy

David Just wrote:
That was one of the first things I tried before posting to the forumn.
The root level folders would show, but folders that existed only in the
user's folder "pages/_user/admin/x1/" x1 would not show up.

Now I've created the no-fallback rule and added that rule to the list of
rules for the admin user and <options regexp="true">/*/</options> works
like I want. This is confusing because shouldn't the default rule for
admin also show the admin's folder?  Is there a difference for the rule
for admin vs a standard user?





David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939 l 
[email protected]
The contents of this e-mail (and any attachments) are privileged and 
confidential. Unauthorized use is strictly prohibited.
-----Original Message-----
From: Randy Watler [mailto:[email protected]] Sent: Thursday, September 03, 2009 5:24 PM
To: Jetspeed Users List
Subject: Re: Defining a menu for a users folder

Dave,

This is the simplest solution. In pages/folder.metadata, add the following menu definition:

  <menu name="navigations">
    <separator>New Menu</separator>
    <options regexp="true">/</options>
    <options regexp="true">/*/</options>
  </menu>

Even if this is not exactly what you want, lets start from here! Let me know how you want the result to be different once you try this out.

Thanks for your patience,

Randy

David Just wrote:
The menu should look the same regardless of what folder the user is
looking at. And yes Administrative should still be available to the
users.


Thank you for your help.
Dave.



David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939
l [email protected]
The contents of this e-mail (and any attachments) are privileged and
confidential. Unauthorized use is strictly prohibited.
-----Original Message-----
From: Randy Watler [mailto:[email protected]] Sent: Thursday, September 03, 2009 3:37 PM
To: Jetspeed Users List
Subject: Re: Defining a menu for a users folder

David,

I will take a look at this now, (it helps us quite a bit when you
supply
the psml structure and what you want to see in the menu). I noticed a typo below with the "depth" attribute name, but I dont think you are looking for the whole tree to appear in the menu anyway! Given what
you
are asking for here, I may have misled you earlier thinking you wanted

something more complex/selective. No, this should not be difficult at
all!

A few clarifications. Do you want the menu to always look like you described as you navigate the site or did you want it to change to
show
other folders/pages at any point? I see below that you are adding in '/Administrative' for the admin user, so I assume you want that to
show
in addition when the admin user is logged in.

Let me know. Will post back a menu definition shortly when I have verified that it works.

Randy

David Just wrote:
Hey,
I've created a new Profiler called User that is using the standard
User
rule and the StandardProfilingRule class but still none of the
folders
in my user's home directory are showing up in the menu.
My menu definition looks thusly:

<menu name="navigations" deapth="-1" profile="user">
    <separator>
      <text>Top Pages7</text>
    </separator>
        <options>/</options>
        
        
    <options regexp="true">*X*/</options>
    <options regexp="true">*Public*/</options>
    <options>/Administrative</options>
  </menu>


As far as I can understand, the standard user-role-fallback Profiler
should almost do what I want, but I cant get that to work ether.

The folder structure looks like this:
Pages/
     -_users/
            -admin/
                  -X1/
                     -folder.metadata
                     -default_page.psml
                     -anotherpage.psml
                  -X2/
                     -folder.metadata
                     -default_page.psml
                     -anotherpage.psml

The menu is defined in
Pages/folder.metadata

And I want it to show up like this in the navigation pane

Root
X1
X2

Clicking on X1 should take you to the X1 folder with the default_page
shown.
This doesn't seem like it should be very hard.



David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939
l [email protected]
The contents of this e-mail (and any attachments) are privileged and
confidential. Unauthorized use is strictly prohibited.
-----Original Message-----
From: Randy Watler [mailto:[email protected]] Sent: Wednesday, September 02, 2009 12:53 PM
To: Jetspeed Users List
Subject: Re: Defining a menu for a users folder

David,

I know you have probably already looked, but here are the relevant
docs:
http://portals.apache.org/jetspeed-2/deployguide/guide-profile.html
http://portals.apache.org/jetspeed-2/adminguide/profiler.html

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

Pay close attention to the profiling rules... you want user w/o fallback, so you'll need to create your own rule using the Profiler Administration portlet. Once you have a new rule defined, you'll
define
a new menu with the profile attribute set to the name of your new
rule.
HTH,

Randy

David Just wrote:
If you could point me in the right direction on how I would go about
defining and using said Profiling rule that would be a great help.


David Just l Software Engineer l Vision Solutions l +1 (507)
529-5939
l [email protected]
The contents of this e-mail (and any attachments) are privileged and
confidential. Unauthorized use is strictly prohibited.
-----Original Message-----
From: Randy Watler [mailto:[email protected]] Sent: Tuesday, August 25, 2009 5:41 PM
To: Jetspeed Users List
Subject: Re: Defining a menu for a users folder

David,

The expressions in the menus cannot see the users folders.... the profiler merges them all under the root. So, "/*.psml" will show all
the
root pages including the global pages and those created by the user.

Of course, there is a way to get only the user's pages... define a profiling rule for the user w/o fallback. Then you can define the
menu
using that profiling rule. I can probably help you out with this approach if necessary. Let me know,

Randy

David Just wrote:
I guess I should have been clearer with my question.  I've been
trying
to find the right combination of declarative menu options to get
what
I
want. I was hoping for an example of at least how to reference the
user's folder "Jetspeed/_user/<userXFolder>"

There doesn't seem to be a regular expression object that relates
to
the
user's home directory. At least I haven't found one.



David Just l Software Engineer l Vision Solutions l +1 (507)
529-5939
l [email protected]
The contents of this e-mail (and any attachments) are privileged
and
confidential. Unauthorized use is strictly prohibited.
-----Original Message-----
From: Randy Watler [mailto:[email protected]] Sent: Tuesday, August 25, 2009 4:25 PM
To: Jetspeed Users List
Subject: Re: Defining a menu for a users folder

David,

Yes, this is possible using declarative menus.


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

Randy

David Just wrote:
Is it possible to define a menu that dynamically shows the folders
that
a user has created such that the names of the folders show up in
the
navigation without their parent folder.

Example:

User bob create a folder in his space called X1
..jetspeed/pages/_user/bob/X1

I want this to show up in the navigation menu as just X1  (or
whatever
is defined as the title in the folder metadata). When Janet logs in, she should not see bob's folders.


David Just l Software Engineer l Vision Solutions l +1 (507)
529-5939
l [email protected]
The contents of this e-mail (and any attachments) are privileged
and
confidential. Unauthorized use is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to