Pierre van Rooden wrote:
This hack actually breaks existing sites (like the ones I have been working on lately).An example of using arrays:
Especiall when you are importing (for instance) checkboxes, which we do on several sites. In those cases you need the array.
This code is called with a list of ids of theme-objects (which people can check using checkboxes), which are trhen linked to a site-object:
<mm:import externid="themes" vartype="Vector" jspvar="themevec" />
<% java.util.Iterator i = themevec.iterator(); while (i.hasNext()) { %>
<mm:node number="<%= (String)i.next()%>" id="other" />
<mm:createrelation role="selected" source="site" destination="other" />
<% } %>
Nifty, eh?
--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Never summon anything bigger than your head."
