Contents
What is the difference between a site page and a web part Page?
Sites – used to organize various types of content (web parts) Pages – used to display content (web parts) on a site. Web Part – used to store particular content/information (i.e. documents, events, contacts).
How do I add content to web part?
, select Edit page. In the Zone where you want to add the Web Part, select Add a Web Part. In the Categories list, select Content Rollup. In the Parts list, select Content Search > Add.
What is a web part page?
A Web Part, also called a Web Widget, is an ASP.NET server control which is added to a Web Part Zone on Web Part Pages by users at run time. The controls enable end users to modify the content, appearance, and behavior of Web pages directly from a browser.
Can you use SPFX in a SharePoint App?
SharePoint apps client Web parts are loaded inside an IFrame, so its takes some time to load but SPFx is not like it and is fast. We can use SPFx in SharePoint pages and SharePoint modern site pages. in the previous article, we saw how to create modern site page and how to add the Web part inside the modern site pages.
SharePoint modern pages with page metadata provide more capabilities for end users to tag the content more appropriately. In certain development scenarios, we have to read these page properties in SPFx web part. SharePoint PnP (Pattern and Practices) provides simple APIs for reading page properties.
How to read custom page property values in SPFX?
PnP provides simple APIs to read the custom page property values and process in SPFx web part. The SPFx solution developed during this article can be downloaded from TechNet gallery.
How to create a SPFX client side web part?
If you are developing the SPFx web part for the first time in your local system then run this command also gulp trust-dev-cert. Now, we will see how to create our first SPFx client-side web part. Open Nodejs command prompt, I prefer Nodejs command prompt, but you can use any command prompt.