• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Styling

Extending/Editing HTML Files

yottabit
Dec. 3, 2024
chat_bubble_outline 4
  • link
    yottabit
    Members 15 posts
    Dec. 3, 2024, 12:29 p.m. Dec. 3, 2024, 12:29 p.m.
    link

    Hello,

    I am having a bit of trouble with figuring out how to override the default HTML configurations after installing Misago using the wizard (I am trying to embed a media player onto my website). I see there are directories that serve the purpose of allowing extensions that build off default settings ("/misago_docker/misago/theme/templates" and "/misago_docker/misago/theme/static"; I have tried creating a "base.html" file within the templates directory, but have had no luck with changes being applied after restarting Docker. Is there a way to edit the HTML files directly, as I was able to accomplish previously with Misago installed not using the wizard installation?

  • arrow_forward

    Thread has been moved from Support.

    • By rafalp on Dec. 3, 2024, 3:22 p.m..
  • link
    rafalp
    Project Lead 2027 posts
    Dec. 3, 2024, 3:23 p.m. Dec. 3, 2024, 3:23 p.m.
    link

    I guess you've created a file directly in /misago_docker/misago/theme/templates instead of /misago_docker/misago/theme/templates/misago/?

  • link
    yottabit
    Members 15 posts
    Dec. 17, 2024, 4:48 p.m. Dec. 17, 2024, 4:48 p.m.
    link

    I created the file in /misago_docker/misago/theme/templates/misago/templating. Is there a way to edit the default base.html directly?

    ~/misago_docker/misago/theme$ tree
    ├── static
    │   └── README.txt
    └── templates
    ├── README.txt
    └── misago
    └── templating
    └── base.html

    4 directories, 3 files

  • link
    rafalp
    Project Lead 2027 posts
    Dec. 17, 2024, 10:20 p.m. Dec. 17, 2024, 10:20 p.m.
    link

    There's no templating directory used by Misago. The files and directories you create in theme/templates must correspond 1:1 to what is defined in misago/templates. So if you create theme/templates/misago/base.html it will be used instead of default one, but only after server restart.

  • link
    yottabit
    Members 15 posts
    Dec. 21, 2024, 8:05 p.m. Dec. 21, 2024, 8:05 p.m.
    link

    Ah, I see. Thank you for clarifying.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago