Randy, Doug, I'm very happy to see the continuation of the thread - profiling and page layout is exactly what I was trying to figure out next!
I followed Randy's advise and tried to investigate more the differences in the portal page layout for different users. Here are some of my notes (sorry, they are long...) - I hope you could correct me where my guesses were too wild and answer some questions: When user is not logged in, he is a ‘guest’ user by default. According to the ‘j1’ profiling rule (???), pages for the ‘guest’ user should be taken from the …\pages\_user\guest\ directory. However, since this directory does not exist, a default fallback (is that right?) rule is used and the default pages/directories are used: …\pages\default-page.psml When logged in as a ‘user’ user: -- Everything from the …\pages\ directory is used; stuff from the \pages\_user\user\ is used in addition to that -- ‘user’-specific content comes from the …\pages\_user\user , for example, new .psml files and corresponding Tabs that are displayed for the ‘user’ user only: p003.psml --> “[USER 003] PSML page” tab nested-layout.psml --> “Nested Layout” tab -- ‘user’ user also has the ‘user’ role (I wish the names would be somewhat different :-) ). Additional ‘user’-role-specific stuff comes from the \pages\_role\user\ directory. It has only one directory - …\top-links\ , which is referenced from the …\pages\_user\user\top-pages.ds file: <document-set> <title>[USER] Top Pages</title> <profile-locator>docset</profile-locator> <document-path regexp="true">/top-links/*.*</document-path> </document-set> (see questions on that below) When logged in as ‘admin’ user: -- you see everything that the ‘guest’ user can see, but in addition, you also see the “Jetspeed Administrative Portlets” link under the “Folders and Pages” header in the left-side menu -- there is also a top-pages.ds file in the …\pages\ dir that defines this: <?xml version="1.0" encoding="UTF-8"?> <document-set> <title>Top Pages</title> <metadata name="title" xml:lang="fr">Page haut</metadata> <profile-locator>docset</profile-locator> <document-path>/Administrative</document-path> </document-set> In addition, ‘admin’ user also has the ‘manager’ role, so the …\pages\_role\manager\ dir is used for the ‘manager’-specific content: the folder.metadata determines what is included into the page. It has: <document-order>Administrative</document-order> My guess: this is why only a user in the ‘manager’ role can see the ‘Administrative Portlets’ link (is this right?) But then, the …\pages\_role\manager\folder.metadata also has: <document-order>Google.link</document-order> <document-order>p001.psml</document-order> <document-order>p002.psml</document-order> <document-order>p003.psml</document-order> <document-order>p004.psml</document-order> but none of them (links for .link and tabs for .psml) is displayed on the page. I would guess that all pxxx.psml are not displayed simply because they do not exist in the …\pages\_role\manager\ folder. What about the Google.link though? It does exist in the directory… Questions: How are xxxx.ds files (docset definitions ??) and the role-specific folders (like …\pages\_role\manager ) are related? Do top-pages.ds files under a \_user\username or ..\pages\ directories always reference resources in the \_role\rolename directory? Thanks a lot! Marina --- Randy Watler <[EMAIL PROTECTED]> wrote: > Doug Schnelzer wrote: > > >Randy, > > > >Thanks for the guidance. Putting the login portlet > in a plain page in the > >guest directory and protecting everything else > works well. In the future, > >it would be nice to dynamically show/hide portlets > on a page based on a > >user's role. > > > It is definitely under consideration... odds are it > will be there in M2 > if I had to guess, but others need to weigh in. > > > > >As I dig in further, can you point me in the right > direction for learning > >more about how the profiler works? Should I just > follow the Jetspeed2 > >source code? If so, can you point me at a Java > class to start with? > > > First, look and understand the examples shipped with > J2. Try logging in > as user/user and jetspeed/jetspeed. Compare what you > see with the > various content pages and other elements in the > pages directories. For > more detail, check out this document: > > http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/design-docs/src/profiler/J2-page-manager-profiling.sxw > > This is an OpenOffice document. I can email you > another format if you'd > like. The source code for all of this resides in > /components/profiler > and /components/page-manager, but it is not trivial. > Feel free to ask > questions here so that others can read about the > profiler and how to > configure it! > > > > > > >Also as I browse through the WEB-INF/pages > directory structure, there seems > >to be psml files that aren't displayed (e.g. > pages/_user/user/p003.psml and > >pages/_user/user/nested-layout.psml). > > > These are simply user files for 'user', (instead of > 'guest')! Login as > user/user. > > > I'd like to learn more about how this > >works. Is the psml documentation for Jetspeed 1 > applicable? > > > Personally, I'd prefer if you stick with J2 > resources and asking > questions here. We can also contribute to the wiki > as we go, (if nothing > else we can link back to user list threads). > > > If not can you > >recommend a better starting point (part of the > source code is fine) for some > >self-study on overall navigation and layout? > > > The easiest thing is to look at the examples. For a > better understanding > of navigations/layout, look at the Velocity, (*.vm), > templates in the > WEB-INF/decorations/layout/html/tigris and > WEB-INF/decorations/portlet/html/tigris directories. > Most of all, don't > be shy on this list! > > > > >Thanks very much, > >Doug > > > > > No problem... good luck with J2! > > Randy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]