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
- In the site Pages, create “Record” with slug
record, public access and the site layout. Save the page and open Edit in builder. - In Configure page, enable Usar patrón de ruta (Use route pattern) and enter
record/:idas the pattern. Keeprecordas the slug, without colons. - 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. - Under Bindings, add “Current record” with identifier
current_record, Modeloglam.record, Origen Query sobre modelo (Query on model) and mode Registro único (Single record). Useidas the search field. Add a parameter that reads URLidinto destination fieldid. Save the page settings. - Add a section, a container and a Text block. Under Configure block → Content, connect the content property to the
titlefield of the Current record binding. Click Save changes. Add another Text block and connect its content to thedescriptionfield of the same binding; apply the changes. - 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.
- 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. - 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 codeglam.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. - Repeat these steps for “Collection”: slug
collection, route patterncollection/:id, model bindingglam.collectionand 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
- 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, modelglam.record, Origen Búsqueda sincronizable (Synchronisable search), parametersqandorder, 25 results per page. - 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. - 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 fieldstitleandid. If the field picker opens a relation, click Raíz (Root) in its path to return to the record fields. - 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.
- 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
- Open the site under Websites → Sites and enter its GLAM area.
- Disable All resources when the site should offer only this collection.
- 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.
- 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
- Open the search page in the builder. Check that search input, filters and results use the same GLAM search binding.
- Check that it searches records, not pages or users. Review card or row destinations using the result ID.
- For a collection selector, use option model
glam.collection, valueid, labeltitleand result fieldcollection_id. - 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.
- 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.
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.