[opencms-dev] Include file from other folder

Thomas Maerz thomasmaerz at gmx.de
Thu Aug 4 17:17:13 CEST 2005


arthur costa <arthur.grupos at gmail.com> writes:

> I created my template at a folder called
> /system/modules/br.com.novaeraconsultores.templates/templates
>
> and I'm using it at
> /sites/default/Ajuda/main.html
>
> the template will allow me to include a left menu at the pages which
> use it and the page to be included is specified as an attribute of the
> page being created (not the template).
>
> All I want is to use the menu from the folder I'm creating my page,
> not the folder where I defined the template.

Didn't understand, but maybe this helps:

| CmsJspActionElement cms = new CmsJspActionElement( pageContext, request, response );
| String navigation = cms.property( "navigation", "search", "", false );
| 
| if( ! navigation.equals( "" ) )
| {
|     cms.include( navigation );
| }

Regards,
Thomas




More information about the opencms-dev mailing list