Skip to content

Publish a collection with record pages and search

Prepare two records, limit the site catalogue and check search and record pages without a session.

Preparation

You need a collection with two test records with distinct titles and images, catalogue and site permissions, and a site with an editable layout. For archives, the wizard’s Portal de archivo (Archive portal) template can create the search and record pages; it requires its modules and theme. For another project, use Sitio básico neutral (Basic neutral site) and prepare record pages and search using the following steps. An empty page does not create them automatically.

Follow create collections, records and media. Review each resource’s title, description, dates and rights. In every collection, record and media editor, use the eye button Toggle Privacy to make it public and click Save. Reopen to check. A visible collection does not automatically publish all its records or files.

Prepare detail pages in a neutral site

  1. In the site Pages, create “Record” with slug record, public access and the site layout. Save the page and open Edit in builder.
  2. In Configure page, enable Usar patrón de ruta (Use route pattern) and enter record/:id as the pattern. Keep record as the slug, without colons.
  3. Under Configurar página → Parámetros (Configure page → Parameters), add a required numeric parameter named id. Use a real test ID for preview; do not set the first record as a default for every visitor. Save the settings.
  4. Under Bindings, add “Current record” with identifier current_record, Modelo glam.record, Origen Query sobre modelo (Query on model) and mode Registro único (Single record). Use id as the search field. Add a parameter that reads URL id into destination field id. Save the page settings.
  5. Add a section, a container and a Text block. Under Configure block → Content, connect the content property to the title field of the Current record binding. Click Save changes. Add another Text block and connect its content to the description field of the same binding; apply the changes.
  6. In the same container, add Visor universal (Universal viewer) and open Configure block. Under Origen de medios → Binding de medios (Media source → Media binding), choose Current record and Full record. Keep Tipo: Automático (Type: Automatic) and Visualización: Visor completo (Display: Full viewer); do not enter a fixed URL or media item. The viewer will load media for the record identified by the address. Choose Save changes, then Save draft and, after review under Draft and history, confirm Accept and apply.
  7. Use the preview parameter to check both test records. Check that the title, description and image change when you change the id. If the image is missing, check that the media and its attachment are public and belong to that record.
  8. Under site Default pages, create an active rule: Record model (glam.record), Record page, order 10, empty domain and same-tab opening. In the Model picker, search the title Record: the binding uses code glam.record, but that code is not this list’s searchable title. Leave Path/parameters empty to derive it from the page, without a fixed ID. Save the rule.
  9. Repeat these steps for “Collection”: slug collection, route pattern collection/:id, model binding glam.collection and a rule for model Collection. Save the page draft and accept it after review; save the rule in its administrative form.

For Portal de archivo (Archive portal), inspect the template’s detail pages and rules before creating others. Check two record links: they must load different data. A correct parameter without connected blocks can still display an empty page.

Create search with results

  1. Create the “Search” page with public access, check that the site is also public for the signed-out test and open its builder and add a page binding “Catalogue records”, identifier records, model glam.record, Origen Búsqueda sincronizable (Synchronisable search), parameters q and order, 25 results per page.
  2. Add a Search section. Open its wizard, choose model glam.record and binding records. If the model is missing, check that the binding was saved. Start with free text only and generate the section.
  3. The wizard leaves a Results area. Insert a Contenedor simple (Simple container), then add a Table inside it. Under Data, use Binding mode and page Rows binding records. Add columns with fields title and id. If the field picker opens a relation, click Raíz (Root) in its path to return to the record fields.
  4. Under Entire row link, enable the row link, Model mode and Automatic model source, in the same tab. This uses default page rules; a fixed link would always open the same record.
  5. Check that input and results use records. For this first search, disable any sort, facet and pagination extras you have not yet configured. Save the draft and confirm Accept and apply after review. Add Search under site Menu items with the page as destination, following pages and menu. If the neutral layout has an empty header, add a Menu block there before checking the public link.

A search container with Data → Search binding is a separate optional component. The wizard-generated section connects its blocks to the page binding and does not use that control.

Limit what the site offers

  1. Open the site under Websites → Sites and enter its GLAM area.
  2. Disable All resources when the site should offer only this collection.
  3. In the Collections tab, search for the collection and click that result’s + (Add item) button. Check that it appears in the site collections and enable or retain Include collection records when its records should be offered. These changes persist as you make them.
  4. Review default pages for collection and record. Use Open Public from two resources to check actual links.

Site scope limits resources; permissions and publication states still apply. Review the model rules under Default pages to check how its links are generated.

Open both test record pages without signing in. Each should show the title of the record you selected; the two titles should be different. If both show the same record, review the id parameter and the Current record binding.

Review search and records

  1. Open the search page in the builder. Check that search input, filters and results use the same GLAM search binding.
  2. Check that it searches records, not pages or users. Review card or row destinations using the result ID.
  3. For a collection selector, use option model glam.collection, value id, label title and result field collection_id.
  4. Save the draft and confirm Accept and apply after review. Open search without a session. Search for a sample title, open its record and return to results.
  5. Find the second record and confirm its page displays its own data. Test clearing filters, no matches and mobile.

See synchronisable search to configure blocks and bindings to understand their data.

Sample search with two public records and their pages. Search for square or harbour, open the result and return to search.

Check limits before announcing

Test a valid record page, a nonexistent ID and a resource outside the site or without public access. A dynamic route such as archivo/registro/:id needs the resource’s identifier. Check that the blocks show that resource’s data when you open another record.

Check language, empty fields, images, related links and return to results. For a missing expected resource, review membership, publication and permissions before expanding scope to the entire catalogue.

Practise with sample data

Configure page options: content, parameters, bindings and SEO.
Sample default-page rule showing the glam.record model, detail page and path.
Sample column field selection using a records binding.