You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Eigen Technology Pty Ltd <mi...@eigentechnology.com> on 2002/12/18 12:00:52 UTC
Velocity Format
Hi All,
I would like to display a .vm page without the DefaultTop, Menu and
Bottom. I know this can be achieved by getting rid of a few lines in the
layout/Default.vm file. But I would like the Top, Menu and Botton to exist
in some files but not others, is this possible?
cheers
michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Velocity Format
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Eigen Technology Pty Ltd" <mi...@eigentechnology.com> writes:
>Hi All,
>I would like to display a .vm page without the DefaultTop, Menu and
>Bottom. I know this can be achieved by getting rid of a few lines in the
>layout/Default.vm file. But I would like the Top, Menu and Botton to exist
>in some files but not others, is this possible?
Use a second layout template in the layouts/ subdirectory with the same
name as the Screen.
You might need a $data.setLayout("name_of_2nd_layout.vm") in your screen
(depending on the current bug situation. :-) )
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: AW: Velocity Format
Posted by Marc Lustig <ma...@marclustig.com>.
It's more easy, put it into app/layouts.
> -----Ursprüngliche Nachricht-----
> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> Gesendet: Mittwoch, 18. Dezember 2002 12:39
> An: turbine-user@jakarta.apache.org
> Betreff: Re: AW: Velocity Format
>
>
> Thanks, below is the default Directory tree for newapp example. Where do I
> suppose to set out this new Layout-Templates? At the same level as app /
> jsp / flux or as a subdirectory of app?
>
> |-- app
> | |-- GlobalMacros.vm
> | |-- layouts
> | | |-- Default.vm
> | | `-- Login.vm
> | |-- navigations
> | | |-- DefaultBottom.vm
> | | |-- DefaultTop.vm
> | | `-- Menu.vm
> | `-- screens
> | |-- Error.vm
> | |-- Form.vm
> | |-- Index.vm
> | |-- Insert.vm
> | |-- Login.vm
> | |-- ServletInfo.vm
> | |-- Upload.vm
> | `-- UploadComplete.vm
> |-- flux
> | |-- GlobalMacros.vm
> | |-- layouts
> | | `-- FluxDefault.vm
> | |-- navigations
> | | |-- FluxBottom.vm
> | | |-- FluxMenu.vm
> | | `-- FluxTop.vm
> | `-- screens
> | |-- FluxEmbeddedMenu.vm
> | |-- FluxError.vm
> | |-- FluxIndex.vm
> | |-- FluxLogin.vm
> | |-- group
> | | |-- FluxGroupAlreadyExists.vm
> | | |-- FluxGroupForm.vm
> | | `-- FluxGroupList.vm
> | |-- permission
> | | |-- FluxPermissionAlreadyExists.vm
> | | |-- FluxPermissionForm.vm
> | | `-- FluxPermissionList.vm
> | |-- role
> | | |-- FluxRoleAlreadyExists.vm
> | | |-- FluxRoleForm.vm
> | | |-- FluxRoleList.vm
> | | `-- FluxRolePermissionForm.vm
> | `-- user
> | |-- FluxMissingRequiredInputs.vm
> | |-- FluxUserAlreadyExists.vm
> | |-- FluxUserForm.vm
> | |-- FluxUserList.vm
> | `-- FluxUserRoleForm.vm
> |-- jsp
> | |-- screens
> | | |-- Index.jsp
> | | `-- Login.jsp
> | `-- tld
> | `-- Test.tld
>
>
>
>
> > Hi,
> > you have to create additional Layout-Templates and set them in your
> > action or screen or in a link.
> > In these Layout-templates you can individually specify which
> > navigation-files you want to use.
> > Hope that helps
> > Marc
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> >> Gesendet: Mittwoch, 18. Dezember 2002 12:01
> >> An: turbine-user@jakarta.apache.org
> >> Betreff: Velocity Format
> >>
> >>
> >> Hi All,
> >>
> >> I would like to display a .vm page without the DefaultTop, Menu and
> >> Bottom. I know this can be achieved by getting rid of a few lines in
> >> the layout/Default.vm file. But I would like the Top, Menu and Botton
> >> to exist in some files but not others, is this possible?
> >>
> >> cheers
> >> michael
> >>
> >>
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> >> <ma...@jakarta.apache.org>
> >> For additional commands, e-mail:
> >> <ma...@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: Velocity Format
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
Thanks, below is the default Directory tree for newapp example. Where do I
suppose to set out this new Layout-Templates? At the same level as app /
jsp / flux or as a subdirectory of app?
|-- app
| |-- GlobalMacros.vm
| |-- layouts
| | |-- Default.vm
| | `-- Login.vm
| |-- navigations
| | |-- DefaultBottom.vm
| | |-- DefaultTop.vm
| | `-- Menu.vm
| `-- screens
| |-- Error.vm
| |-- Form.vm
| |-- Index.vm
| |-- Insert.vm
| |-- Login.vm
| |-- ServletInfo.vm
| |-- Upload.vm
| `-- UploadComplete.vm
|-- flux
| |-- GlobalMacros.vm
| |-- layouts
| | `-- FluxDefault.vm
| |-- navigations
| | |-- FluxBottom.vm
| | |-- FluxMenu.vm
| | `-- FluxTop.vm
| `-- screens
| |-- FluxEmbeddedMenu.vm
| |-- FluxError.vm
| |-- FluxIndex.vm
| |-- FluxLogin.vm
| |-- group
| | |-- FluxGroupAlreadyExists.vm
| | |-- FluxGroupForm.vm
| | `-- FluxGroupList.vm
| |-- permission
| | |-- FluxPermissionAlreadyExists.vm
| | |-- FluxPermissionForm.vm
| | `-- FluxPermissionList.vm
| |-- role
| | |-- FluxRoleAlreadyExists.vm
| | |-- FluxRoleForm.vm
| | |-- FluxRoleList.vm
| | `-- FluxRolePermissionForm.vm
| `-- user
| |-- FluxMissingRequiredInputs.vm
| |-- FluxUserAlreadyExists.vm
| |-- FluxUserForm.vm
| |-- FluxUserList.vm
| `-- FluxUserRoleForm.vm
|-- jsp
| |-- screens
| | |-- Index.jsp
| | `-- Login.jsp
| `-- tld
| `-- Test.tld
> Hi,
> you have to create additional Layout-Templates and set them in your
> action or screen or in a link.
> In these Layout-templates you can individually specify which
> navigation-files you want to use.
> Hope that helps
> Marc
>
>> -----Ursprüngliche Nachricht-----
>> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
>> Gesendet: Mittwoch, 18. Dezember 2002 12:01
>> An: turbine-user@jakarta.apache.org
>> Betreff: Velocity Format
>>
>>
>> Hi All,
>>
>> I would like to display a .vm page without the DefaultTop, Menu and
>> Bottom. I know this can be achieved by getting rid of a few lines in
>> the layout/Default.vm file. But I would like the Top, Menu and Botton
>> to exist in some files but not others, is this possible?
>>
>> cheers
>> michael
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Velocity Format
Posted by Marc Lustig <ma...@marclustig.com>.
Hi,
you have to create additional Layout-Templates and set them in your action
or screen or in a link.
In these Layout-templates you can individually specify which
navigation-files you want to use.
Hope that helps
Marc
> -----Ursprüngliche Nachricht-----
> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> Gesendet: Mittwoch, 18. Dezember 2002 12:01
> An: turbine-user@jakarta.apache.org
> Betreff: Velocity Format
>
>
> Hi All,
>
> I would like to display a .vm page without the DefaultTop, Menu and
> Bottom. I know this can be achieved by getting rid of a few lines in the
> layout/Default.vm file. But I would like the Top, Menu and Botton to exist
> in some files but not others, is this possible?
>
> cheers
> michael
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>