I would like to display user data on my page. With user data I mean information about the user that was logged into umbraco and created the page. I have already found the fields @writerID and @writerName. Can I display more data, like the email address using XSLT?
No, that information isn't in the xml so you can't get it that way. I don't know of an umbraco.library call in the umbraco xslt extension that would do it either (though maybe there's one I've overlooked... I've never tried to do this particular task). I think you would need some in-line c# or an xslt extension to get the data through the api unless someone knows of another approach.
Since there is no known way of getting access to this data, I guess there's been no real demand for it in the past(?) In my particular case it's more of a "nice to have" than a "need to have" request so I won't go through the trouble of writing custom c# code just to get it.
Displaying user (writer) data on page using XSLT?
Hi!
I would like to display user data on my page. With user data I mean information about the user that was logged into umbraco and created the page. I have already found the fields @writerID and @writerName. Can I display more data, like the email address using XSLT?
Thanks in advance!
/Thomas
No, that information isn't in the xml so you can't get it that way. I don't know of an umbraco.library call in the umbraco xslt extension that would do it either (though maybe there's one I've overlooked... I've never tried to do this particular task). I think you would need some in-line c# or an xslt extension to get the data through the api unless someone knows of another approach.
cheers,
doug.
Thanks Doug!
Since there is no known way of getting access to this data, I guess there's been no real demand for it in the past(?) In my particular case it's more of a "nice to have" than a "need to have" request so I won't go through the trouble of writing custom c# code just to get it.
/Thomas
is working on a reply...