Skip to content

Can't disable categories #3571

@Dreamsorcerer

Description

@Dreamsorcerer

There seems to be no way to properly disable categories.

We have set CATEGORY_URL/CATEGORY_SAVE_AS/CATEGORIES_SAVE_AS all to None.

In the simple theme it outputs the category on each article with an if article.category check. But, there seems to be no way to make that check return false to avoid the output. The category link is obviously broken and leads to a 404.

If I disable USE_FOLDER_AS_CATEGORY, then it just changes the category to 'misc'.
If I also change DEFAULT_CATEGORY to None, then I get an AttributeError, or if I change it to an empty string then I get could not find information about 'category' and no articles get rendered at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions