Skip to main content
Question

Marketplace. Latest assets on front page

  • January 9, 2026
  • 0 replies
  • 8 views

danny.oneill

We are evaluating our move to the marketplace experience and support have been wonderful in helping achieve some of our goals that we’ve always wanted.

One, is to have a couple of feeds on the front page showing the latest datasets but also latest publications (a new asset category we have created).

Supports suggestion was to setup a couple of new contexts fed from a dataset of datasets. Which weve done and got so far but realised a dataset of datasets is just that. datasets only. Not assets. Also looking at the API I cannot see a way to actually query the asset catalogue. 

Question is: Has anyone successfully implemented a feed of various assets powered by the catalogue itself and not having to maintain a separate dataset? 

Attached is my current code block that reads from a dataset of datasets and incorporates the suggestions from support. Although the refine.category doesnt work as dataset of datasets doesnt include anything but datasets and also no category. Also the Asset slug wont work as there isnt one in a dataset.

<div ods-datetime="now">
<section class="container" role="region" aria-labelledby="latest-datasets-heading">
<ods-dataset-context context="ctxdata"
ctxdata-dataset="domain-datasets-catalogue"
ctxdata-parameters="{'refine.category':'Data','sort':'modified'}">
<div class="latest-section">
<div class="latest-section-header">
<h2 id="latest-datasets-heading" class="latest-section-title">
<img class="rods-picto rods-picto--medium" src="/picto/mingcute:coin_2_line.svg/?color=%23864192" alt="" aria-hidden="true">
Latest Datasets
</h2>
<a href="/explore/?orderBy=updated_at+DESC&refines=category%3AData" class="latest-section-link">
View all datasets
<img class="rods-picto rods-picto--small" src="/picto/mingcute:arrow_right_line.svg/?color=%23864192" alt="" aria-hidden="true">
</a>
</div>

<div class="row row-equal-height"
ods-results="items"
ods-results-context="ctxdata"
ods-results-max="3"
role="list"
aria-label="Latest datasets">
<div class="col-md-4" ng-repeat="item in items" role="listitem">
<a href="/explore/assets/{{item.fields.slug}}" class="dataset-card">
<div class="dataset-card-header">
<div class="dataset-card-themes-container">
<div class="dataset-card-theme" ng-repeat="theme in item.fields.themes.split(';')">
<ods-theme-picto theme="{{ theme }}" class="dataset-card-theme-picto" aria-hidden="true"></ods-theme-picto>
<span class="dataset-card-theme-label">{{theme}}</span>
</div>
</div>
</div>
<h3 class="dataset-card-title">
{{item.fields.title}}
</h3>
<div class="dataset-card-description">
{{item.fields.description}}
</div>
<div class="dataset-card-footer">
<span class="dataset-card-date" ng-if="item.fields.modified">
{{ daysDiff = (now | momentdiff : item.fields.modified : 'days') ; "" }}
<img class="rods-picto rods-picto--small" src="/picto/mingcute:time_line.svg/?color=%23999999" alt="" aria-hidden="true">
<span ng-if="daysDiff == 0">Updated today</span>
<span ng-if="daysDiff == 1">Updated yesterday</span>
<span ng-if="daysDiff > 1 && daysDiff < 30">Updated {{daysDiff}} days ago</span>
<span ng-if="daysDiff >= 30 && daysDiff < 60">Updated about a month ago</span>
<span ng-if="daysDiff >= 60">Updated {{ item.fields.modified | date:"dd/MM/yyyy" }}</span>
</span>
</div>
</a>
</div>
</div>
</div>
</ods-dataset-context>
</section>
</div>