pnp / pnp/pnpframework

SiteCollection - IsPublic attribute not accepting parameters

Open
#156 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: provisioning ⚙ backlog
Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Hi there,
maybe this is more a question. Is there any way to pass a parameter into a template to indicate the privacy of the SiteCollection or the Team?
image
image

The schema is only allowing a boolean for the case of the SiteCollection, and It would be nice to be able to send a parameter to use the same XML file for public or private sites.

Any other suggestion? Right now as a workaround, we are loading the hierarchy and changing the value before applying the template, but to be able to send a parameter would be a good improvement.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the SiteCollection IsPublic value is defined in the provisioning schema and how template parameters are handled for SiteCollection and Team settings. Compare this with the reported hierarchy-loading workaround; done should allow one XML template to select public or private sites through a parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.