You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Michael Kearns <mi...@saaconsultants.com> on 2006/10/02 11:52:13 UTC
Re: How to make portlets span columns in layout ?
Thanks for the reply Rick.
I've tried nesting layouts, but I encounter the same problem that Elif
has been having, and the page header is repeated for every
layout that is added. It also has a 'theme' drop-down selector for every
layout as well.
I'm not sure why it looks different to your example, but something is
going wrong. Perhaps your custom theme works around this problem, ot
you're using a later release ? I'm using the 2.0 release version (with
the 2.1 security JAR for LDAP support) if that's any help, but I'd
rather not have to move everything to 2.1 until it's released, as this
needs to be stable for deployment.
I also have the problem that the 'add portlet' functionality on the page
edit, doesn't list any portlets. I don't tend to worry about this, as I
am hand-editing the .psml files for a specific structure, but it does
suggest that perhaps the 2.0 release was somewhat lacking. I tried the
2.1 dev version briefly a while back that fixed the 'add portlet'
problem, but I wasn't aware of the nesting at that point, and so didn't
attempt it. Again, I'm hesitant to spend development time looking at 2.1
to solve this, as I can't really take an unreleased hanging source base
for production development.
Michael.
Rick Mortensen wrote:
>Simply add a velocity 2 column layout and a velocity 1 column layout right
>below it. I have attached a small jpeg showing what this would look like.
>Than add portlets to each layout. That's it.
>
>Rick Mortensen
>
>
>On 9/29/06 6:19 AM, "Michael Kearns" <mi...@saaconsultants.com>
>wrote:
>
>
>
>>Hi,
>>
>>I'm need to have a page where there are two columns each with a portlet
>>inside, and then another portlet beneath them that spans both columns.
>>For example:
>>
>>## ##
>>## ##
>>
>>#####
>>#####
>>
>>I can't seem to find a straightforward way to achieve this, and looking
>>into the layout portlets and templates just gets me even more confused !
>>
>>Is there any way to achieve this in a straightforward fashion ?
>>
>>As a future enhancement, a really great layout addition would be
>>specifying the layout by writing a simple Velocity template that defines
>>the html (or a fragment thereof) of the page, with references to each
>>portlet-id where the portlet should be rendered, such as:
>>
>><table>
>> <tr><td>${dp-1}</td><td>${dp-2}</td></tr>
>> <tr><td>${dp-3}</td></tr>
>></table>
>>
>>This would allow our webdesign team to much more easily layout the pages
>>with no knowledge of jetspeed required. I'd write a layout to handle
>>this, but I can't get my head around how the layout portlet works.
>>
>>Michael.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: How to make portlets span columns in layout ?
Posted by Ate Douma <at...@douma.nu>.
Stephen Greenlee wrote:
> Michael,
>
> If I remember correctly, the repeated page header with nested layouts
> was a bug in 2.0 that is fixed in 2.1 dev.
Yes, see: http://issues.apache.org/jira/browse/JS2-468
> If you really require
> nested layouts you will either have to patch 2.0 or move on to dev.
> I understand your concern about using dev code for a production release.
> Only you can determine whether that solution is suitable.
>
> Stephen
>
> On 10/2/06, Michael Kearns <mi...@saaconsultants.com> wrote:
>> Thanks for the reply Rick.
>>
>> I've tried nesting layouts, but I encounter the same problem that Elif
>> has been having, and the page header is repeated for every
>> layout that is added. It also has a 'theme' drop-down selector for every
>> layout as well.
>>
>> I'm not sure why it looks different to your example, but something is
>> going wrong. Perhaps your custom theme works around this problem, ot
>> you're using a later release ? I'm using the 2.0 release version (with
>> the 2.1 security JAR for LDAP support) if that's any help, but I'd
>> rather not have to move everything to 2.1 until it's released, as this
>> needs to be stable for deployment.
>>
>> I also have the problem that the 'add portlet' functionality on the page
>> edit, doesn't list any portlets. I don't tend to worry about this, as I
>> am hand-editing the .psml files for a specific structure, but it does
>> suggest that perhaps the 2.0 release was somewhat lacking. I tried the
>> 2.1 dev version briefly a while back that fixed the 'add portlet'
>> problem, but I wasn't aware of the nesting at that point, and so didn't
>> attempt it. Again, I'm hesitant to spend development time looking at 2.1
>> to solve this, as I can't really take an unreleased hanging source base
>> for production development.
>>
>> Michael.
>>
>> Rick Mortensen wrote:
>>
>> >Simply add a velocity 2 column layout and a velocity 1 column layout
>> right
>> >below it. I have attached a small jpeg showing what this would look
>> like.
>> >Than add portlets to each layout. That's it.
>> >
>> >Rick Mortensen
>> >
>> >
>> >On 9/29/06 6:19 AM, "Michael Kearns" <mi...@saaconsultants.com>
>> >wrote:
>> >
>> >
>> >
>> >>Hi,
>> >>
>> >>I'm need to have a page where there are two columns each with a portlet
>> >>inside, and then another portlet beneath them that spans both columns.
>> >>For example:
>> >>
>> >>## ##
>> >>## ##
>> >>
>> >>#####
>> >>#####
>> >>
>> >>I can't seem to find a straightforward way to achieve this, and looking
>> >>into the layout portlets and templates just gets me even more
>> confused !
>> >>
>> >>Is there any way to achieve this in a straightforward fashion ?
>> >>
>> >>As a future enhancement, a really great layout addition would be
>> >>specifying the layout by writing a simple Velocity template that
>> defines
>> >>the html (or a fragment thereof) of the page, with references to each
>> >>portlet-id where the portlet should be rendered, such as:
>> >>
>> >><table>
>> >> <tr><td>${dp-1}</td><td>${dp-2}</td></tr>
>> >> <tr><td>${dp-3}</td></tr>
>> >></table>
>> >>
>> >>This would allow our webdesign team to much more easily layout the
>> pages
>> >>with no knowledge of jetspeed required. I'd write a layout to handle
>> >>this, but I can't get my head around how the layout portlet works.
>> >>
>> >>Michael.
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> >>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>> >>
>> >>
>> >>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: How to make portlets span columns in layout ?
Posted by Michael Kearns <mi...@saaconsultants.com>.
Thanks Elif (and Ate, Stephen and Rick).
I have built 2.0.1 and got the layouts working now. I'm not sure how
'final' the 2.0.1 is, but hopefully it should be less of a moving target
than the 2.1 development stream.
The only thing I need to work out now, is how to have my own portlets
(and the layout portlets) appear in the 'portlet selector' when using
the 'add portlet' button on a page - My portlets are registered, and
appear in the PALM, etc., but only the admin portlets seem to appear in
the selection choices.
Anyway, I have my layout working, so thanks again !!
Michael.
Elif Guner wrote:
> Hi Michael,
>
> I built jetspeed from 2.0.1 again and nested layouts work fine.
>
> http://portals.apache.org/jetspeed-2/source-code.html
>
> Click on View SVN and then Branches
>
> Hope that helps...
>
> Elif
>
<snip>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: How to make portlets span columns in layout ?
Posted by Elif Guner <el...@gmail.com>.
Hi Michael,
I built jetspeed from 2.0.1 again and nested layouts work fine.
http://portals.apache.org/jetspeed-2/source-code.html
Click on View SVN and then Branches
Hope that helps...
Elif
On 10/2/06, Stephen Greenlee <sg...@gmail.com> wrote:
> Michael,
>
> If I remember correctly, the repeated page header with nested layouts
> was a bug in 2.0 that is fixed in 2.1 dev. If you really require
> nested layouts you will either have to patch 2.0 or move on to dev. I
> understand your concern about using dev code for a production release.
> Only you can determine whether that solution is suitable.
>
> Stephen
>
> On 10/2/06, Michael Kearns <mi...@saaconsultants.com> wrote:
> > Thanks for the reply Rick.
> >
> > I've tried nesting layouts, but I encounter the same problem that Elif
> > has been having, and the page header is repeated for every
> > layout that is added. It also has a 'theme' drop-down selector for every
> > layout as well.
> >
> > I'm not sure why it looks different to your example, but something is
> > going wrong. Perhaps your custom theme works around this problem, ot
> > you're using a later release ? I'm using the 2.0 release version (with
> > the 2.1 security JAR for LDAP support) if that's any help, but I'd
> > rather not have to move everything to 2.1 until it's released, as this
> > needs to be stable for deployment.
> >
> > I also have the problem that the 'add portlet' functionality on the page
> > edit, doesn't list any portlets. I don't tend to worry about this, as I
> > am hand-editing the .psml files for a specific structure, but it does
> > suggest that perhaps the 2.0 release was somewhat lacking. I tried the
> > 2.1 dev version briefly a while back that fixed the 'add portlet'
> > problem, but I wasn't aware of the nesting at that point, and so didn't
> > attempt it. Again, I'm hesitant to spend development time looking at 2.1
> > to solve this, as I can't really take an unreleased hanging source base
> > for production development.
> >
> > Michael.
> >
> > Rick Mortensen wrote:
> >
> > >Simply add a velocity 2 column layout and a velocity 1 column layout right
> > >below it. I have attached a small jpeg showing what this would look like.
> > >Than add portlets to each layout. That's it.
> > >
> > >Rick Mortensen
> > >
> > >
> > >On 9/29/06 6:19 AM, "Michael Kearns" <mi...@saaconsultants.com>
> > >wrote:
> > >
> > >
> > >
> > >>Hi,
> > >>
> > >>I'm need to have a page where there are two columns each with a portlet
> > >>inside, and then another portlet beneath them that spans both columns.
> > >>For example:
> > >>
> > >>## ##
> > >>## ##
> > >>
> > >>#####
> > >>#####
> > >>
> > >>I can't seem to find a straightforward way to achieve this, and looking
> > >>into the layout portlets and templates just gets me even more confused !
> > >>
> > >>Is there any way to achieve this in a straightforward fashion ?
> > >>
> > >>As a future enhancement, a really great layout addition would be
> > >>specifying the layout by writing a simple Velocity template that defines
> > >>the html (or a fragment thereof) of the page, with references to each
> > >>portlet-id where the portlet should be rendered, such as:
> > >>
> > >><table>
> > >> <tr><td>${dp-1}</td><td>${dp-2}</td></tr>
> > >> <tr><td>${dp-3}</td></tr>
> > >></table>
> > >>
> > >>This would allow our webdesign team to much more easily layout the pages
> > >>with no knowledge of jetspeed required. I'd write a layout to handle
> > >>this, but I can't get my head around how the layout portlet works.
> > >>
> > >>Michael.
> > >>
> > >>---------------------------------------------------------------------
> > >>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > >>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> > >>
> > >>
> > >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
>
>
> --
> Stephen Greenlee
> sgreenlee@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: How to make portlets span columns in layout ?
Posted by Stephen Greenlee <sg...@gmail.com>.
Michael,
If I remember correctly, the repeated page header with nested layouts
was a bug in 2.0 that is fixed in 2.1 dev. If you really require
nested layouts you will either have to patch 2.0 or move on to dev. I
understand your concern about using dev code for a production release.
Only you can determine whether that solution is suitable.
Stephen
On 10/2/06, Michael Kearns <mi...@saaconsultants.com> wrote:
> Thanks for the reply Rick.
>
> I've tried nesting layouts, but I encounter the same problem that Elif
> has been having, and the page header is repeated for every
> layout that is added. It also has a 'theme' drop-down selector for every
> layout as well.
>
> I'm not sure why it looks different to your example, but something is
> going wrong. Perhaps your custom theme works around this problem, ot
> you're using a later release ? I'm using the 2.0 release version (with
> the 2.1 security JAR for LDAP support) if that's any help, but I'd
> rather not have to move everything to 2.1 until it's released, as this
> needs to be stable for deployment.
>
> I also have the problem that the 'add portlet' functionality on the page
> edit, doesn't list any portlets. I don't tend to worry about this, as I
> am hand-editing the .psml files for a specific structure, but it does
> suggest that perhaps the 2.0 release was somewhat lacking. I tried the
> 2.1 dev version briefly a while back that fixed the 'add portlet'
> problem, but I wasn't aware of the nesting at that point, and so didn't
> attempt it. Again, I'm hesitant to spend development time looking at 2.1
> to solve this, as I can't really take an unreleased hanging source base
> for production development.
>
> Michael.
>
> Rick Mortensen wrote:
>
> >Simply add a velocity 2 column layout and a velocity 1 column layout right
> >below it. I have attached a small jpeg showing what this would look like.
> >Than add portlets to each layout. That's it.
> >
> >Rick Mortensen
> >
> >
> >On 9/29/06 6:19 AM, "Michael Kearns" <mi...@saaconsultants.com>
> >wrote:
> >
> >
> >
> >>Hi,
> >>
> >>I'm need to have a page where there are two columns each with a portlet
> >>inside, and then another portlet beneath them that spans both columns.
> >>For example:
> >>
> >>## ##
> >>## ##
> >>
> >>#####
> >>#####
> >>
> >>I can't seem to find a straightforward way to achieve this, and looking
> >>into the layout portlets and templates just gets me even more confused !
> >>
> >>Is there any way to achieve this in a straightforward fashion ?
> >>
> >>As a future enhancement, a really great layout addition would be
> >>specifying the layout by writing a simple Velocity template that defines
> >>the html (or a fragment thereof) of the page, with references to each
> >>portlet-id where the portlet should be rendered, such as:
> >>
> >><table>
> >> <tr><td>${dp-1}</td><td>${dp-2}</td></tr>
> >> <tr><td>${dp-3}</td></tr>
> >></table>
> >>
> >>This would allow our webdesign team to much more easily layout the pages
> >>with no knowledge of jetspeed required. I'd write a layout to handle
> >>this, but I can't get my head around how the layout portlet works.
> >>
> >>Michael.
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> >>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
--
Stephen Greenlee
sgreenlee@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org