You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a SharePoint site page named webpage.aspx in the root of if the SitePages directory of my site (<site>/SitePages/webpage.aspx) and I have another page with the same name webpage.aspx in a different directory of the same site (<site>/SitePages/directory/webpage.aspx).
I'm trying to update <site>/SitePages/webpage.aspx page to disable comments. I'm using the following:
When I do this the contents of <site>/SitePages/webpage.aspx are replaced or mirrored with the contents of <site>/SitePages/directory/webpage.aspx.
Is there a better way to refer to a specific page. I feel like I should be able to use something like a GUID value but I have not been able to find a way to do that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I have a SharePoint site page named
webpage.aspx
in the root of if the SitePages directory of my site (<site>/SitePages/webpage.aspx
) and I have another page with the same namewebpage.aspx
in a different directory of the same site (<site>/SitePages/directory/webpage.aspx
).I'm trying to update
<site>/SitePages/webpage.aspx
page to disable comments. I'm using the following:Set-PnPPage -Identity "webpage.aspx" -CommentsEnabled:$false
When I do this the contents of
<site>/SitePages/webpage.aspx
are replaced or mirrored with the contents of<site>/SitePages/directory/webpage.aspx
.Is there a better way to refer to a specific page. I feel like I should be able to use something like a GUID value but I have not been able to find a way to do that.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions