[Building Sakai] pda portal and presence
Charles Severance
csev at umich.edu
Sat Feb 16 07:49:52 PST 2013
Kenrick,
I am looking at pda.vm in /portal trunk (and 2.9) and find this code:
#if ($currentSite )
#if ( ! ${mobileSmallDisplay} )
#if (${currentSite.sitePages.pageNavShowPresenceLoggedIn})
<script type="text/javascript" language="JavaScript">
$(document).ready(function(){
$('#usersPresentLink').click(function(e){
e.preventDefault();
$('#presdiv').toggle();
});
});
</script>
<div class="portletpresence" id="presdiv" style="display:none">
<iframe name="presenceIframe" id="presenceIframePDA"
frameborder="1" marginwidth="0" marginheight="0" scrolling="auto"
src="${currentSite.sitePages.pageNavPresenceUrl}" >
</iframe>
</div>
#end
#end
#end
If I look in SkinnableCharonPortal.java, I find this line in setupMobileDevice
//for now just always assume we have a small display.
rcontext.put("mobileSmallDisplay",Boolean.TRUE);
That mobile code came from Steve Swinsberg when we stopped using WURFL as our PDA detection.
https://source.sakaiproject.org/viewsvn?view=revision&revision=109504
https://jira.sakaiproject.org/browse/SAK-21334
So our current trunk could do presence if it knew when to trigger it. If you just wanted to force presence to always be there - patch that one line in SkinableCharinPortal.java and see what happens :)
/Chuck
> On Fri, Feb 15, 2013 at 7:42 PM, Kenwrick Chan <kchan at hawaii.edu> wrote:
> Hi Gonzalo,
> Sorry to bother you, but I wonder if you can point me to to the general area of what we'd need to modify to have pda portal users have presence events that gets logged.
>
> Have a great weekend and thanks!
>
> Kenwrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130216/171b0bca/attachment.html
More information about the sakai-dev
mailing list