This should do what you want:
<cms:out nodeDataName="mgnl:authorid" contentNodeName="MetaData" var="user_actu" />

(sets the authorid of the current node to the pageCtx var "user_actu")

Note that you have both these informations at page and paragraph level, so you need to make sure you apply your test on the correct node.

On Oct 15, 2008, at 4:53 PM, Julie494 wrote:


Can I use The metadata  as properties of my dialogs definitions.

I would like display the paragraphs only posted by a actual user. Then I
would like add a hidden property with the userName to compare with the
actual user :
<c:set var="user_actu" /><cms:out nodeDataName="user /></c:set>
<%
  MgnlUser user = (MgnlUser) MgnlContext.getUser();
  String name_user = user.getName();
  pageContext.setAttribute("mon_user", name_user);
%>

<c:if test="${user_actu == mon_user}">


Which is the metadata can I use ?




Magnolia - User mailing list wrote:

You can't just use code as properties of your dialog definitions. The
user who saved a dialog is available in the metadata of the given
node. If that's not good enough, you'll probably need a custom control
to fill the value in.

-g


--
View this message in context: 
http://www.nabble.com/Get-User-Name-in-Dialog-in-Admin-Central-tp19990273p19995222.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to