INTRANETS
show content owners page status using Column Formatting
We have found it useful for page owners to easily see the published status of their pages. Learn how to easily format the column using JSON code.
Show the published status of a SharePoint page using column formatting.
We added the Version column to our Site Pages libraries then formatted it to clearly show our page owners the published status of their pages. We have had such good feedback from our SharePoint Intranet authors – who tell us that previously that had edited or created content and not actually republished it.
Making the page published status stand out and be clearly seen has supported a number of our intranet authors. It is such a simple enhancement to support the quality of your intranet content and the page management process that your content owners follow.
You can see the image below showing the Version column and the options –
– Published
– Published with Draft
– Draft with NO published version
Here’s how to set it up:
- In the Site Pages library view click Add column
- click Show or Hide columns
- choose Version
- click Apply
Now format the Version column so we can add the code to change the formatting of the field based on the published state of the SharePoint page.
- Hover of the heading of the Version column
- select Column Settings
- select Format this column
- on the formatting pane that opens select Advanced mode
Delete the default code displayed in the formatting box shown above and paste the code shown below there instead.
Select all the code shown below then Paste into the Advanced formatting box
Save your changes and return to the Site Pages library view – maybe consider moving the version column a little closer to the start to be more accessible by your intranet content owners.

Campbell Smythe
Author
I am an intranet specialist working in SharePoint and other Microsoft 365 technologies.
Recent articles
SharePoint: SharePoint Admin Shortcuts Chrome Extension
Use a browser extension that gets you to key SharePoint admin pages quickly. No more browsing through SharePoint menus. Fully configurable – this browser extension gets you there fast.
SharePoint: Page Checker Chrome Extension
SharePoint Page Checker is a free Chrome extension that scans your SharePoint pages to identify potential issues before they impact your users. Think of it as having a quality assurance expert review every page with just one click.
SharePoint: Update original First Published Date of a News Post
I recently needed to update a handful of SharePoint News Posts. The News Posts had been created by copying existing posts and had kept the original FirstPublishedDate, which meant that the posts were being displayed in order based on the original date.
Here’s a script you can modify and use in order to modify the FirstPublishedDate field on those posts.
SharePoint: Using Microsoft Stock images in SharePoint intranets
Are there any attribution requirements to using Microsoft’s Stock Images found in SharePoint Modern? This is what I learned when wanting to stay in line with copyright requirements…
SharePoint: Convert Pages to News Posts and News Posts to Pages
I needed a solution which would make it easy for our intranet team to make changes to the Promoted State of Pages and News Posts in SharePoint SitePages.

