Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johan Möller 83 posts 137 karma points
    Mar 24, 2010 @ 08:38
    Johan Möller
    0

    Who published?

    Hi
    Feels like this is pretty simple but im unable to find anything about it on the forums.
    I have a newslist in xslt and i want show which user published to node.
    How?
  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 24, 2010 @ 09:46
    Lee Kelleher
    1

    Hi Johan,

    In the XSLT, you will have an attribute available called @writerName, this is what you need:

    <xsl:value-of select="$currentPage/@writerName" />

    If you are in a loop, then you wont need the $currentPage variable, just use @writerName.

    Cheers, Lee.

     

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Mar 24, 2010 @ 09:48
    Simon Dingley
    1

    I think you need to use the creatorName node attribute e.g. node/@creatorName

    I have not tested this but I think should work.

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Mar 24, 2010 @ 09:49
    Simon Dingley
    0

    Curious now, what is the difference between writerName and creatorName?

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 24, 2010 @ 10:03
    Lee Kelleher
    0

    I 'think' the creatorName is who created the content/node, and the writerName is the user who published it - or last edited it?

  • Johan Möller 83 posts 137 karma points
    Mar 24, 2010 @ 11:31
    Johan Möller
    0

    Thanks guys :)

Please Sign in or register to post replies

Write your reply to:

Draft