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

Filed under: Article, Download, English, Web development, XSLT — Tags: , , — Len @ 10:15 pm

Sorry, comments for this entry are closed at this time.

Categories

About

My name is Len Dierickx and this is my personal blog. I studied Musicology at the UG, long time ago but got more and more into webdevelopment. I started this blog because the EuroIA summit in Brussels (Belgium, Oct 2005), was such an inspiration. And I was thinking about a blog on IA a while now, so that was the extra kick I needed to get it actually done.

Powered by WordPress