I thought I'd try to use this package to help replicate a Members section in the content tree.
I've a 'Members' doctype I'm using at the root.
I've a 'Member' doctype to represent each member.
I've an 'AlphabetFolder' doctype to use as the folders.
The 'Members' doctype is configure to allow both a 'Member' or 'AlphabetFolder' doctype as a child in the structure. The 'AlphabetFolder 'doctype is configure to allow just a 'Member' doctype as a child in the structure.
Weird thing is; I've built several projects which include DateFolders and for me the issue doesn't occur (though none of the is v6.0.2).
Hopefully I've got some time on my hands in a few months so I can do some thorough testing. Though if you would have some time to help that would be awesome! By testing/debugging the source and fix the issue.
Not quite working in v6.0.2
I thought I'd try to use this package to help replicate a Members section in the content tree.
I've a 'Members' doctype I'm using at the root.
I've a 'Member' doctype to represent each member.
I've an 'AlphabetFolder' doctype to use as the folders.
The 'Members' doctype is configure to allow both a 'Member' or 'AlphabetFolder' doctype as a child in the structure.
The 'AlphabetFolder 'doctype is configure to allow just a 'Member' doctype as a child in the structure.
Here's my entries in the web.config:
When I click my 'Members' node and create a new 'Member' node under it the create window just sits there whilst the system is chugging away.
After about 1 minute the Visual Studio Just In Time Debugger dialog appears.
I then click 'Cancel' in the create window and reload the nodes.
As you can see, after appearing to do nothing it has created two new nodes.
The problem is that the CreateAlphabeticFolder method calls doc.Save() which fires off the Document_BeforeSave event.
The Document_BeforeSave event then calls the CreateAlphabeticFolder method and infinate recursion ocurrs.
Weird thing is; I've built several projects which include DateFolders and for me the issue doesn't occur (though none of the is v6.0.2).
Hopefully I've got some time on my hands in a few months so I can do some thorough testing. Though if you would have some time to help that would be awesome! By testing/debugging the source and fix the issue.
Hello,
I've put a fix in that is working for my purposes at the moment.
I've just created a module level variable:
added some checks for the variable to these two events
and then in void CreateAlphabeticFolder(Document doc) I'm just setting the variable to true at the beginning and false at the end.
Regards,
Matt
FYI; I've created a new version for umbraco 6.1, 6.2 and 7.1.
Thanks.
is working on a reply...