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
Context Menu Customization/Browse Only Permissions/Publish To Permissions - PATCH RELEASED Options
Shandem
Posted: Friday, May 02, 2008 7:51:23 AM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
Hi all,

I've posted a patch relating to the following:
http://www.codeplex.com/umbraco/WorkItem/View.aspx?WorkItemId=16324

Basically doing this was due to a client asking us for this functionality but we've had a few clients now asking about this too so hopefully if anyones been asked about these things, you can have a fix for them.

- Assigning browse permissions to content tree nodes so the user has access to update child nodes but not parent nodes
- Ability to have the publish to button available to other users other than just "reader"
- Context menu customization

This patch addresses all of these things and I've documented everything in the patch in regards to changes, etc...

One cool part about the R&D for creating this patch is I've managed to open up a potentially really cool feature of Umbraco developers which would allow them to create their own custom Actions and assign their own custom Action handlers to them and then even put these actions in the context menu. Its actually really simple to do.

I've fixed up a bunch of code in the standardTreeFunctions file for the content tree and have added a more robust way to manage trees by inheriting from the new BaseTree class (there's alot of strings hard coded to create these trees and this will avoid having to do this for setting attributes). I've also fixed up a few potential bugs in other files. The full details are in the change log in the patch.

If anyone has feedback, i'd love to hear it! I'm hoping that these changes can be used for newer verions of Umbraco.

patch is here:
http://www.codeplex.com/umbraco/SourceControl/PatchList.aspx

mortenbock
Posted: Friday, May 02, 2008 10:04:25 AM

Rank: Addict

Joined: 7/19/2006
Posts: 882
Location: Århus, Denmark
This sounds really nice. That would probably open up some interresting features like creating a shortcut to "Move to archive" or similar rightclicking options.

Very interresting.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

pph
Posted: Friday, May 02, 2008 10:22:44 AM
Rank: Aficionado

Joined: 7/19/2006
Posts: 174
Location: aalleren, Denmark
Hi Shandem

Thanks for the patch, will look into and see what changes you made, but from your post it sounds cool.

It really touches on the oldest, and probably the single most hacked element in umbraco - the tree. And I think the entire core team really wish that we could just take it out back and shoot it in the head, and replace it with some nicer and cleaner code, but unfortunately it won't be for any of the 3.X releases, it will have to wait for the 4.0 which will be a big refactor of how umbraco handles the tree, applications, actions etc.

So we hear you loud and clear, the tree should get better, but as of now, too many things depend on it, so we will not risk the stability and backward compatibility of the 3.X branch to make those big changes to the core.



Umbracian
hartvig
Posted: Friday, May 02, 2008 10:54:27 AM

Rank: Umbracoholic

Joined: 3/17/2008
Posts: 1,192
Location: Nyborg, Denmark
This is awesome - as Per mentions we've wanted to do something about the tree for a very long time (the current code dates back to 2003/2004!!!).

I'll do a review next week to see if we can add this to 3.1 (I'm very positive about this). Per's concerns mainly relates to the javascript part, but as this mostly relates to a more uniform/robust way of adding to the tree I'm all game.

Regarding adding custom methods to the context menu, we should find some conventions to ensure that it doesn't get a "messy desk" for adding functionality.

Thanks for your hard work - are you interested in working closer with the Core team in the future?

Jeeeez, did I really start this :-)
Founder of the Umbraco project
Shandem
Posted: Monday, May 05, 2008 2:22:26 AM

Rank: Devotee

Joined: 8/13/2007
Posts: 53
Location: Sydney, Australia
Yeah, i'd be more than happy to work closer with the team. We use Umbraco for quite a few websites and we're always having clients asks us for additional features which we're just now starting to look into. If you want to let me know how/what/when/where you'd want me to help out, I'm all ears.
I'd be happy to look at fixing up more of the tree functionality if no one else has looked at doing this yet...

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.