XSLT library for Umbraco: update

Some 2 years ago I published an xslt library extension for Umbraco. I added several methods to the class that proved to be useful for me, maybe they are useful for you too.

The code is provided as is, no garanty, blabla … though should not harm anyone.

You can download the dll and adjust your xslt configuration settings in Umbraco or download the full VS2008 project [1.5 MB] and have a look at the code.
Just for the reference, below is a list of methods available in the class with a short description

XPathNodeIterator QueryDatabase(string conn, string query )
Query the umbraco database or any other database that you need.
string createMemberGroup(string memberGroupName)
Create a member group
string isMemberOfGroup(string memberGroupName, string memberId)
Check if the member supplied belongs to the group supplied
XPathNodeIterator GetAccessingGroups(int documentId)
Not working, will be removed …
XPathNodeIterator getAllMembersFromGroup(string groupId)
REturn all the members that are in a group
string getMemberGroups()
Returns the list of groups the current memner belongs to
XPathNodeIterator getAccesXml()
Returns the full xml document that contains the list of protected pags and groups.
string getMemberFromFirstLetter(char letter)
Well, get member from the first letter
XPathNodeIterator getMemberFromFirstLetterXml(char letter)
Well, same, but then in xml.
string addMemberToGroup(string memberGroupName, int memberId)
Add a given member to a give group
string addPageToGroup(int currentPage, int groupId, int loginPage, int errorPage )
Protect a page with a membergroup
bool updateProperty(int DocumentId, string propName, string propValue)
Update any property (not the umbraco properties) for any given document.

Download

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Did you like it?
© 2003 - up to today