Thursday, August 26, 2021

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

On 27/08/2021 2:09 am, Nigel Copley wrote:
> although I think you'd have to override the breadcrumb block in each
> of the public facing admin templates, it doesn't look to be easily
> done and making a home setting it's probably overkill

Overkill, underkill - looks like no other solution at the moment. I'll
look a bit deeper.

>
> On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote:
>
> haven't tried it but you could potentially just override the
> "/admin/base.html" template in your templates directory
>
> On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:
>
> We are using 'Home' in a different, more public, part of the
> site and
> have to adjust that first item in the Admin breadcrumbs to
> 'Menu' or
> 'Main menu' in order to keep the UX masters happy. Some of the
> Admin is
> public facing.
>
> Looking at the source, I would have to override an awful lot of
> templates with ...
>
> <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
>
> It looks impossible to do elegantly. I shudder at scripting a
> global
> search and replace.
>
> Is this worth putting in the effort to make 'Home' a setting -
> if that
> is even possible.
>
> If so, how do I get started on that?
>
> Thanks
>
> Mike
>
> --
> Signed email is an absolute defence against phishing. This
> email has
> been signed with my private key. If you import my public key
> you can
> automatically decrypt my signature and be sure it came from
> me. Just
> ask and I'll send it to you. Your email software can handle
> signing.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1ec2797d-97c8-4d0c-fd75-0558d111ed08%40dewhirst.com.au.

No comments:

Post a Comment