Create custom tree and create Umbraco nodes under the tree not in custom database table
Hi All,
I've now got to the point now that after 3-4 days of dev, investigation, watching the umbraco videos, googling etc I cant seem to find anyway of creating Umbraco nodes under my tree in my own section. So they are saved in the umbracoContentXml table and not in my own (just like uWebshop does)
I've followed the videos and updated the UI.xml to use the content.ascx
I keep getting the following error in my modal window when I right click and click create
This is my current code:
using System; using System.Collections.Generic; using umbraco.cms.businesslogic.web; using umbraco.cms.presentation.Trees; using umbraco.BusinessLogic.Actions; using umbraco.interfaces; namespace ContractorSite.CustomTrees { public class EmailTemplateTree : BaseContentTree { private Document[] emailTemplates; public EmailTemplateTree(string application) : base(application) { emailTemplates = Document.GetChildrenForTree(m_id); } protected override void CreateRootNode(ref XmlTreeNode rootNode) { rootNode.Text = "Email Template"; rootNode.Icon = ".sprTreeFolder"; rootNode.OpenIcon = ".sprTreeFolder_o"; rootNode.NodeID = "emailTemplate2"; rootNode.NodeType = this.TreeAlias; }
Create custom tree and create Umbraco nodes under the tree not in custom database table
Hi All,
I've now got to the point now that after 3-4 days of dev, investigation, watching the umbraco videos, googling etc I cant seem to find anyway of creating Umbraco nodes under my tree in my own section. So they are saved in the umbracoContentXml table and not in my own (just like uWebshop does)
I've followed the videos and updated the UI.xml to use the content.ascx
I keep getting the following error in my modal window when I right click and click create
This is my current code:
This is driving me nuts, I cant seem to get any further than this window and so any help would be greatly appreciated.
Thanks,
Tom
is working on a reply...