Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding custom settings page #4393

Closed
5 tasks
ghost opened this issue Jul 7, 2018 · 5 comments
Closed
5 tasks

Adding custom settings page #4393

ghost opened this issue Jul 7, 2018 · 5 comments
Labels
reviewed/wontfix The problem described in this issue/fixed in this pull request is not a problem we will fix

Comments

@ghost
Copy link

ghost commented Jul 7, 2018

  • Gitea version (or commit ref): 1.4.1
  • Git version: 2.17.0
  • Operating system: W10
  • Database (use [x]):
    • PostgreSQL
    • [X ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ X] Not relevant
  • Log gist:

Description

I customize the navbar.tmpl in 'custom\templates\user\settings' to include a link to my own, new settings tab page. But when I add the matching file with the same name in 'custom\public\user\settings' it does not work. Am I doing it wrong?
...

Screenshots

ISettings page with my new tab "Theme"
IError

@daviian
Copy link
Member

daviian commented Jul 7, 2018

@DavidGTorner That's simply not possible, since there is no route handler available for the new route. That's the reason why you get a 404 error code.
You can only customize existing templates and not add additional ones.

@gsantner
Copy link

gsantner commented Jul 7, 2018

would it be possible to get some "default unused" custom routes, where the admin could place some custom logic in a file while still being able to use normal release binaries? Like /custom/1/, /custom/2 ?

@daviian
Copy link
Member

daviian commented Jul 7, 2018

This would be some kind of plugin system.
There's already an issue about that (#661), however since go doesn't support it natively on every platform there is currently no way to support that.

@lafriks lafriks added the reviewed/wontfix The problem described in this issue/fixed in this pull request is not a problem we will fix label Jul 10, 2018
@lafriks
Copy link
Member

lafriks commented Jul 10, 2018

As @daviian noted that this should be done as part of #661

@techknowlogick
Copy link
Member

Closed as this is marked as won't fix. Another slightly related ticket is #2012

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
reviewed/wontfix The problem described in this issue/fixed in this pull request is not a problem we will fix
Projects
None yet
Development

No branches or pull requests

4 participants