0

After selecting a team site, I choose my design. I want to remove the default navigation so that it is not visible immediately after creating the team site. According to the documentation, I have uploaded the code to my pattern:

{
"verb": "removeNavLink",
"displayName": "Conversations",
"isWebRelative": true}, ...

Unfortunately, the navigation is not removed, only when I select my design on the existing site again.

Should I add another parameter?

1 Answer 1

0

You seem to be missing the navComponent property from your removeNavLink action. This property is needed so that SharePoint knows which navigation you wish to remove the link from.

JSON Schema for SiteScript Extensions

3
  • Hello, in documentation is: navComponent: The component where to remove the link from, QuickLaunch, Hub, or Footer. The default is QuickLaunch. i check for the team site both option and not help that ;)
    – Jelon3k
    Feb 18, 2021 at 13:52
  • That's interesting. Does it resolve the issue if you set it anyway? Feb 18, 2021 at 15:42
  • In not resolve. Is work fine on existing sites
    – Jelon3k
    Feb 22, 2021 at 6:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.