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
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
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
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
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
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
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
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&
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
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
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
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
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
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
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:
>
> >
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 {%
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
--~--~-~--~~--
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
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,
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
33 matches
Mail list logo