Stefan,

Stefan Weinert wrote:
Thanks for your reply Randy. I thought this feature was just missing in  the 
Admin portlet but it looks like it isn't really a feature of J2?
It is not implemented in the way you imagine. Most user, group, and role configuration of the portal is done via the profiler.
From what you wrote I guess that this means that every psml has to be copied for every existing group.
No. The group root folders only need the folder.metadata files in them. The rest of the PSML can remain where it is, provided all default layout/portlet decorator tags are removed. The settings in the group specific folder.metadata should be honored for all site pages.

Most pages are available for all  groups just the layout needs to be different.
  I need a better understanding of the structure of these files so I  can't 
check it right away (e.g. what the h*** is a profiling rule? ;-))
Please refer to the J2 guides. If that is not sufficient, take a look at the design docs available in the project svn.
  I will get back once it worked or didn't work.
However this only looks like a workaround as a portal should be able to assign different layouts per group dynamically. I should probably ask this question once I have more insight into J2, but wouldn't it be possible to transform the psml files using xsl assigning layouts and other group specific attributes on the fly?
I can understand why one might want such a solution. However, PSML can be stored in the DB. It uses a "select the right PSML definition" approach rather than a "filter and compose the right PSML" tack. In this case, we are trying to choose the appropriate folder.metadata definition by group. There is plenty of power in the current profiler based implementation, including the ability to select pages on many different criteria. It is good at some things, not so good at others. There is a way to do what you are asking for. If you run into trouble making it happen, I stand ready to assist you... so let me know!

Randy
Stefan

Randy Watler <[EMAIL PROTECTED]> wrote:  Stefan,

You can try this:

1. Remove all layout and portlet decorator defaults from the *.psml pages.
2. Add a group profiling rule for all users, (e.g. 'group-fallback' or similar). 3. Create group specific root folders, (e.g. /WEB-INF/pages/_group/group[0-3]). 4. Configure each group root folder with a folder.metadata, probably copied from an existing /WEB-INF/pages/folder.metadata file; if /WEB-INF/pages/folder.metadata
    does not already exist, create one of these as well.
5. Define default layout and portlet decorators in the 4 group root folder.metadata files you just created. Similarly, define a default set in the root folder.metadata that will be
    used for non-authenticated users.

Give it a shot! Let me know ASAP if you have any problems... this should work as described here.

Randy



                
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to