* Vietnamese translation incomplete

Category_detail.html displays the details of a single business category and lists all businesses within that category

Category_detail.html displays the details of a single business category and lists all businesses within that category (English fallback)

Aug. 16, 2025

Posted by admin

 

This template (category_detail.html) displays the details of a single business category and lists all businesses within that category. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Dynamically sets the page title to the category name (in the current language) and “Business Directory”.

Main sections:

1. Category Header

  • Shows the category icon, name, and description (in the current language).
  • Displays the total number of businesses found in this category.

2. Category Statistics

  • Shows four stat cards:
    • Total businesses in the category
    • Number of featured businesses
    • Number of translated businesses
    • Number of businesses that accept credit cards

3. Search/Filter Section

  • Allows users to search businesses by name/description and filter by city within this category.

4. Businesses Grid

  • Displays each business as a card with:
    • Image (or placeholder), featured badge if applicable
    • Name and short description (in the current language)
    • City, translation/feature icons
    • Stats: views, phone clicks, website clicks
    • “View Details” button

5. Pagination

  • Provides navigation for multiple pages of businesses.

6. Empty State

  • If no businesses are found, shows a message and a button to browse all businesses.

7. Back to Directory

  • Button to return to the main business directory home.

Styling:

  • Custom CSS for header, cards, stats, filter section, and empty state for a modern, clean look.

This page helps users explore businesses within a specific category, with filtering, stats, and easy navigation

 

Vietnamese translation is not available for this article. Showing English content:

 

This template (category_detail.html) displays the details of a single business category and lists all businesses within that category. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Dynamically sets the page title to the category name (in the current language) and “Business Directory”.

Main sections:

1. Category Header

  • Shows the category icon, name, and description (in the current language).
  • Displays the total number of businesses found in this category.

2. Category Statistics

  • Shows four stat cards:
    • Total businesses in the category
    • Number of featured businesses
    • Number of translated businesses
    • Number of businesses that accept credit cards

3. Search/Filter Section

  • Allows users to search businesses by name/description and filter by city within this category.

4. Businesses Grid

  • Displays each business as a card with:
    • Image (or placeholder), featured badge if applicable
    • Name and short description (in the current language)
    • City, translation/feature icons
    • Stats: views, phone clicks, website clicks
    • “View Details” button

5. Pagination

  • Provides navigation for multiple pages of businesses.

6. Empty State

  • If no businesses are found, shows a message and a button to browse all businesses.

7. Back to Directory

  • Button to return to the main business directory home.

Styling:

  • Custom CSS for header, cards, stats, filter section, and empty state for a modern, clean look.

This page helps users explore businesses within a specific category, with filtering, stats, and easy navigation

 

Attached Files

0 files found.

You are viewing this article in public mode. Some features may be limited.