Hi, I'm about to make a ActionHandler that will create a new Member Group when a document with a node with a DocType of "Event" are created.
In the actionHandler I did this:
Code:
public bool Execute(umbraco.cms.businesslogic.web.Document docObj, umbraco.interfaces.IAction action)
{
if (docObj.ContentType.Alias == "Event")
{
int newId = docObj.Id;
User u = new User(0);
Node n = new Node(newId);
MemberGroup.MakeNew("(" + newId + ")" + n.Name + "*", u);
return true;
}
return false;
}
The problem is that the MemberGroup name are "(1234)*" which meens it finds the ID of the node, but not nodeName.
What are the work arround this one?