Choose a property's source
A binding is a data connection you can reuse in several blocks. For example, selected records can feed both a table and gallery. Updating a description in GLAM updates the source; you do not need to copy that text into every page.
Connections can belong to page or section configuration. A section in a shared header or footer can keep its binding in the layout; pages using that layout read the connection without repeating it in Configure page. Connect its controls and results to that section scope and edit the connection in the layout. See shared bindings. A block property can use a fixed value, binding field or variable, depending on its control. For your first static composition, follow the text and image walkthrough; add dynamic data when the page needs it.
Create a small record selection
These configuration controls currently use Spanish labels: Configurar página (Configure page), Etiqueta (Label), Identificador (Identifier), Modelo (Model), Origen (Source), Selección manual (Manual selection), Query sobre modelo (Query on model) and Búsqueda sincronizable (Synchronisable search).
- In the builder, open Configure page and find Bindings. Add one with Label Featured items and Identifier
featured. - Under Model, find and select
glam.record. Under Source, select Manual selection. - In Resource list, use Search and select two test records. Check both titles and their order.
- Add a table or gallery inside a container. In its data configuration, select Featured items as the source binding. Choose the title field offered by the selector and configure a resource link.
- Choose Save draft, review it under Draft and history and use Accept and apply. Then reload and open the page without signing in. Permitted records should appear in the configured order and each link should open the matching record page.
If an expected field is missing, check the connection's model. If it appears while editing but not publicly, review the site's GLAM selection and permissions. Check resource access before using its data on a public page.
Query or search
| Source | When to use it |
|---|---|
| Manual selection | A fixed list chosen and ordered by the editor. |
| Query on model | An editor-configured query, such as records in one collection. |
| Synchronisable search | Text and filters visitors change, which can be kept in the URL. |
Search needs its controls and results connected to the same source. Follow the search walkthrough. Adding a text input does not turn a manual selection into a search.
Use one composition for several result types
With design permission and a selected site, you can connect one composition to search across different models. The list comes from compatible native models in the installation, including custom modules: it is not limited to pages and articles and does not require a programmed provider for each project. Offered types respect active modules and your read and search permissions. Use an authorized test page; do not change private pages' or courses' visibility to perform this check.
- Under Configure page → Bindings, create a connection with Source Synchronisable search and enable Buscar en varios tipos de contenido del sitio (Search several site content types). The connection uses
site.siteas the search service, not as every result's type. - Under Models included in search, use Filter models to find a key such as
glam.record, then select between one and eight available models. Pages are selected initially; other models are added only when you choose them. Search orders the combined set by relevance before pagination, rather than grouping separate windows for each type. This option does not add facets, arbitrary prefilters or sorting by fields from different models. - Connect the gallery or repeater to that connection. For a text property using its binding or current iteration, the selector lets you choose a field for each model. For example, choose
titlefor both pages and articles; another property can useexcerptonly for articles while leaving pages without a field. - Apply the block configuration and save the draft. Reopen the configuration: models and their fields should be retained. Selectors can offer fields even before any results match; they do not need to use the first record as a sample.
- While signed in as an editor, use Preview to test both result types, an empty search and each language. Every repeated item should retain its own data, even when two models share an ID. Removing a type's field leaves that value empty; it does not use another model's field.
- Review the draft's content and visibility under Draft and history. When ready, use Accept and apply and review the confirmation: it applies the whole draft, not just the search. Then reload the public URL without signing in and repeat the tests with data permitted for visitors. A private page must still require access; do not use a draft preview as an anonymous test.
Selecting a model does not change its permissions or publish it. Models directly owned by a site are narrowed to that site. A shared model without that ownership retains its native user, community or GLAM resource scope: selecting it does not assign its records to the site. Always check results without signing in before publishing. Two aliases of the same model do not create separate result types; do not combine a parent model and a subtype when they represent overlapping records.
When signed in as an administrator, the site bar's data shortcuts separate the search's authorized types, such as pages and articles; they do not open Sites just because site.site is the service. Each shortcut opens its model's administrative list, scoped to the site and your permissions. It does not exactly reproduce the public selection: it may include private drafts you can administer. Its count belongs to that list, not the search's combined total. If there is no compatible administrative action or site context, the list shortcut will be unavailable.
An image or link needs a compatible accessible field. Do not turn an isolated relation ID into another model's record or invent its address. Without a valid public destination, keep the result unlinked. If fields fail to load, check the site, connection and permissions before changing the design.
This search uses the search documents provided by each model. On PostgreSQL, pages and articles can include static prose from supported native blocks and HTML as well as their usual fields. Body text uses the current language and neutral text; a draft does not replace the current text until accepted and applied.
A signed project component contributes its own prose only when that version includes a compatible search declaration and remains authorized by the installation. The same check applies to a library reference: an existing name alone is not enough. Old packages do not gain this capability automatically. Component code, defaults, bound data, internal child blocks and the whole builder JSON are not included. Hidden, conditional or unproven rendering is excluded; this path does not add OCR either.
If changing a layout, shared definition or its authorization stops body matches, ask an administrator to check compatibility and rebuild documents through the normal module update. A new component version may be required; do not copy configuration into a text field to force matches. For faceted GLAM search, keep its dedicated connection: combined search does not add those facets. Saving the draft does not change the public version: changes reach it only after acceptance and application. A visual condition does not grant access to private pages or courses.
Metadata languages and presentation
You need an editable page with a resource binding and test metadata containing several values, for example one English value, two Spanish values and an untagged value. For a record page that changes with its address, first prepare the current-resource binding from the id parameter.
- Add a Text block and open Configure block → Content. Connect its content to the binding and select the entire metadata field. You can also select a subfield such as value, identifier or type. Displaying every value does not require a block for each position.
- Review Value language. Without a saved block choice, it inherits the policy under site Configuration → Internacionalización (Internationalisation). The initial policy keeps enabled site languages and untagged values.
- To display only Spanish values when the page is in Spanish, choose Page language only. Under Multiple values mode, select With separator and enter
·. You can also choose the first value, lines, bullets, a numbered list or a table and adjust the limit. - Choose Save changes and then Save draft. Review it under Draft and history and confirm Accept and apply before checking the public result. Reopen it and check the selection. Without signing in, check another resource and change the language. With the sample data, the Spanish page should display its two values with the separator and the English page its single English value. A field with no values in the selected language should stay empty.
| Value language | What it keeps |
|---|---|
| Site languages and untagged | Values in enabled site languages and values without a language tag. |
| Page language and untagged | Current-language matches and untagged values in their original order. |
| All, with and without language | Every value, retaining order and duplicates. |
| Page language only | Current-language matches; empty when none match. |
| Untagged only | Values with an absent or blank tag, or und. |
| Automatic with fallbacks | Current language, then site default, then the first nonempty value. Keeps all values when none have a language tag. |
Language selection happens before converting and presenting values. The format decides whether to display the first or several; it preserves order, duplicates, zero and false. Resource references are converted through their model; text, URIs and vocabularies retain their local meaning. Structured schema values use their public presentation and may stay empty when it omits them; do not use internal subfields to try to display private content.
A saved block choice takes precedence over the site. Use site setting removes that override while keeping the format and limit; apply the block settings, save the draft and accept it after review. If text is missing, first review the selected language and value tags, then resource access. A field offered by the selector may be empty in a particular record.
When converting a GLAM resource to text or a link label with an explicit site, an existing title in the current language or without a language is preserved. If it is empty, a usable title is sought in that site’s default language, then the first usable title in the configured title field. Hidden values are excluded. This display fallback does not change the catalogue title, search or export. To check it, try a record whose title is only available in another language.
In the Metadata block
The Metadatos (Metadata) block also inherits the site’s current language policy. Under Value language, choose one of the six options in the table for that block. Use site setting removes the override. Apply the block settings and save the draft; after reviewing and accepting it, check each language. An explicit choice remains in place if the site setting later changes.
Literal 0 and false are visible values across stacked, table, inline and grid layouts; empty literals are omitted. If a value is missing, check the language mode, its content, language and visibility in the source before changing the layout.
Variables and parameters
A variable holds a value controlling a page or section. It can have a fixed value or read a public URL parameter. A path parameter identifies a resource, such as a record page's id; a query parameter can preserve search or the active results page.
Define parameters in Configure page with their type and test values. For a prepared dynamic record page, use a real accessible record and change its parameter: the title and link should match the new record. Also review routes and 404 responses.
Single-value selectors cannot use a parameter marked Multiple. For a page number, use a single numeric parameter. In a repetition, Iteration index (n) starts at 1 and belongs to the nearest repeated item; it is not the record ID.
Insert variables in text
In rich text fields that support template variables, open the Insert expression icon beside the field actions. The assistant brings together the data source, field selection and insertion options.
- Under Data source, choose the binding, variable, parameter or model root available for the field. Then select the data field you need. When using a binding with several records, also check the record number.
- Under Insert as, choose Variable to show a value, Condition · If to prepare conditional content or Loop · For to iterate over a list.
- Review the proposed expression and choose Insert to add it to the assistant's draft. Complete or adjust the fragment before choosing Apply to insert it in the text. Cancel closes without inserting the draft.
- Save the configuration and page draft. Check the result in preview with real data, including an empty source. To update the public page, review the draft and use Accept and apply.
Insertion prepares the expression; a condition or loop may need you to complete its content. If the expected source is missing, review the page and section bindings or variables, or the model associated with the field.
Visibility and repetition
A visibility condition can hide a piece when data is empty or according to language or mode. Repetition uses the same composition for every item in a list. Within a repetition, configure title, image and link from the same item; a fixed connection can open the first record every time.
To show a piece according to facets in its section, open its visibility conditions, choose Número de facetas visibles (Number of visible facets) and select Bloque de facetas de esta sección (Facets block in this section). For example, compare using mayor que (greater than) and value 0. The count respects that block’s configured fields and minimum match count, even when it is hidden. Save the draft, review it under Draft and history and confirm Accept and apply. Test searches with and without facets.
While data is loading or an error occurs, the builder indicator is grey and this condition keeps public content available; it does not confirm the absence of facets. If the block still has active filters, a containing piece can remain visible so visitors can use Limpiar (Clear) to recover the search. With the checkbox disabled, the optional text appears inside the panel. With Ocultar el bloque cuando no haya facetas (Hide the block when there are no facets) enabled, it replaces the empty panel with its text or, if that text is blank and there are no active filters to clear, hides the entire public block without reserving space. The hidden block keeps detecting facet recovery and retains its editable builder marker; see the facets block’s message and hiding options.
Hiding a block does not restrict resource access. Protect data through permissions and publication on its source screens. To check a dynamic composition, try a valid resource, an empty list, another language and a resource without access. Start with the URL and data source before changing appearance.