pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
753 stars 305 forks source link

Get Site Page Content using pnpjs unable to update to Angular app #1287

Closed gurramsubrahmanyam closed 4 years ago

gurramsubrahmanyam commented 4 years ago

we are trying to bind the sp.web.getFileByServerRelativeUrl('/SitePages/page.aspx').getText().then(console.log)) which is coming content as sharepoint page but when we try to append to page we are not able fetch any content in the app.

"<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebControls.ClientSidePage, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Arxway " ### Category - [ ] Enhancement - [ ] Bug - [x] Question - [x] Documentation gap/issue ### Version Please specify what version of the library you are using: [ ] Please specify what version(s) of SharePoint you are targeting: [ ] *If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.* ### Expected / Desired Behavior / Question *If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!* ### Observed Behavior *If you are reporting an issue please describe the behavior you expected to occur when performing the action. If you are making a suggestion or asking a question delete this section.* ### Steps to Reproduce *If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making a suggestion or asking a question delete this section.* ### Submission Guidelines *Delete this section after reading* * All suggestions, questions and issues are welcome, please let us know what's on your mind. * Remember to include sufficient details and context. * Please check back occasionally on your issue as we may have follow up questions. * If you have multiple suggestions, questions, or bugs please submit them in separate issues so we can track resolution. Thank you for your feedback!
gurramsubrahmanyam commented 4 years ago

Updating type

juliemturner commented 4 years ago

I'm not really sure, as you don't explain, what you're trying to accomplish but based on the URL did you take a look at the docs for Client-Side pages?

patrick-rodgers commented 4 years ago

Any updates @gurramsubrahmanyam? From your description we aren't certain what you are attempting to do.

juliemturner commented 4 years ago

Assuming that you have gotten the assistance you need and am closing this issue. If you have a new question, please feel free to submit it and reference this closed issue.

gurramsubrahmanyam commented 4 years ago

No its not resolved my issue but we found a workaround for that issue. instead of site pages we have created list and added content rendered in angular app.

github-actions[bot] commented 3 years ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.