Hi Randy/Frank,
I finally managed it. I defined a rule according to our needs.
thank you for your help
Chris
fyi: our rule
this rule searches:
page/_mediatype/[type]/_language/[lang]/_country/[country]/file.psml
insert into PROFILING_RULE values ('mt',
'org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule',
'profiling rule searches
page/_mediatype/[type]/_language/[lang]/_country/[country]/[filename].psml
with fallback algorithm.');
insert into RULE_CRITERION values (1, 'mt', 0, 'path.session', 'page',
'default-page', 0);
insert into RULE_CRITERION values (3, 'mt', 1, 'mediatype',
'mediatype', null, 1);
insert into RULE_CRITERION values (4, 'mt', 2, 'language', 'language', null, 1);
insert into RULE_CRITERION values (5, 'mt', 3, 'country', 'country', null, 1);
On 5/27/05, Randy Watler <[EMAIL PROTECTED]> wrote:
> Chris/Frank:
>
> The valid locations for the _mediatype folder are restricted by the
> "j1", (the default), profiling rule.
>
> The following search paths are used by the "j1" rule:
>
> WEB-INF/pages/_user/<user>/_mediatype/<type>/_language/<locale
> language>/_country/<locale country>/<request path>
> WEB-INF/pages/_user/<user>/_mediatype/<type>/_language/<locale
> language>/<request path>
> WEB-INF/pages/_user/<user>/_mediatype/<type>/<request path>
> WEB-INF/pages/_user/<user>/<request path>
> WEB-INF/pages/<request path>
>
> So, this profiling rule implies that the _mediatype/<type> folders must
> appear immediately below the _user/<user> directories.
>
> If in doubt, you can see these search paths in the jetspeed.log as they
> are processed.
>
> If you wish to use a different arrangement, look into defining your own
> custom profiling rule. If you would like help doing so, I'd be happy to
> help.
>
> Randy
>
> Frank Villarreal wrote:
>
> >sure, just create the "_mediatype" folder structure directly in the
> >directory where you normally have your "default.psml" file ... then
> relocate
> >your psml to the appropriate mediatype folder(s) ...
> >
> >As far as I can tell, you can place a "_mediatype" folder anywhere you
> >normally have psml.
> >
> >- Frank
> >
> >
> >
> >>-----Original Message-----
> >>From: Chris [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, May 27, 2005 09:34 AM
> >>To: Frank Villarreal
> >>Cc: Jetspeed Users List
> >>Subject: Re: JS2: load psml file depending on the Mediatype
> >>
> >>
> >>Hi Frank,
> >>
> >>thanks for the replay.
> >>
> >>is there a way to define a default/fallback psml per Mediatype wihout
> >>dependence from user/role?
> >>
> >>chris
> >>
> >>On 5/27/05, Frank Villarreal <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>If you are profiling by user and/or role, then in the "pages" directory
> >>>create a subfolder named "_mediatype" under each user/role
> >>>
> >>>
> >>folder .... then,
> >>
> >>
> >>>create a subfolder under that named "html", "wml", etc for each of your
> >>>media types. Finally, place your default.psml or and other
> >>>
> >>>
> >>pages/content
> >>
> >>
> >>>under each of those folders. Beware though, I had problems
> >>>
> >>>
> >>trying to log in
> >>
> >>
> >>>to wml pages ... the redirection that occurs at login was not
> >>>
> >>>
> >>working ... at
> >>
> >>
> >>>least with my site. I'd be interested in how you (or anyone
> >>>
> >>>
> >>else) fare with
> >>
> >>
> >>>this.
> >>>
> >>>- Frank
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Chris [mailto:[EMAIL PROTECTED]
> >>>>Sent: Friday, May 27, 2005 08:36 AM
> >>>>To: [email protected]
> >>>>Subject: JS2: load psml file depending on the Mediatype
> >>>>
> >>>>
> >>>>Hello,
> >>>>
> >>>>I want to load a default psml file depending on the clients Mediatype.
> >>>>Can anybody give me a hint, how to manage it?
> >>>>
> >>>>Using JS2M3
> >>>>
> >>>>regards
> >>>>
> >>>>Chris
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>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]