Getting Started

Last updated on
30 January 2021

Installation

Simple Page Manager does not have any external dependency, so you may download the module directly from the project page, but using Composer is recommended.

Using Composer

composer require drupal/simple_page_manager

Now you can enable the module through the user interface or using Drush:

vendor/bin/drush en simple_page_manager

Permissions

To be able to manage pages (create, edit, layout, delete) you need the Administer pages (administer pages) permission. If you have an Administrator role you don't need to do anything here, but if not you should make sure the role that should be able to manage page has that permission.

The permission should only be given to trusted users.

To be able to manage the layout, the user must have the Configure any layout (configure any layout) permission.

To be able to provide a menu link for your page, the user must have the Administer menus and menu links (administer menu) permission.

Create a page

From the administration menu, go to Structure -> Pages

Pages UI

Press the Add page button.

Add page

Fill in the details and press Save.

Page UI

You will be redirected back to the pages listing where you can see your newly created page. Now press the Layout button in the Operations column for that page.

Page Layout Builder UI

Here you can add sections and blocks, similar to how you use the Layout Builder UI on content. Let's add a simple One column section with the Powered by Drupal block and then press Save layout.

My Page

Success! You have now created your first page.

Now that we have a page, let's put that page in the menu. From the administration menu go Structure -> Pages.

Press the Edit button for your page.

Open the Menu settings, check the Provide a menu link checkbox, enter the menu title and select a menu. Now press save.

You will be redirected back to the page listing, click on the My Page (name column) to be navigated to your page. You can now see the menu link showing up.

You can provide a menu link directly when creating the page, by following the same steps during the creation.

Access

You can control the access to whom can access the page. Following the same steps as above, navigate to the Edit page of your page.

 

Open the Access settings, select your Access type and the following option presented to you. In the screenshot above we've selected the Role access type and that requires you to select a role that only should be able to access the page.

Press save.

You can set the access settings directly when creating the page, by following the same steps during the creation.

Help improve this page

Page status: No known problems

You can: