Opened 8 years ago

Closed 6 months ago

#26836 closed New feature (wontfix)

Allow applications to register links in the admin interface

Reported by: Mathieu Poussin Owned by: Shlomo
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mathieu Poussin)

I think it would be interesting for custom applications to register links in various places in the admin area.

The typical example would be the admindocs module, instead of hardcoding it in the admin template, we could have something like

admin.register_link(title=_('Documentation'), url=reverse('...'), location='header_right', staff_only=True))

And a specific code in the template like :

{% for link in admin.links.header_right %}
<a href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}

We could also add other locations (Like a new pane in the admin frontpage, etc.)

So any application could easily add its own links.

Currently, as far I a know, the only way to do this is to override the admin templates.

Change History (5)

comment:1 by Mathieu Poussin, 8 years ago

Description: modified (diff)

comment:2 by Tim Graham, 8 years ago

Triage Stage: UnreviewedAccepted

I'm open to exploring this. Before writing a lot of code, it would be a good idea to submit the proposal to the DevelopersMailingList to get feedback from others and nail down the design. See #18665 for some related ideas.

comment:3 by Shlomo, 7 months ago

Owner: changed from nobody to Shlomo
Status: newassigned

comment:4 by Shlomo, 7 months ago

Has patch: set

comment:5 by Mariusz Felisiak, 6 months ago

Has patch: unset
Resolution: wontfix
Status: assignedclosed
Triage Stage: AcceptedUnreviewed

Closing per discussion.

Note: See TracTickets for help on using tickets.
Back to Top