new web page

This block is part of the web group and was last modified in core v15.0.1.

new web page v15.0.1

A server-rendered web page on the given URL. Its flow ends in web render; buttons and forms on the page call this blueprint's on web action blocks and get back only the parts of the page that changed.

Out pins 4 + flow
  • flow
  • connection httpconnection

    The request, for the httpconnection blocks (cookies, headers, ...).

  • params object

    The :name segments of the page URL.

  • query object

    The query string.

  • language value

    The language this page renders in.

Entry block of a server-rendered web page, routed by its `event` field (the URL path without leading slash, `:name` segments captured into params; `l10n` [{language,url}] adds per-language URLs, each forcing its language and listed as hreflang alternates). `scopes` gate it like state_page: ["*public"] for an open page, no scopes = dev only. A GET runs this flow, which should reach web_render. A POST from the browser runtime or a plain form with field `_action=<name>` runs the web_action named <name> in THIS blueprint instead (never this flow). Out-pins: connection (httpconnection, works with every httpconnection_* block), params (object of URL params), query (object), language (resolved page language). Answering through httpconnection_set_* or web_redirect instead of web_render is allowed. If the flow ends without any answer the request gets a 500 naming the missing web_render.

website
web site
html page
landing page
webshop

new web page answers on the URL in its event setting, for whoever its scopes admit. Its flow leads to web render, which takes the page's connection and answers with the finished HTML. Three value blocks hold the template, the title and the description here. A :name segment of the URL arrives on the params out pin and the query string on query. A page with no scopes opens for developers only.

Studio canvas example for the new web page block: a page on its own URL.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v15.0.1.

  • v15.0.1: block added in this release.

Back to web Return to the main group to view all sub-groups Back to web pages Return to the group to view all blocks within this group