Not sure what you mean by content type, but if you are talking about a model group, I have this job
{% with page.object_list as results %} {% regroup results|dictsort:"verbose_name_plural" by verbose_name_plural as grouped_objects %} {% for ct in grouped_objects %} {{ ct.grouper }} {% for result in ct.list %} <p> <a href="{{ result.object.get_absolute_url }}">{{ result.object }}</a> </p> {% endfor %} {% empty %} <p>No results found.</p> {% endfor %} {% endwith %}
source share