[prev in list] [next in list] [prev in thread] [next in thread]
List: jetspeed-dev
Subject: RE: [proposal] "content" layout and screen
From: Glenn Golden <ggolden () umich ! edu>
Date: 2002-04-29 23:02:00
[Download RAW message or body]
Sure! What would the equiv jslink be for this (see my link example below).
It needs to id the page with all the proper user/group stuff, with the
addition of the portlet id (js_peid) and the specified template.
Thanks!
- Glenn
-----Original Message-----
From: Paul Spencer [mailto:paulsp@apache.org]
Sent: Monday, April 29, 2002 4:41 PM
To: Jetspeed Developers List
Subject: Re: [proposal] "content" layout and screen
Glenn,
Try to use jslink instead of the link/clink/link.
Glenn Golden wrote:
> I will be doing some work that requires a way to get content from Jetspeed
> that can be used in an iframe within a portal page. This content needs to
> have the stuff of a single portlet, without the title and without the page
> layout navigation.
>
> To do this, I'd encode a url like this:
>
>
$link.addPathInfo("js_peid","$portlet.ID").addPathInfo("template","content")
Use jslink instead of link. See the jslink_examples portlet
>
> Note that this identifies the portlet, and sets the template/screen/layout
> to "content".
>
> I'll be adding a new set of .vm files called "content.vm" to
> WEB-INF/templates/vm/layouts/html and WEB-INF/templates/vm/screens/html to
> support "content" access.
>
> Here's the layout/html/content.vm, based on default.vm, with just the
> screen, no navigation:
>
> <html>
> <head>
> <base href="$clink.External" />
> <link href="$clink.setURI("css/default.css").Absolute" type="text/css"
> rel="stylesheet" />
> </head>
> <body bgcolor="#ffffff">
> $screen_placeholder
> </body>
> </html>
>
Use jslink instead of clink. See the jslink_examples portlet
> Here's the screen/html/content.vm, based loosely on Maximize.vm, except it
> will work for all portal elements, not just portlets:
>
> #if ($data.Js_peid)
> $jetspeed.getPortalElement($data.Js_peid)
> #else
> <p>Portal Element Id missing</p>
> #end
>
> While I go and activate my committer status, I'd appreciate any comments
on
> this implementation.
>
> Is the name "content" ok? Is the *case*? "default.vm", the only other
> template/vm/layout, is lower case, but all the template/vm/screens start
> with an upper case letter (And in this case, both .vm file names must
> match).
>
> Thanks.
>
> - Glenn
>
Paul Spencer
--
To unsubscribe, e-mail:
<mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:jetspeed-dev-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic