Henk Hangyi <[EMAIL PROTECTED]> wrote: > <% String > userconstraint="mmbaseusers.username='"+cloud.getUser().getIdentifier()+ > "'"; %> > <mm:list path="mmbaseusers" constraints="<%= userconstraint %>"> > > Is there a shorthand for this?
No. A bit shorter would be: constraints="<%="mmbaseusers.username='" + cloud.getUser().getIdentifer()+''"%>".... > > I would like to write something like: > > <mm:node number="<%= cloud.getUser().getNode() %>"> > <!-- do something with the MMBase user logged in at this page > --> > </mm:node> > > But from the api docs this doesn't seem to be possible. Perhaps the identifier of a cloud-security user should not be the name but the node-number. Then you can do <mm:node number="<%= cloud.getUser().getIdentifier() %>" /> Perhaps, by the way, there must be a 'cloud-info' tag, analogous to 'nodeinfo' and 'fieldinfo'? Something like this might then work: <mm:cloudinfo type="user"> <mm:node> </mm:node> </mm:cloudinfo> In the case of cloud-security, the node can be de user-node. If no node is associated with the user, cloud-info could provide a 'virtual' node? Michiel -- mihxil' Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 []()
