Help topics

Make a model a settings page

A settings page holds one record for a model, such as site settings or a footer. You edit that record on its own page in the admin.

Before you start

  • You need the Administrator role. Only administrators can change a model.
  • A model exists. See Create a model.

Make the model a settings page

  1. In the Build section, select Models.
  2. Select the model.
  3. Select the Advanced tab.
  4. In the WordPress card, turn on Settings page. The row text reads "One entry only, like "Site settings" or "Footer"."
  5. Select Save changes.

Result: The model is listed under Settings pages in the side navigation.

Edit the values

  1. Under Settings pages, select the settings page.
  2. Fill in the fields.
  3. Select Save. Morphic shows the toast "Saved".

Result: Morphic saves the values in the settings page.

Set who can read and change it

Administrators can always read and change a settings page. For other people, set the rules in the Access tab of the model.

  1. Open the model.
  2. Select the Access tab.
  3. In the See entries row, select who can read the settings page.
  4. In the Edit row, select who can change it.

Each row has these columns: Everyone, Logged-in users, and one column for each role except administrator. Quick setup applies a preset to all rows: Public website, Members only or Private. You can also select the columns yourself. Private lets only administrators read and change the page.

Result: A user without access gets the error you may not read <model type>.