This commit is contained in:
deploy-bot committed 2026-12-04 16:52:00 +00:00
commit 22f164046e
286 files changed
+19176

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
# Building pages and choosing photos
For the people who look after a site with this manager, and for whoever sets it up. The same words are in the tour that a new account sees
(the cross closes it; "Show the tour" in the menu opens it again).
## Who shows the website
On the settings screen (only in the whole manager, with the right `settings.manage`), group **The website**:
| Setting | What it does |
| --- | --- |
| **Who shows the website** | *The website itself*: the site has its own code and draws the pages (the usual choice). *This manager*: the manager draws every page made of blocks at its own address, nothing else is needed. *Another website reads it (headless)*: the pages go out as data for a website or app elsewhere. |
| **Show the real page next to the editor** | While building a page you see it on a phone, tablet and computer before you save. |
| **Let another website read the pages** | The pages as JSON at `/api/manager/pages/{slug}`. Always on in headless mode. |
Switching does not delete anything: a page is the same whoever draws it.
## The simple face (for people who are not webmasters)
An account in the **simple** face sees the same page editor with plainer words and fewer buttons:
- "The parts of your page", "Add something to the page"; every block type has a sentence of its own ("A text with a picture next to it").
- A part is **taken off the site** (and put back) instead of deleted; there is no drag-and-drop, no duplicate, no red delete. The arrows move a part.
- How a part looks (width, background, …) is folded away under "Change how it looks".
- A photo is **picked, not managed**: "Choose a photo" opens the phone's own photo picker (or the camera); several at once for a gallery. The photo is turned upright and made smaller in the browser (longest side 2400 pixels), which also drops where and when it was taken. There is no file name or address to see.
- Fields marked `advanced` are left out.
A field or block type of your own gets plain words with `'simple' => ['label' => '…', 'help' => '…']`.
## Which photos do I need?
| Where | Shape | At least | Tip |
| --- | --- | --- | --- |
| Big opening (hero) | wide (landscape) | 1600 px across | the edges are cut to fit: keep what matters in the middle |
| Text with picture | landscape or square | 1000 px across | any sharp photo |
| One picture | any | 1200 px across | shown as wide as the part allows |
| Several pictures | any | 800 px across each | shown as squares or a grid; pick them in one go, the first comes first |
| Before and after | same spot, same angle | 800 px across | take both from the same place |
A phone photo is big enough for all of these. Nobody has to resize anything; a photo of up to 40 MB is accepted (`manager.media.max_file_mb`), and the library has room for `manager.media.max_total_gb`.
The tour's own pictures (the mascot) live in `manager.mascot.path`; the names are `welcome`, `point`, `calm`, `write`, `photos`, `pages`, `undo`, `oops`, `party`, `profile` and `peek`, as 512 × 512 `.webp` or `.png` with a transparent background. This release needs no new ones; a missing one is a paw.
## For the person who sets it up
1. `manager.frontend.mode` (`MANAGER_FRONTEND`): `site`, `package` or `headless`. In `package` mode `manager.frontend.layout` is the Blade view (`manager::public.layout`, publish and change it, or point it at a view of your own with `$title`, `$description`, `$blocks`, `$css` and `$slug`).
2. Give a page definition `'blocks' => true` and give the accounts that build pages `pages.layout` (and `pages.edit`, `media.view`, `media.upload`).
3. Switch on the preview with `manager.blocks.preview.enabled` and set its address if the page is not at `/{slug}`.
4. Look at the page as an account in the simple face: press "Simple view" in the menu. If you cannot do it without help, so cannot the owner.
+37
View File
@@ -0,0 +1,37 @@
# Two-step login
Two-step login means you type a code of 6 digits from an app on your phone after your password. Someone who only has your password cannot get in. This page is for the people who use the manager, and for whoever sets a site up.
## If you use the manager
**Setting it up** (about two minutes): open *My account*, scroll to *Extra safe login*, press *Set up* and follow the steps.
1. Install an **authenticator app** on your phone. Google Authenticator, Microsoft Authenticator and 2FAS all work, and so does the one in a password manager.
2. Put your account in the app. On a computer, **scan the picture** with the app. On the phone you are using right now, you cannot scan your own screen: press **Open in the app** instead, and the app opens by itself. If neither works, or you keep your codes in a **password manager such as Bitwarden**, use the **setup key under the picture**: add a key (or secret) by hand, paste it, and leave the other options as they are (time based, 6 digits). The key is shown in groups of four to be easy to read; the *Copy the key* button copies it in one piece.
3. Type the 6 digits the app shows, and press *Turn on*.
4. You get **eight recovery codes**. Save them somewhere safe, for example in a password manager (the *Download* button makes a text file). Each works once, instead of the 6 digits, if you lose your phone. They are shown only this once.
From then on, after your password the manager asks for the 6 digits, once for each time you log in. The app shows a new code every 30 seconds; a code works once.
**Lost your phone?** On the question for the code, press *I lost my phone* and type a recovery code. Then set it up again with the new phone (*My account*: *New recovery codes* gives you fresh ones). No recovery codes either? Ask someone who manages accounts to reset your second step; you set it up again at your next login.
## If you are a super admin
Two-step login is **required** for super admins. You get **30 days** from the first time the manager sees you without it. A yellow line at the top of every screen counts the days down. When the days are over, the manager shows nothing but the screen to set it up, until you have.
You cannot turn it off once it is required of you.
## Groups and accounts
- A group can **require** it: on the group form, tick *Requires two-step login*. Everyone in that group then has the same 30 days. An account that is in several groups has to as soon as one of them says so.
- Everyone else can switch it on for themselves, and off again (with their password and a code).
- On the accounts screen you see who has it. Someone who manages accounts can **reset** the second step of an account they outrank, for a lost phone; the account sets it up again at its next login. A reset does not give the 30 days back. Nobody resets their own that way.
- The last super admin who has lost everything: `php artisan manager:two-factor-reset [email protected]` on the server.
## If you set a site up
- It is a gate of the manager, not part of a login, so it works with your own login as well as the manager's. The screens of your own site are not protected by it.
- `config/manager.php`, `two_factor`: `enabled` (env `MANAGER_TWO_FACTOR`, set `false` to switch the whole feature off), `super_admins` (`MANAGER_TWO_FACTOR_SUPER_ADMINS`), `grace_days` (`MANAGER_TWO_FACTOR_GRACE_DAYS`, 30) and `issuer` (the name the app shows; the name of the manager by default). It is not on the settings screen on purpose.
- **When you upgrade**, every super admin starts its 30 days at its next visit. Tell them first.
- It needs the table `manager_two_factor` and the column `groups.require_two_factor`, which the migrations add (a site that has its own `groups` table keeps it; the column is added).
- The reasons and what is not built (trusted devices, SMS, passkeys) are in ADR-0016.