portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinsuke SUGAYA <shins...@yahoo.co.jp>
Subject Re: svn commit: r239538 - /portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
Date Wed, 24 Aug 2005 21:47:17 GMT
Randy Watler wrote:
> Shinsuke,
> 
> In that case, you need to use a different profiling rule for those 
> customers or make sure that all the page content exists in the more 
> specific content directory.
> 
> The latter is probably too tough to live by for long. However, a new 
> profiling rule is trivial that will support multiple devices per user. 
> For example, you could use mediatype:xhtml:user:user that results in the 
> following directory structure:
> 
> .../pages/_mediatype/html/user/user/....
> 
> and
> 
> ../pages/_mediatype/xhtml/user/user...
> 
> Of course, this implies that shared content has to be moved from "/" to 
> "/_mediatype/XXX" folders. I do not feel that that the default J2 
> profiling rule should use this technique, but rather that we should have 
> a new rule like j2-mobile or something like that... thoughts? About the 
> only drawback to this approach is that the "new user" support would have 
> to know to create the user pages in both folders... (something we needed 
> to do anyway: need to extend/create a JIRA issue for that).

If creating a new profiling rule, we have to apply it to guest user in
order to display the proper default page for each device. So, I feel that
the above directoy structure may be proper.. Anyway I'll create as JIRA issue.

Thanks,
  shinsuke

> Randy
> 
> Shinsuke SUGAYA wrote:
> 
>> rwatler@apache.org wrote:
>>
>>> Author: rwatler
>>> Date: Tue Aug 23 23:55:42 2005
>>> New Revision: 239538
>>>
>>> URL: http://svn.apache.org/viewcvs?rev=239538&view=rev
>>> Log:
>>> correct default j2 profiling rule iterator control to allow media 
>>> type criteria to fallback to user/role/group criteria, resulting in 
>>> search paths that do the same to locate psml
>>
>>
>>
>> Usually, a mobile device cannot handle generic HTML tags. So, the page
>> which should not be displayed is displayed.. Therefore, I put 0 to the
>> criterion. I think a solution might be needed..
>>
>> I'm looking into mobile device support, and encountered several 
>> problems..
>>
>> Thanks,
>>  shinsuke
>>
>>> Modified:
>>>     portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
>>>
>>> Modified: portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
>>> URL: 
>>> http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql?rev=239538&r1=239537&r2=239538&view=diff

>>>
>>> ==============================================================================

>>>
>>> --- portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql (original)
>>> +++ portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql Tue Aug 
>>> 23 23:55:42 2005
>>> @@ -394,7 +394,7 @@
>>>     'The default profiling rule for users and mediatype minus 
>>> language and country.');
>>>  insert into RULE_CRITERION values (18, 'j2', 0, 'path.session', 
>>> 'page', 'default-page', 0);
>>>  insert into RULE_CRITERION values (19, 'j2', 1, 'group.role.user', 
>>> 'user', null, 0);
>>> -insert into RULE_CRITERION values (20, 'j2', 2, 'mediatype', 
>>> 'mediatype', null, 0);
>>> +insert into RULE_CRITERION values (20, 'j2', 2, 'mediatype', 
>>> 'mediatype', null, 1);
>>>  
>>>  insert into PRINCIPAL_RULE_ASSOC values ( 'guest', 'page', 'j2' );
>>>  insert into PRINCIPAL_RULE_ASSOC values ( 'jetspeed', 'page', 
>>> 'role-fallback' );
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>>>
>>>
>>
>> __________________________________
>> Save the earth
>> http://pr.mail.yahoo.co.jp/ondanka/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>>
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
> 
> 

__________________________________
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message