<div class="min-h-[300px] bg-grey-50" id="listing">
<div data-vue-module="ContentListing" data-root-nodes="1073,1023" data-search-configuration='{"id":1234,"resultsPerPage":12,"listingType":"4 Column List","paginationType":"Load More","apiUrl":"/front-end/mock-json/articles/list.json","fieldFilters":[{"label":"Topic","aliases":"topics","filterType":"Dropdown","source":[{"name":"Contracts","tagName":"Contracts","id":1234},{"name":"Employee Experience","tagName":"Employee Experience","id":1235},{"name":"Employee Relations and Trade Unions","tagName":"Employee Relations and Trade Unions","id":1236},{"name":"Employment and Workforce","tagName":"Employment and Workforce","id":1237},{"name":"Equality and Pay Gaps","tagName":"Equality and Pay Gaps","id":1238},{"name":"Health, Safety and Wellbeing","tagName":"Health, Safety and Wellbeing","id":1239},{"name":"JNCHES and Framework Agreement","tagName":"JNCHES and Framework Agreement","id":1240},{"name":"Pay and Reward","tagName":"Pay and Reward","id":1241},{"name":"Pensions","tagName":"Pensions","id":1242}]},{"label":"Type","aliases":"type","filterType":"Dropdown","source":[{"name":"Publication","tagName":"Publication","id":2001},{"name":"Stakeholder Briefings","tagName":"Stakeholder Briefings","id":2002},{"name":"Consultation Responses","tagName":"Consultation Responses","id":2003}]},{"label":"Publication date","aliases":"publicationDate","filterType":"Dropdown","source":[{"name":"Last Month","tagName":"Last Month","id":3001},{"name":"Last 6 Months","tagName":"Last 6 Months","id":3002},{"name":"Last Year","tagName":"Last Year","id":3003},{"name":"All Time","tagName":"All Time","id":3004}]},{"label":"Search","aliases":"nodeName","filterType":"Free Text","source":[]}]}'></div>
</div>
{% set hiddenFilters = hiddenFilters or [] %}
{% set allFilters = [
{
label: "Topic",
aliases: "topics",
filterType: "Dropdown",
source: [
{ name: "Contracts", tagName: "Contracts", id: 1234 },
{ name: "Employee Experience", tagName: "Employee Experience", id: 1235 },
{ name: "Employee Relations and Trade Unions", tagName: "Employee Relations and Trade Unions", id: 1236 },
{ name: "Employment and Workforce", tagName: "Employment and Workforce", id: 1237 },
{ name: "Equality and Pay Gaps", tagName: "Equality and Pay Gaps", id: 1238 },
{ name: "Health, Safety and Wellbeing", tagName: "Health, Safety and Wellbeing", id: 1239 },
{ name: "JNCHES and Framework Agreement", tagName: "JNCHES and Framework Agreement", id: 1240 },
{ name: "Pay and Reward", tagName: "Pay and Reward", id: 1241 },
{ name: "Pensions", tagName: "Pensions", id: 1242 }
]
},
{
label: "Type",
aliases: "type",
filterType: "Dropdown",
source: [
{ name: "Publication", tagName: "Publication", id: 2001 },
{ name: "Stakeholder Briefings", tagName: "Stakeholder Briefings", id: 2002 },
{ name: "Consultation Responses", tagName: "Consultation Responses", id: 2003 }
]
},
{
label: "Publication date",
aliases: "publicationDate",
filterType: "Dropdown",
source: [
{ name: "Last Month", tagName: "Last Month", id: 3001 },
{ name: "Last 6 Months", tagName: "Last 6 Months", id: 3002 },
{ name: "Last Year", tagName: "Last Year", id: 3003 },
{ name: "All Time", tagName: "All Time", id: 3004 }
]
},
{
label: "Search",
aliases: "nodeName",
filterType: "Free Text",
source: []
}
] %}
{% set filteredFilters = [] %}
{% for filter in allFilters %}
{% if filter.aliases not in hiddenFilters %}
{% set filteredFilters = (filteredFilters.push(filter), filteredFilters) %}
{% endif %}
{% endfor %}
{% set searchConfiguration = {
id: 1234,
resultsPerPage: 12,
listingType: "4 Column List",
paginationType: "Load More",
apiUrl: "/front-end/mock-json/articles/list.json",
fieldFilters: filteredFilters
} | dump %}
<div class="min-h-[300px] bg-grey-50" id="listing">
<div data-vue-module="ContentListing" data-root-nodes="1073,1023" data-search-configuration='{{ searchConfiguration }}'></div>
</div>
{
"siteName": "UCEA"
}
No notes defined.