Hi,

i have a question about Velocity.

I have created (i.e declared in the registry) a specific controller (The
available column controllers
did not match my specific need).
I would like to access only the portlets declared in the PSML as the ones
belonging
to column 0.
Here's a sample of my PSML file:
    <portlets>
      <entry parent="JetspeedContent"/>
      <layout>
       <property name="row" value="0"/>
       <property name="column" value="0"/>
      </layout>
    </portlets>

I have noticed that in multicolum.vm file the portlets where accessed like
this:
#foreach ( $column in $portlets )
....HTML code ...
   # foreach ( $portlet in $column)
          $!portlet.getContent($data)
  # end
....
#end

Therefore, in the Velocity template file associated with my controller,
as i just wanted to display the portlets defined in my first column,
i have used the following syntax:
# foreach ($portlet in $portlets[0] )
#end

But of course, it does not work. None portlet is displayed.
I know this question is more linked to Velocity syntax but i have no
idea of how the $portlets object is organised. I mean what are the methods,
attributes, etc of $portlets object?

Thanks in advance,
Luc




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to