|
|
 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.aspxThere'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.
|
|
 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
|
|
 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 SoftwareImport data into Umbraco? Consider using UmbImport
|
|
 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!
|
|
 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
|
|
 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
|
|
 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
|
|
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
|
|
 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
|
|
 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
|
|
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 SimonUmbraco-addict since 2005 - Follow me on twitter.com/simmdk
|
|
 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...
|
|
 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
|
|
 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.aspxLet me know if you want more information. Cheers!
|
|
 Rank: Fanatic
Joined: 7/21/2006 Posts: 346 Location: Salerno - Italy
|
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
|
|
 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.
|
|
 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
|
|
 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
|
|
Guest |