Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigation nodes on child web client context are provisioned on root site instead #1140

Open
maratbakirov opened this issue Jul 25, 2019 · 0 comments

Comments

@maratbakirov
Copy link
Contributor

Brief description

Please provide short description covering two areas:
the navigation nodes are provisoned on the wrong site.
we have a client context that is on a child web.
we run the code below and the navigation nodes are added to the root site instead of the site we are actually on

        //var webModel = SPMeta2Model.NewWebModel(web =>
        //{
        //    web.AddWebNavigationSettings(NavigationDefinitions.ClientNavigationSettings);

        //    web.AddQuickLaunchNavigationNode(NavigationDefinitions.GetRegionHomeNavigationNode(context.Web.ParentWeb.Title));
        //    web.AddQuickLaunchNavigationNode(NavigationDefinitions.ClientHomeNavigationNode);
        //                //});

        provisioningService.DeploySiteModel(context, webModel);

    #region Client Site Nodes
    public static QuickLaunchNavigationNodeDefinition ClientHomeNavigationNode = new QuickLaunchNavigationNodeDefinition()
    {
        Title = "Client Home",
        Url = "~site"
    };

SharePoint API

Which version of SharePoint runtime do you use?

SPMeta2 API

Which version of SPMeta2 do you use? Use the following code snippet for your convenience. It shows all the details on SPMeta2 and SharePoint runtime used.

var info = SPMeta2Diagnostic.GetDiagnosticInfo();

https://www.nuget.org/packages/SPMeta2.CSOM.Foundation-v16/1.2.140?_src=template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant