Customer Tree giving error on ActionNew Context Menu
I am trying to create a multi-Level custom tree. I can create the tree fine and call pages to render the data. I have it linked up to a LINQ data source to render the tree. The tree displays fine, however, when I click create in the context menu I get the following error:
ERROR CREATING CONTROL FOR NODETYPE: questions
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: ERROR CREATING CONTROL FOR NODETYPE: questions
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Check out the UI.xml in the umbrac/config/create folder
Add a new entry for each NodeKey you are using, like this:
<nodeType alias="YOURNODEKEY"> <header>SOME TEXT</header> <usercontrol>/plugins/createXY.ascx</usercontrol> (Path to the usercontrol to use) <tasks> Definition of the classes to use... <create assembly="THENAMEOFTHEDLL" type="MYTASKCLASS/> <delete assembly="THENAMEOFTHEDLL" type="MYTASKCLASS" /> </tasks> </nodeType>
The MYTASKCLASS has to implement the ITaskReturnUrl interface which itself implements the ITask interface...
You can also checkout the umbraco.tv series about sections.
Customer Tree giving error on ActionNew Context Menu
I am trying to create a multi-Level custom tree. I can create the tree fine and call pages to render the data. I have it linked up to a LINQ data source to render the tree. The tree displays fine, however, when I click create in the context menu I get the following error:
ERROR CREATING CONTROL FOR NODETYPE: questions
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: ERROR CREATING CONTROL FOR NODETYPE: questions
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
I am confused about how the ActionNew is supposed to work. How does it know how to load a page? Do I need to add some Javascript?
Gary
Check out the UI.xml in the umbrac/config/create folder
Add a new entry for each NodeKey you are using, like this:
The MYTASKCLASS has to implement the ITaskReturnUrl interface which itself implements the ITask interface...
You can also checkout the umbraco.tv series about sections.
Cheers, Thomas
is working on a reply...