His start node is set to the specific structure right? Guess you'll have to do it differently, using user permissions to hide/show certain stuff instead of setting a fixed start node
We already implementd a solution like this. We used the Legacy-Part of uCmponents because we like to have both possibilities (with and without this (security) restrictions). (!) If you use Umbraco 6.0.0 you have to download the latest uComponent version.
Just change this method: uComponents.Legacy --> DataTypes --> MultiNodeTreePicker --> BaseTreeExtensions.cs
internal static int GetStartNodeId(this BaseTree tree, Content definedStartNode, Content userStartNode) { if (userStartNode == null) { throw new ArgumentNullException("userStartNode"); } //the output start node id var determinedStartNodeId = umbraco.uQuery.RootNodeId; // ******************************************************************************************* // Hack to allow users with no access for defined node to access it via multi node tree picker // *******************************************************************************************
if (definedStartNode == null) { //if the defined (desired) start node is null (could not be found), return NoChildNodesId determinedStartNodeId = NoChildNodesId; } else { determinedStartNodeId = definedStartNode.Id; } /*else if (definedStartNode.Id == umbraco.uQuery.RootNodeId) { //if the id is -1, then the start node is the user's start node determinedStartNodeId = userStartNode.Id; } else if (definedStartNode.Path.Split(Constants.Common.COMMA).Contains(userStartNode.Id.ToString())) { //If User's start node id is found in the defined path, then the start node id //can (allowed) be the defined path. //This should always work for administrator (-1) determinedStartNodeId = definedStartNode.Id; } else if (userStartNode.Path.Split(Constants.Common.COMMA).Contains(definedStartNode.Id.ToString())) { //if the defined start node id is found in the user's path, then the start node id //can only be the user's, not the actual start determinedStartNodeId = userStartNode.Id; } else if (!definedStartNode.Path.Split(Constants.Common.COMMA).Contains(userStartNode.Id.ToString())) { //they should not have any access! determinedStartNodeId = NoAccessId; }*/ return determinedStartNodeId; }
Access nodes outsite content tree
Hey Guys
I would like that my client can access nodes outside their sites.
But umbraco would not allow them to access nodes outsite of their content-tree.
Is there a plugin or some kind of setting for umbraco to let them access the nodes
Normally it is not a problem.
You just need to setup your MNTP the right way.
Are you using xpath on MNTP now?
no, im not using the xpath.
But i also think the problem is that the clients not can access nodes outside their content tree?!
like here where umbraco tells me that: "You do not have permission to view this tree" :P
Hi Mads,
Try right-clicking the "Kampagneboxes" node and choose "Permissions", then allow "Browse Node" for the users that needs to do this.
That might just work ?
/Chriztian
Hey Chriztian, it's allready set :P
I've tried to use xpath expression but nothing seems to work for me.
Umbraco will only allow me see the client tree structure :P
Comment author was deleted
His start node is set to the specific structure right? Guess you'll have to do it differently, using user permissions to hide/show certain stuff instead of setting a fixed start node
Hey guys just talked to Tim, the developer of uCom. the MNTP can't reach out of scope by default, sadly but true, but thanks for for your comments :D
Someone i know will try to make his own kind of MNTP, so that must be the answer for this question :o)
We already implementd a solution like this. We used the Legacy-Part of uCmponents because we like to have both possibilities (with and without this (security) restrictions). (!) If you use Umbraco 6.0.0 you have to download the latest uComponent version.
Just change this method: uComponents.Legacy --> DataTypes --> MultiNodeTreePicker --> BaseTreeExtensions.cs
Hej Tobias
I'm not sure where i'm going to edit your suggestion?
What file should i write this in?
Hi Tobias
I've really tried to fix this problem for a long time is possible for you to maybe send me the package?
I really dont know how to export the Visual studio projekt to get it to a package for umbraco.
Hope that you can help me :o)
is working on a reply...