ellmetha / django-machina

A Django forum engine for building powerful community driven websites.
https://django-machina.readthedocs.org
BSD 3-Clause "New" or "Revised" License
589 stars 126 forks source link

Template modification - Nav bar #284

Closed josylad closed 1 year ago

josylad commented 1 year ago

Hello, Firstly, thank you for this awesome package, I love it.

Secondly, I like the current UI of the forum and everything about it but I need to change only the Nav bar. I have a "navbar.html" template in my main app and this nav bar is extended across all templates currently existing in the project, so I get to have a uniform navigation menu.

Now, I need this same Navbar on all forums pages, How do I make this happen??

I tried creating a forum folder in my templates folder with a board_base.html file but it is not working.

How do I extend my current Navbar to django machina forum? @ellmetha

josylad commented 1 year ago

I figured it out. To override the base template and board_base.html, just create a "templates" folder in your project root directory and move a copy of the HTML files to this directory and customize from there.

Avoid setting "MACHINA_FORUM_NAME" or "MACHINA_BASE_TEMPLATE_NAME" in your settings.py, this setting was one of the reasons for my confusion.