Page manager and version history

Page manager and version history

The builder is no longer tied to a single page. It knows which Web Portal the open page belongs to, lists every page of that portal, and lets you move between them, create new ones and change their settings without leaving the builder. It also keeps a version history for each page, so an earlier save can be viewed and restored.

Opening the builder

From How What opens
Web Portal record The Builder tab on the Web Portal record page The portal's home page. If no home page is set, the first page by name. If the portal has no pages, a Create your first page prompt.
Page record The Builder tab or the Builder button, as before That page, with the rest of the portal's pages available in the page manager.

The Web Portal Builder tab is the WebPortalBuilder Visualforce page. It forwards to the builder with the Web Portal id in the portalId parameter:

/apex/b3p__PortalBuilder?portalId=<webPortalId>
/apex/b3p__PortalBuilder?id=<pageId>

Setup after upgrading

Creating the first page

When the portal has no pages the builder shows a short form instead of the canvas. Enter a name and an optional title and click Create page. The page is created, linked to the portal, set as the portal's home page and opened in the builder.

The page manager

The top bar of the builder shows <portal name> / <page name>. Click it, or the pages button in the options panel, to open the page manager.

The list shows up to 2,000 readable pages of the Web Portal with its name, title and these badges:

Badge Meaning
Current The page open in the builder.
Home The Web Portal's Home Page (Home_Page__c).
404 The Web Portal's 404 page (Page_404__c).
Guest Guest User Accessible is checked.
Sub template The page is a reusable sub template.

Use the search box to filter by name or title.

Switching pages

Click Open on a row. The builder reloads on that page. If the current page has unsaved changes the browser asks for confirmation first, so save before switching.

Creating and editing pages

New page and Edit open the same form:

Field Page field
Name Name
Title Title__c
Sub template Sub_Template__c
Accessible to guest users Guest_User_Accessible__c
Disable caching Disable_Caching__c
Suppress the push notification prompt Suppress_Push_Prompt__c
Set as home page Sets the Web Portal Home_Page__c to this page

Rules applied when saving:

A page that is not linked to a Web Portal still opens in the builder. The page manager then lists only that page and offers no create or edit actions. Link the page to a Web Portal on the Page record first.

Pages are not deleted from the builder. Delete a page from its record in Salesforce.

Permissions

The page manager runs as the logged in user. It lists only the pages and portals the user can read, and creating or editing a page needs create or edit access to Page, edit access to the fields above and, for the home page, edit access to Web Portal. Guest users cannot call it.

Linking to portal pages

A link to another portal page is an href of #PageName. Any other value, such as https://example.com, opens as an ordinary URL. The builder fills the page name in for you:

  1. Select a link, a button or any other element that has an href.
  2. In the properties panel, click into the Link field. It suggests the pages of the Web Portal, with each page's title beside its name.
  3. Pick a page. The href is set to # followed by the page name, for example #Contact.

The field still accepts typed values, so external URLs and merge tags work as before.

Version history

Every save in the builder adds a new version to the files stored against the Page record. Version history lists those saves and lets you go back to any of them.

  1. Click the Version history button next to Save.
  2. The list shows each version with its number, date and time, the user who saved it and a note when one exists. The newest is marked Current.
  3. Click Load on a version. The builder shows that version of the page, including the configuration its standard components had at the time. A banner at the top reads Viewing version N from <date>.
  4. Inspect the page. Nothing has changed for portal users at this point.
  5. Click Restore this version (or Save) to make it the current version, or Back to current to return to the latest save.

Restoring never deletes anything. It saves the old content as a new version with the note Restored from version N, so the versions in between stay in the list and a restore can itself be undone.

What a version contains

File on the Page record Role In a restore
Template.b3p The editable page The selected version is loaded.
component_config.json Standard component configuration The version written by the same save is loaded with it.
Template_html.b3p The compiled page served to portal users Regenerated from the restored page when you save.

Page settings (name, title, guest access and the other fields in the page manager) are fields on the Page record and are not versioned.

Good to know

Troubleshooting

Symptom Cause and fix
The Builder tab on the Web Portal shows an insufficient privileges message The user has no access to the WebPortalBuilder Visualforce page. Assign Portals_Admin or add the page to the user's profile or permission set.
The Builder tab is missing on the Web Portal The org uses a custom Lightning record page. Add the tab as described under Setup after upgrading.
"Another page in this portal already uses this name" Page names are unique per Web Portal, ignoring case. Choose another name.
The page manager shows one page and no New page button The page has no Web Portal. Set the Web Portal lookup on the Page record.
Version history is empty The page has never been saved in the builder.
A loaded version shows components with default settings That version predates the component configuration file, or the save that produced it did not complete. Reconfigure the components, then save.