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
- In the Build section, select Models.
- Select the model.
- Select the Advanced tab.
- In the WordPress card, turn on Settings page. The row text reads "One entry only, like "Site settings" or "Footer"."
- Select Save changes.
Result: The model is listed under Settings pages in the side navigation.
Edit the values
- Under Settings pages, select the settings page.
- Fill in the fields.
- 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.
- Open the model.
- Select the Access tab.
- In the See entries row, select who can read the settings page.
- 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>.