user21725469
user21725469

Reputation: 9

How to show page details like, Page Owner Name, Edited by, Approved by, Approved Date on a site page in Sharepoint Online modern UI?

I'm new to this. I would like the page details to be displayed at the bottom of the site. Additionally, I want to assign each page to a specific user(is this poosible??).

Example:

Owner: John Edited By : Max Approved By : John Date of approval : 24/06/2024

I tried using the page property web part, but it only displays the title. Then, I attempted to create a custom column by creating site columns, but that didn't work either. I'm running out of options.

Looking for a solution. Thank you.

Upvotes: 0

Views: 142

Answers (2)

Emily Du - MSFT
Emily Du - MSFT

Reputation: 628

You need to unseal the Site Page content type by running this PowerShell script.

Connect-PNPOnline <SubsiteURL> -Interactive
$contenttype = Get-PNPContentType -List <ListID> -Identity "Site Page"
$contenttype.Sealed =$false
$contenttype.Update($False)
Invoke-PnPQuery

Upvotes: 0

teylyn
teylyn

Reputation: 35900

The properties web part can show fields other than the title. In the screenshot, it is showing the custom field "Owner".

At the top of the page, you can select a different person for the by line manually.

The date the page was last published is showing at the top right.

This is what SharePoint can do out of the box. For any other features you would need to create a custom web part, for example with the SPFx development framework.

enter image description here

Upvotes: 0

Related Questions