Custom tmpl files not loading #1585

Closed
opened 2025-11-02 04:05:44 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @pgodwin on GitHub (Mar 2, 2018).

Description

I'm attempting to use custom extra_links.tmpl file with gitea but it doesn't seem to load.

I've put the file in custom/templates/custom/extra_links.tmpl. It's content is included below:

<a href="#">TEST URL</a>

If I copy over the base templates from source to /custom/templates/ the footer custom template then loads.

Do I need to copy over all the templates from source to custom/templates/ in order for custom templates to work? Or is this something not supported in 1.3 (head.tmpl doesn't seem to have anything for it in the 1.3 branch).

Originally created by @pgodwin on GitHub (Mar 2, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.3.3 - Git version: 2.14.1 - Operating system: Windows Server 2012 R2 (6.3 Build 9600) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/pgodwin/00c90c8af325dd9fb13fd5a4cb5e5df2 ## Description I'm attempting to use custom extra_links.tmpl file with gitea but it doesn't seem to load. I've put the file in `custom/templates/custom/extra_links.tmpl`. It's content is included below: <a href="#">TEST URL</a> If I copy over the base templates from source to `/custom/templates/` the footer custom template then loads. Do I need to copy over all the templates from source to `custom/templates/` in order for custom templates to work? Or is this something not supported in 1.3 (head.tmpl doesn't seem to have anything for it in the 1.3 branch).
GiteaMirror added the issue/not-a-bug label 2025-11-02 04:05:44 -06:00
Author
Owner

@lafriks commented on GitHub (Mar 2, 2018):

I think extra_links template was added only 1.4

@lafriks commented on GitHub (Mar 2, 2018): I think extra_links template was added only 1.4
Author
Owner

@thehowl commented on GitHub (Mar 3, 2018):

yep: 45c264f681

@thehowl commented on GitHub (Mar 3, 2018): yep: https://github.com/go-gitea/gitea/commit/45c264f681e3f7e1a22a191029836a690959aac3
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1585