Show data from a data source in a block
On this page
Connect a text to a field from a data source, or repeat a design for every record with a Collection, including what visitors see when there is no data.
Plan: Free Visual Builder package. The Client Craft offers source works on all plans
Data sources bring values your developer provides, such as service names, opening hours or price options, into the page. You choose the source and field; the site fills in the current value when the page is shown, in the page's language. There is no code to write in the editor.
Before you start #
- Your developer has registered at least one data source. Without one, the editor says "No public data sources are registered for this website installation. You can keep using static text." See Add a public data source to the Visual Builder.
- The page's grid allows the Visual Builder Text and Collection blocks. An administrator adds them once in Settings › Data types: open the Block Grid, Add block and pick Collection and Text (they come with the package
ClientCraft.VisualBuilder.Umbraco). Allow them at the root and in the areas where editors may use them.
Connect one text #
- 1Select the text blockSelect a Text block on the canvas and find its Text source field.
- 2Choose Connect dataSwitch from Static text to Connect data.
- 3Pick the source and fieldChoose the Data source, then the Field. The editor confirms the link, for example "Connected to Agency public service (example) → Service name".
- 4Save and previewSave the page. The text now shows the field's current value.
Repeat a design for every record #
- 1Add a CollectionInsert a Collection block and choose its Collection source. Only sources that return a list of records are offered.
- 2Design one itemBuild the card once inside the Collection's Item template area. Connect the texts inside it to fields of the same source: they show the value of each record in turn ("current collection item").
- 4Let visitors filter (optional)Under Visitor filters, select Add filter, choose a text field and a label (up to 120 characters). With no filters, all records are shown.
Statuses you may see #
| Status | Meaning | What to do |
|---|---|---|
| Value shown | The source answered | Nothing |
| Empty | The source has no value or no records | Design the empty state |
| Unavailable | The source didn't answer in time, failed, or doesn't serve this page (for example in preview) | Design the unavailable state; check the live page |
| Not configured | The connection points to a source or field that no longer exists | Choose the source and field again, or switch back to Static text. Your text is kept |
NoteA source must answer within two seconds for each page view. A slow or failing source shows as Unavailable; it never breaks the page.
What happens next #
Developers: Add a pricing table backed by a data source.
Was this article helpful?