Files
laravel-manager-packagist/docs/guide/building-pages.md
T
2026-12-04 17:50:18 +00:00

3.8 KiB
Raw Permalink Blame History

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.