I’ve had a look at dynamic team page example (which is for a module, I’m doing a page template, not sure if that makes a difference).
I need to change my DB filter from this:
{% if request.query_dict.category in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20"] %}
{% set queryparam = queryparam ~ "&category__contains="~request.query_dict.category|urlencode %}
{% endif %}
To this (based on the dynamic team example):
{% if request.path == "/en/products/marketplace/accounting" %}
{% set queryparam = queryparam ~ "&category=1" %}
{% endif %}
//etc for all categories
However, that 404s. The filtering works with fine using query strings, but I’ve been told we need to use a URL path instead.
I know I could do the same thing splitting up the DB into one parent referencing category child tables, but the DB has 20 categories and several of the rows have mulitple categories, which would create duplicate pages under different categories. So that’s not ideal.
Any help would be much appreciated