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
Fun with Trees! - New patch released Options
Shandem
Posted: Tuesday, June 17, 2008 4:29:24 AM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
Creating your own trees, context menus, etc... is now quite easy!

I've posted a new patch here with all of the info:
http://www.codeplex.com/umbraco/SourceControl/PatchList.aspx

There's a lot more documentation in the patch itself including examples of extended trees, creating context menu items, and building your own trees but here's a quick description of new features:

• Allow users to “Browse” nodes without being able to view/edit them so they can edit child nodes of that node. This is set by permissions. Browse will now be the minimum permission that must be set for a node to show up in the content tree.
• Allow developers to put any ITree in any application including their own application. This is done by modifying the umbracoAppTree and umbracoApp table data. Previous to this patch, you could not add trees to the content, media or user applications.
• If an application contains only one ITree the system will not encapsulate it with a parent tree.
• Allow any user to have the “Send To Publish” capability
• Allow developers to extend any of the Tree’s which will allow them to modify it’s context menu, amongst other things
• Allow developers to easily create Trees using BaseTree (see example files)
• Increased performance with less overhead when loading ITrees, IActions, IActionHanders, etc… when using reflection.
• Increased performance when referencing the built in IActions as they are now all Singletons.
• Removed a lot of hard coded values (the other Trees apart from loadContent still need some updating)
• Ability to put the Recycle Bin for the content node anywhere you want.
• Fixed up some of the missing language terms for the English language file

This patch just makes it much easier to do all of these things. Theoretically you could do some of this before but it would have been very messy and would not have been possible by extended the built in trees.

This patch is backwards compatible with version 3.0.5 (could work with previous versions but haven't tested). The change log in the patch lists all of the changes that it will make.
NeilG
Posted: Monday, July 28, 2008 8:32:54 PM

Rank: Aficionado

Joined: 12/15/2006
Posts: 116
This is great news.
Does this mean my workaround from http://forum.umbraco.org/yaf_postst5423_New-section-and-the-tree.aspx is no longer needed?

I had to hack a little to stop my custom tree being wrapped in a parent tree.


___________________________________________________________________________________

Neil
rsoeteman
Posted: Tuesday, July 29, 2008 7:09:39 AM

Rank: Fanatic

Joined: 4/3/2008
Posts: 269
Location: The Netherlands
Hi Sandem,

Great functionality. Is this something that would be added to the core?

Cheers,

Richard

level 2 certified - Umbraco development - Soeteman Software

Import data into Umbraco? Consider using UmbImport
Shandem
Posted: Tuesday, July 29, 2008 7:48:16 AM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
It's all been added to Version 4. There are some bugs in that initial patch but they've all been ironed out in version 4. The functionality in version 4 is very similar to this patch but there are some minor differences. Also, the Content and Media applications will be limited to only be able to contain 1 tree.

The hard coded values and all of the hacks in the treeinit and tree pages have been removed so to answer your question NeilG, you won't have to use your hack :)

You can download the nightly build for version 4 and test it all out!

tim
Posted: Tuesday, July 29, 2008 8:45:41 AM

Rank: Umbracoholic

Joined: 2/19/2007
Posts: 1,056
Location: Belgium
Great stuff Shandem !

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
nwahlberg
Posted: Monday, November 03, 2008 2:28:08 AM

Rank: Aficionado

Joined: 10/20/2008
Posts: 131
Location: CT, USA
I am curious if there is any documentation on adding a section. I realize there is some good functionality to tap into, but where does one start? Any sample code/tuts would be much appreciated.

Also, how does a change like this impact future update releases of Umbraco?

Thanks much.

-- Nik

Level 1 Certified / www.scandiaconsulting.com
Dirk
Posted: Monday, November 03, 2008 8:26:56 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,874
Location: Belgium
Hi Nik,

You probably know the answer already! No, haven't seen documentation on this. Good place to start is the database, as sections and tree items are all added to the db. About upgrades: As you're adding your own stuff to the db, you should keep track of your own changes. Don't think an upgrade can/will break your own stuff.

Greetz,
/Dirk

level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
pph
Posted: Monday, November 03, 2008 9:56:51 AM
Rank: Aficionado

Joined: 7/19/2006
Posts: 174
Location: aalleren, Denmark
There aren't any docs on it because in the past (v3) it was a very messy sql operation. There was no businesslogic in place.

Now in V4 there is, and there's even a package action available so you can add that section on install.

http://umbraco.org/assets/package%20actions.pdf


Umbracian
hartvig
Posted: Monday, November 03, 2008 1:10:24 PM

Rank: Umbracoholic

Joined: 3/17/2008
Posts: 1,192
Location: Nyborg, Denmark
>pph
There's was great guide on your blog before you nuked it that never made it as a book on .org :'-(
(even though it had all the sql sit ups)

Jeeeez, did I really start this :-)
Founder of the Umbraco project
nwahlberg
Posted: Monday, November 03, 2008 2:39:30 PM

Rank: Aficionado

Joined: 10/20/2008
Posts: 131
Location: CT, USA
Dirk wrote:
Hi Nik,

You probably know the answer already! No, haven't seen documentation on this. Good place to start is the database, as sections and tree items are all added to the db. About upgrades: As you're adding your own stuff to the db, you should keep track of your own changes. Don't think an upgrade can/will break your own stuff.

Greetz,
/Dirk


Yeah, I was thinking more "informal documentation" :) I'll see about reverse engineering exiting sections/trees and from there.

pph, thanks for sending that link. Would like to see the "guide" that Niels is talking about above.

Thanks much.

-- Nik

Level 1 Certified / www.scandiaconsulting.com
Simm
Posted: Monday, November 03, 2008 4:45:30 PM
Rank: Fanatic

Joined: 7/22/2006
Posts: 308
Location: Randers, Denmark
I've written an article on my website about adding custom sections in Umbraco v3, but I didn't finish it for some reason, I will see if I can find time to finish it tonight.

Direct link Making custom sections

Best Regards
Simon

Umbraco-addict since 2005 - Follow me on twitter.com/simmdk
Shandem
Posted: Monday, November 03, 2008 11:01:37 PM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
I wrote an document describing the tree api for version 4 after we refactored it. Not sure if the core team has updated it or not but happy to share it if Neils and the team are fine with it...
nwahlberg
Posted: Tuesday, November 04, 2008 5:05:20 PM

Rank: Aficionado

Joined: 10/20/2008
Posts: 131
Location: CT, USA
Shandem, that would be absolutely awesome if you could share. We'll wait to hear from the core and Niels.

Simm - Thanks for sharing. It's a great start!

-- Nik

Level 1 Certified / www.scandiaconsulting.com
Shandem
Posted: Monday, November 24, 2008 11:21:54 PM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
Sorry for the long delay! Been hugely busy at work. I've posted the file on our blog here:

http://suite101.thefarmdigital.com.au/post/2008/11/Umbraco-Version-4--Tree-API.aspx

Let me know if you want more information.

Cheers!
Ig_p118
Posted: Tuesday, November 25, 2008 11:50:40 AM

Rank: Fanatic

Joined: 7/21/2006
Posts: 346
Location: Salerno - Italy
Shandem wrote:
Sorry for the long delay! Been hugely busy at work. I've posted the file on our blog here:

http://suite101.thefarmdigital.com.au/post/2008/11/Umbraco-Version-4--Tree-API.aspx

Let me know if you want more information.

Cheers!


Hi,

link file to Umbraco Trees v1.doc (223.00 kb) don't works.

Red Consulting s.a.s - Umbraco from v1.0
Italian Language File Traslator
Shandem
Posted: Tuesday, November 25, 2008 2:25:16 PM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
Sorry about that! ... spaces in the file name obviously don't make BlogEngine.NET happy! Works now.

The documentation covers how things are done and what they mean but if you're looking to create your own tree applications for version 4, you'll want to download the version 4 source to have a look at how the trees that come with version 4 are implemented.
nwahlberg
Posted: Tuesday, November 25, 2008 7:17:04 PM

Rank: Aficionado

Joined: 10/20/2008
Posts: 131
Location: CT, USA
Wicked cool Shandem! Good work. Can't wait to roll up my sleeves with this stuff.

-- Nik

Level 1 Certified / www.scandiaconsulting.com
Silverbug
Posted: Tuesday, November 25, 2008 7:27:46 PM

Rank: Devotee

Joined: 12/16/2007
Posts: 65
Location: Auckland, NZ
Your a life saver Shandem, Thats a great doc you've written there.
Cheers :)

Paul
Sniper Systems Ltd

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.