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

2021-08-26 Thread Mike Dewhirst
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 o

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

2021-08-26 Thread Mike Dewhirst
rited by child pages. 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 k

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

2021-08-26 Thread Nigel Copley
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 >&g

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

2021-08-26 Thread Cale Roco
o 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 ... > > {% t

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

2021-08-23 Thread Mike Dewhirst
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 ha

Re: django-breadcrumbs with CBVs?

2018-05-01 Thread Yehor Smoliakov
Hello, Alex. It is not depends on the FBV method, only on uses in templates. On 1 May 2018 at 18:56, Alexander Joseph wrote: > I'm trying to use django-breadcrumbs (http://django-bootstrap- > breadcrumbs.readthedocs.io/en/latest/) which looks like it works with > function-based

django-breadcrumbs with CBVs?

2018-05-01 Thread Alexander Joseph
I'm trying to use django-breadcrumbs (http://django-bootstrap-breadcrumbs.readthedocs.io/en/latest/) which looks like it works with function-based views the way I'd like to implement breadcrumbs, but I'm using exclusively class-based views. I'm still newer to django so no

Best Way to Implement Breadcrumbs?

2018-04-24 Thread Alexander Joseph
Whats the best way to implement breadcrumbs in a django template? I'd like something that will track where the user came from and can offer putting the link back in something like an Thanks -- You received this message because you are subscribed to the Google Groups "Django users&

How to remove breadcrumbs in Django admin

2014-03-16 Thread Marwan Al-Sabbagh
For reference I've asked this question on stackoverflow: http://stackoverflow.com/q/22345527/1699750 How can I use nav-global for navigation and hide the breadcrumbs in the django admin app. I've found ways to do this but they seem hackish and problematic. I'm looking for a

Has anyone successfully used django-breadcrumbs?

2012-04-14 Thread Marcin Tustin
I have added django-breadcrumbs to my app, following the instructions at https://github.com/chronossc/django-breadcrumbs/. It works in so far as there is always exactly one breadcrumb displayed on each page in my app, but never do more accumulate. I'm about to try storing the list in the se

Re: GET request breadcrumbs

2010-01-22 Thread Andy Mikhailenko
I would suggest using django-navigation or a similar approach, that is to bind breadcrumbs-related code to views instead of templates. Of course you would still render the breadcrumbs in a template, but that would be a single piece of code (I usually place it right in the project's base

GET request breadcrumbs

2010-01-21 Thread Meenal
So far I have seem template inheritance based examples for breadcrumbs in django. However for a project I am working on that does not quite work because all templates inherit from base. For eg. templates/base.html common/ a.html, b.html, c.html myapp/ m.html, n,.html

Re: benefits of {% url %} for breadcrumbs?

2009-09-17 Thread Russell Keith-Magee
On Thu, Sep 17, 2009 at 4:53 AM, neri...@gmail.com wrote: > > Is there any benefit to using {% url %} other than retrieving data > from the same view? I was looking for a better way to make a > breadcrumb menu than hard wiring the urls into every page and came > across the {% url %} tag and this

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread Nick Lo
You might find this useful: http://code.google.com/p/django-crumbs/ >> the only point where DRY comes into play is when you're retrieving >> data from the same view, is there a better way to make breadcrumbs? --~--~-~--~~~---~--~~ You rece

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread neridaj
I guess I can just pass it with the context. On Sep 16, 2:55 pm, neridaj wrote: > the only point where DRY comes into play is when you're retrieving > data from the same view, is there a better way to make breadcrumbs? > > On Sep 16, 2:40 pm, Maksymus007 wrote: > > >

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread neridaj
the only point where DRY comes into play is when you're retrieving data from the same view, is there a better way to make breadcrumbs? On Sep 16, 2:40 pm, Maksymus007 wrote: > On Wed, Sep 16, 2009 at 10:53 PM, neri...@gmail.com wrote: > > > Is there any benefit to using {%

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread Maksymus007
On Wed, Sep 16, 2009 at 10:53 PM, neri...@gmail.com wrote: > > Is there any benefit to using {% url %} other than retrieving data > from the same view? I was looking for a better way to make a > breadcrumb menu than hard wiring the urls into every page and came > across the {% url %} tag and this

benefits of {% url %} for breadcrumbs?

2009-09-16 Thread neri...@gmail.com
Is there any benefit to using {% url %} other than retrieving data from the same view? I was looking for a better way to make a breadcrumb menu than hard wiring the urls into every page and came across the {% url %} tag and this post: http://groups.google.com/group/django-users/browse_thread/thre

Re: looping to create an array of category breadcrumbs

2008-10-29 Thread Dj Gilcrease
def get_parent(self): if self.parent: return [self.parent] return [] def get_parent_tree(self): asc = self.get_parent() for p in asc: asc.extend(p.get_parent()) return asc This is what I use for generating a category crumb

Re: looping to create an array of category breadcrumbs

2008-10-29 Thread coderb
hi Thomas, thanks for all the details, actually my post was not really clear on what I have. the category model looks like this: class Category(models.Model): name = models.CharField(max_length=100, unique=True) slug = models.SlugField(max_length=100, unique=True) p

Re: looping to create an array of category breadcrumbs

2008-10-29 Thread Thomas Guettler
Hi, Does this help you? myslug=... parents=[] while myslug: cat_crumb=Category.objects.get(slug=myslug) # I guess slug is unique parents.append(cat_crumb) myslug=cat_crumb.parent But be careful, you might get infinite loops if the parent links to a child. To avoid this you could write

Re: looping to create an array of category breadcrumbs

2008-10-28 Thread coderb
sorry, had not finished this post before accidently submitting it... for myslug not null catcrumb_list = Category.objects.filter(slug=myslug) myslug = catcrumb_list.parent basically, I want to loop through the category model a parent is not found, and each pass, store the model tupel in

looping to create an array of category breadcrumbs

2008-10-28 Thread coderb
hi all, am having trouble finding the syntax to build an array that contains the full hierarchy of the current category. so the slug of the current category is passed to the method from the URL request data. for myslug not null catcrumb_list = Category.objects.filter(slug=myslug) catcrumb_lis

Re: newbie question about breadcrumbs

2008-10-10 Thread Thomas Guettler
Mirto Silvio Busico schrieb: > Hi all, > I'm lost in understanding how to use/reuse or create breadcrumbs. > > Where can I find documentation /examples of setting up breadcrumbs? > > Hi, I wrote a small snippet that we use in our projects: http://www.djangosnippets

Re: newbie question about breadcrumbs

2008-10-09 Thread Malcolm Tredinnick
On Thu, 2008-10-09 at 15:04 +0200, Mirto Silvio Busico wrote: [...] > So I'm convinced that I have misunderstood all the breadcrumbs matter. I think you're just expecting something to happen that isn't true. The breadcrumbs in the admin are always going to be (1) Home -- po

Re: newbie question about breadcrumbs

2008-10-09 Thread Mirto Silvio Busico
that is inside an apache site: the home link always point to the >> first admin app page >> > > The admin breadcrumbs are never aware of anything outside the admin, > and that is by design. In order to change that you'll need to do > quite a bit of poking around i

Re: newbie question about breadcrumbs

2008-10-09 Thread Carl Meyer
Hi Mirto, On Oct 9, 9:04 am, Mirto Silvio Busico <[EMAIL PROTECTED]> wrote: > I'm confused because the admin app seems unaware of living inside a > project that is inside an apache site: the home link always point to the > first admin app page The admin breadcrumbs are nev

newbie question about breadcrumbs

2008-10-09 Thread Mirto Silvio Busico
Hi all, I'm lost in understanding how to use/reuse or create breadcrumbs. Where can I find documentation /examples of setting up breadcrumbs? This is my use case: I have a site with the admin app. So I have: mysyte (admin) myapp1 myapp2 The mysite site is h

Breadcrumbs

2008-01-21 Thread Thomas Guettler
Hi, I developed this method to create breadcrumbs. What do you think about it? Thomas # Python from urlparse import urljoin # Django from django import http from django.core import urlresolvers from django.core.urlresolvers import reverse from django.conf import settings from

Re: Constructing Breadcrumbs

2007-02-14 Thread primitive
Both suggestions seem plausible, I will have to try it out and see what makes the most sense for me. I might have to restructure the layout of the site to be more logical (I knew this would come back to haunt me). Thanks all, I will post my results soon. Regards, Leo. --~--~-~--~~--

Re: Constructing Breadcrumbs

2007-02-13 Thread Rob Hudson
t its parent, etc. You should eventually stop when parent is null. In that way, you can climb up and output the breadcrumb... I ended up with a breadcrumb function that looked like this: def get_breadcrumb(page): """ Builds breadcrumbs separated by a right an

Re: Constructing Breadcrumbs

2007-02-13 Thread Jeremy Dunck
On 2/13/07, primitive <[EMAIL PROTECTED]> wrote: > I was just wondering if anyone had any suggestions around creating > breadcrumbs in django. I know this is a vague question, but I have a > site built from scratch in django, and I want an easy way to construct > breadcrumbs,

Constructing Breadcrumbs

2007-02-13 Thread primitive
Good day, I was just wondering if anyone had any suggestions around creating breadcrumbs in django. I know this is a vague question, but I have a site built from scratch in django, and I want an easy way to construct breadcrumbs, possibly based on the urls. Any suggestions or example