commit 2a32f17b0b7e2ec1b5c680c91634c33e73388527 Author: Kostas Papadimitriou Date: Tue Jul 10 10:47:34 2012 +0300 Cloudcmsfaq services as primary category Use cloudcmsfaq service model as the primary category of a question diff --git a/cloudcmsfaq/templates/cloudcmsfaq/archive.html b/cloudcmsfaq/templates/cloudcmsfaq/archive.html index 9230a9f..c8e3a44 100644 --- a/cloudcmsfaq/templates/cloudcmsfaq/archive.html +++ b/cloudcmsfaq/templates/cloudcmsfaq/archive.html @@ -1,15 +1,23 @@ -{% load applicationcontent_tags pagination_tags i18n %} +{% load applicationcontent_tags pagination_tags i18n cloudcms_tags %}
- {% for category in categories %} + {% for service in services %}
-

{{ category.translation.title|upper }}

+

{{ service.translation.title|upper }}

    - {% for q in category.faqs.active %} -
  • - {{ q.title }} -
  • +
  • + {% for category, questions in service|get_service_faqs %} +

    {{ category.translation.title|upper }}

    +
      + {% for q in questions %} +
    • + {{ q.title }} +
    • + {% endfor %} +
      +
    {% endfor %} +
{% endfor %}