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 aordin <ao...@disid.com> on 2006/11/02 13:19:45 UTC

Questions about layouts & layout.vm

Hi list!

Today I'm fighting with layout.vm into path 
/src/webapp/WEB-INF/templates/layout/html/columns/

I see layout.vm put edition menus into the page for modify Theme, 
Layout(two,three columns...) and add new page. And edition menu in portlets.


    1).- I'm searching one "guide" (or something like this) for 
customize the layouts and layout.vm to your own necessity. But I think 
it's very difficult to find it.

          The most important things to me:

            - How can I change one layout (or create another new)? My 
goal is change the layout for put for exemple one left(or right) 
navigation menu into one banner posted in all pages.  I try to use the 
layout "Two columns with a small left column for navigation controls 
using velocity" but it doesn't work
            - know how works the "coords" for change the page.

To conclude: I would like to take complete control about layouts, how 
create, modify and show your own layouts into "editing page"(and delete 
defaults if it's necessary)

Thank you very much!!!

-- 

Adolfo OrdiƱana
DiSiD S.L.L.
http://www.disid.com

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


Re: Questions about layouts & layout.vm

Posted by David Sean Taylor <da...@bluesunrise.com>.
aordin wrote:
> Hi list!
> 
> Today I'm fighting with layout.vm into path 
> /src/webapp/WEB-INF/templates/layout/html/columns/
> 
> I see layout.vm put edition menus into the page for modify Theme, 
> Layout(two,three columns...) and add new page. And edition menu in 
> portlets.
> 
> 
>    1).- I'm searching one "guide" (or something like this) for customize 
> the layouts and layout.vm to your own necessity. But I think it's very 
> difficult to find it.

There is a guide:

http://portals.apache.org/jetspeed-2/guides/guide-layouts.html

> 
>          The most important things to me:
> 
>            - How can I change one layout (or create another new)? My 
> goal is change the layout for put for exemple one left(or right) 
> navigation menu into one banner posted in all pages.  I try to use the 
> layout "Two columns with a small left column for navigation controls 
> using velocity" but it doesn't work
>            - know how works the "coords" for change the page.
> 
> To conclude: I would like to take complete control about layouts, how 
> create, modify and show your own layouts into "editing page"(and delete 
> defaults if it's necessary)
> 
Layouts are all deployed in the jetspeed-layouts.war file as a local 
portlet application (stored within the jetspeed portlet application)
Layouts are implemented as portlets
To delete any of the layouts provided with jetspeed, simply remove the 
portlet entries in the portlet.xml

To take 'complete control', would suggest either

1) extend the existing layout portlets to what you need
2) if (1) isn't necessary, simply extend the vm files or write your own 
vm files for layout

Layouts should control the positioning and size of your columns
Decorators are used to 'skin' the content, not layouts

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