nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 192 forks source link

Error in menu when are used categories #675

Open veliluukkonen opened 3 years ago

veliluukkonen commented 3 years ago

Blog menu structure settings are 'Categories only' and 'Show empty categories in menu' is not selected. After that menu is empty. The blogs title shows in menu only. However there are categories which contains posts.

I read library code and found problem in file css_menus.py. Class is BlogCategoryMenu and method get_nodes. Variable used_categories is empty even if it must be filled. It not filled because posts adding into menu aren't selected. In other words used_categories filled if 'posts adding into menu' setting is selected only.

veliluukkonen commented 3 years ago

Bug correction in fork veliluukkonen/djangocms-blog