Hi,
Thanks for response. Actually, the name of file is template.tpsml. It
was typo. The template is applied, but not entirely. We know that
because when we change column sizes in template from
<property name="sizes" value="20%,60%,20%">
to
<property name="sizes" value="30%,40%,30%">
the screen changes (and generated HTML also, of course). But left column and
right column are not shown.
On 30.05.2014 20:50, David S Taylor wrote:
Looks like you have a template PSML page (TPSML) with a PSML extension.
Files with .psml extensions are considered concrete pages, not templates.
See:
http://portals.apache.org/jetspeed-2/devguide/guide-psml.html#Page_Template
Are you trying to use the template feature? If yes, then you must rename
your page to template.tpsml - note the .tpsml extension
On Fri, May 30, 2014 at 2:09 AM, Drazen Kozic <drazen.ko...@asw.eu> wrote:
Hi,
we are using Jetspeed 2.2.2 with classic pipeline. In pages root folder we
have file template.psml with following content:
<?xml version="1.0" encoding="UTF-8"?>
<page-template id="definition" xmlns="http://portals.apache.org/jetspeed"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://portals.apache.org/jetspeed
http://portals.apache.org/jetspeed-2/2.2/schemas/tpsml.xsd">
<title>TEMPLATE</title>
<fragment id="template" type="layout" name="jetspeed-layouts::
VelocityThreeColumns">
<property name="sizes" value="20%,60%,20%"></property>
<fragment id="jstbLeft" type="layout" name="jetspeed-layouts::
VelocityOneColumn">
<property name="row" value="0"></property>
<property name="column" value="0"></property>
<fragment id="menu-left-1-1" type="portlet"
name="scb-pa::left">
<property name="row" value="0" />
<property name="column" value="0" />
</fragment>
</fragment>
<fragment id="jstbRight" type="layout" name="jetspeed-layouts::
VelocityOneColumn">
<property name="row" value="0"></property>
<property name="column" value="2"></property>
<fragment id="menu-right-1-1" type="portlet"
name="scb-pa::right">
<property name="row" value="0" />
<property name="column" value="0" />
</fragment>
</fragment>
<page-fragment id="page-template">
<property name="row" value="0" />
<property name="column" value="1" />
</page-fragment>
</fragment>
</page-template>
So, template has three columns: left, middle and right. Left and right
columns are prepopulated with portlets and middle column is reserved for
page content. Template defines also sizes of columns: 20%,60%,20%.
The problem is: left and right column are not shown at all. In HTML source
we can see:
<div id="js_template_"class="portal-nested-layout portal-nested-layout-
ThreeColumns">
<div id="column_template_0"
class="portal-layout-column portal-layout-column-ThreeColumns-0"
style="float:left; width:20%;">
</div>
<div id="column_template_1"
class="portal-layout-column portal-layout-column-ThreeColumns-1"
style="float:left; width:60%;">
...actual middle column content
</div>
<div id="column_template_2"
class="portal-layout-column portal-layout-column-ThreeColumns-2"
style="float:right; width:19.99%;">
</div>
</div> ...rest of page
As you can see from snippet, HTML for left and right columns is not
generated.
Any help is welcome.
Thanks
--
*Dražen Kozić*
Razvoj softverskih proizvoda
Rukovodilac tima
--------------------------------------
*ASW Inženjering d.o.o.*
Takovska 45a
11000 Beograd, Srbija
Tel: +381 11 2071 400
Fax: +381 11 2071 409
E-mail: drazen.ko...@asw.eu
www.asw.eu <http://www.asw.eu/>
---------------------------------------