coderedcms
coderedcms copied to clipboard
Get all selected classifiers in an article
I would like to get the classifier terms that are selected in an article. How can I achieve this?
page.classifier_terms
will give you a ManyToMany containing all of the classifier terms of that page. So in your template you could do something like:
{% for term in page.classifier_terms.all %}
<span>{{ term.name }}</span>
{% endfor %}