|
|
Rank: Devotee
Joined: 12/15/2006 Posts: 40
|
Hi I am trying to add a custom section to the Umbraco interface.
I know I need to modify Dashboard.config but I can't work out what the different elements mean. For example, what does "area" refer to? How do I add a user control to the right pane?
I know I need to add a line in the umbracoApp table and I also need to modify the language xml file.
Could someone help by posting a short guide - there doesn't seem to be any documentation out there on doing this.
|
|
Rank: Newbie
Joined: 1/21/2009 Posts: 6 Location: Glasgow
|
I am also looking for information based on created a custom Umbraco section. I have managed to create a custom section in the "Sections" area from this tutorial. I have a full seperate content managed system already built that l would like to adapt and add into Umbraco, however l have no idea how to link the menu items l have created to the specific pages of the existing CMS. Does anyone know any existing tutorials that take off from the tutorial shown above to achieve this? Any help would be much appreciated Jamie
|
|
Rank: Fanatic
Joined: 7/22/2006 Posts: 308 Location: Randers, Denmark
|
If you follow my tutorial at the URL above, you should be able to point your tree nodes to various places. If you need to redirect an internal .aspx-file, just change this line. Code: treeElement.SetAttribute("action", "javascript:gotoURL('http://www.google-analytics.com');"); to something like treeElement.SetAttribute("action", "javascript:gotoURL('http://www.simm.dk/customadmin/startpage.aspx');");
Best Regards SimonUmbraco-addict since 2005 - Follow me on twitter.com/simmdk
|
|
Rank: Newbie
Joined: 12/29/2008 Posts: 11 Location: Århus
|
Hey Simon
I followed your Itree example and it works out well... EXCEPT... The Render method that I implement from the ITree interface, is not called.
When I put breakpoints in my constructor, the RenderJS and Render method, everything is called except the Render method.
Have you any clue on what might be going on?
|
|
Rank: Newbie
Joined: 1/21/2009 Posts: 6 Location: Glasgow
|
Hi Simm
thanks for the relpy regarding your tutorial. I cant seem to get the node to load any pages,do l need to refernce the "nodeID" to the actual tree node in the database? And if so do you know where l could find the ID?
Thanks
Jamie
|
|
Rank: Fanatic
Joined: 7/22/2006 Posts: 308 Location: Randers, Denmark
|
Thomas: That's strange - could you post some of the code, so I can have a look at it? Jamie: At current it seems like the nodeID is just a fake id, you can set to anything - in the tutorial it's set to a negative value, to avoid conflicts with actual Umbraco nodes. Best Regards SimonUmbraco-addict since 2005 - Follow me on twitter.com/simmdk
|
|
Rank: Newbie
Joined: 12/29/2008 Posts: 11 Location: Århus
|
Simm: Actually, the code is your example excatly! And yes, it's weird. I then tried to inherit the BaseTree class (which implements the ITree interface) and then it works. :d/
|
|
Rank: Fanatic
Joined: 7/22/2006 Posts: 308 Location: Randers, Denmark
|
Thomas: Weird - but I'm glad you got it working :) I may have to go through my tutorial myself again, but I'm using that particular code on a few projects, so it should be working. Best Regards SimonUmbraco-addict since 2005 - Follow me on twitter.com/simmdk
|
|
Rank: Newbie
Joined: 12/29/2008 Posts: 11 Location: Århus
|
Simm: I dont think there's anything wrong with your code. I suspect my Umbraco installation for acting weird :)
|
|
Rank: Newbie
Joined: 6/30/2008 Posts: 7 Location: Edinburgh, UK
|
I was having the same problem but I figured out the problem... You say the outputted dll-file should have the same name as the class but for me the namespace needed to be the same as the dll file. So, in the example in the tutorial, the dll file would need to be named MyTestNamespace.
|
|
The forum has moved
This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco
|
|
Guest |