Skip to content

Conversation

coudot
Copy link
Member

@coudot coudot commented Mar 19, 2025

This adds the $custom_tpl_dir option in configuration which can be used to create a customized template.

You can just override one or two templates files by copying them to the custom template directory and adapt them.

@necarnot
Copy link

necarnot commented May 5, 2025

Hi @coudot ,

After having upgrade from 1.7.2-1 to 1.7.3, I also integrated this PR, doing it this way :

  • I'm (docker-)building it at every release, so I merged this PR
  • My compose.yml contains this kind of volume binding : - ./config/templates_custom/:/var/www/templates_custom
  • In ./config/templates_custom, I only copied then changed the index.tpl file
  • After a rebuild with the latest 1.7.3, I'm using it and everything is working fine : the customized index.tpl is used.

Thank you Clément!

@coudot
Copy link
Member Author

coudot commented May 5, 2025

Thanks a lot for the feedback!

@coudot coudot merged commit efa7fc8 into master May 5, 2025
1 check passed
@coudot coudot deleted the allow-customized-template branch May 5, 2025 09:23
@coudot coudot mentioned this pull request Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question] How to customize or add some banners on the main page?

2 participants