On Sep 3, 2007, at 8:33 AM, [EMAIL PROTECTED] wrote:
Hello
I am new to this list. Let me introduce myself. I work in on of the
first party game studios for sony and we are currently evaluating
jetspeed-2 as potential candidate to support communities for our games
(like F1 or WipEout etc....).
Unfortunately we got a bit stuck figuring out how the paths for
user agent
specific decorators should look like. From what I gather it should be
possible to have a decorator for, say, safari, mozilla etc...
I am not sure whether I make correct sense of the documentation so
far.
Thus, are there some examples I could have a look at? Is there
some more
comprehensive documentation out there? What path would I use for a
decorator for a safari user agent for eg?
The directories can be added anywhere in the site (under the pages
directory)
For example, if you wanted to have special page for all IE 5 Mac
guest users, you could add under the guest user:
_user/guest/_user.agent/ie5mac/default-page.psml
This would require a profiling rule to handle the user agent:
insert into PROFILING_RULE values ('agent',
'org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule',
'User Agent to locate browser specific content.');
insert into RULE_CRITERION values (18, 'agent', 0, 'path.session',
'page', 'default-page', 0);
insert into RULE_CRITERION values (19, 'agent', 1, 'group.role.user',
'user', null, 0);
insert into RULE_CRITERION values (20, 'agent', 2, 'user.agent',
'user.agent', null, 1);
or in XML:
<ProfilingRule id="agent" standardRule="true">
<description value="User Agent to locate browser specific
content."/>
<Criteria>
<Criterion name="page">
<type value="path.session"/>
<value value="default-page"/>
<fallBackOrder value="0"/>
<fallBackType value="0"/>
</Criterion>
<Criterion name="user">
<type value="group.role.user"/>
<fallBackOrder value="1"/>
<fallBackType value="0"/>
</Criterion>
<Criterion name="user.agent">
<type value="user.agent"/>
<fallBackOrder value="2"/>
<fallBackType value="1"/>
</Criterion>
</Criteria>
</ProfilingRule>