Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
Custom umbraco section Options
acl
Posted: Wednesday, February 06, 2008 5:18:21 AM
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.
jamie21cor
Posted: Wednesday, January 21, 2009 12:24:57 PM
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
Simm
Posted: Wednesday, January 21, 2009 8:32:45 PM
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
Simon

Umbraco-addict since 2005 - Follow me on twitter.com/simmdk
ThomasVestergaard
Posted: Thursday, January 22, 2009 10:54:32 AM
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?
jamie21cor
Posted: Thursday, January 22, 2009 5:13:41 PM
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
Simm
Posted: Thursday, January 22, 2009 6:35:36 PM
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
Simon

Umbraco-addict since 2005 - Follow me on twitter.com/simmdk
ThomasVestergaard
Posted: Thursday, January 22, 2009 9:06:25 PM
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/
Simm
Posted: Friday, January 23, 2009 1:53:23 AM
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
Simon

Umbraco-addict since 2005 - Follow me on twitter.com/simmdk
ThomasVestergaard
Posted: Friday, January 23, 2009 9:52:53 AM
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 :)
sniemuth
Posted: Wednesday, June 24, 2009 1:14:35 PM
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

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.