[Building Sakai] Creating a link to your tool from the LHS nav bar

Patrick Fong pfong at unimelb.edu.au
Sat Apr 18 00:43:42 PDT 2009


Hi 

Where can I put that
(org.sakaiproject.site.api.SitePage.setPopup(boolean)) in my code? If
I'm using Wicket, I have a BasePage.java (and html), do I put it there?
Where can I get a reference of it?   

So only SitePage.setPopup is the only thing required?

Cheers

-----Original Message-----
From: buckett at gmail.com [mailto:buckett at gmail.com] On Behalf Of Matthew
Buckett
Sent: Friday, April 17, 2009 6:50 AM
To: Patrick Fong
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] Creating a link to your tool from the LHS
nav bar

On Thu, Apr 16, 2009 at 9:40 AM, Patrick Fong <pfong at unimelb.edu.au>
wrote:
> Hi all
>
> I'm interested in loading my custom developed tool in a new window as
> opposed to the iframe normally. I'm using Apache Wicket to display
> dynamically generated content.
>
> The client wants the Sakai tool to launch as a pop-up window.
>
> My question is how do you create a link from the LHS nav bar, that
> references your tool in a URL that will open a new window? How do you
> identify your tool?

A site has a number of pages and when the site is displayed through
the portal they appear on the left hand site with names such as Site
Info and Home. Any page can be set to be displayed as a popup.

org.sakaiproject.site.api.SitePage.setPopup(boolean)

Web Content allows users to set if the tool should be a popup through
the UI and your tool could take a similar approach.

org.sakaiproject.web.tool.IFrameAction.doConfigure_update(RunData,
Context)

I don't think tool registration supports the ability to specify your
tool should always appear as a popup, but I could be wrong.

-- 
  Matthew Buckett


More information about the sakai-dev mailing list