This is what I use Django Suit for - it can be located at the top or side and remains in place across all admin pages. You can add your own items to the menu (and these can point to non-admin pages - for example, I point to a page of report URLs which is a non-standard admin page) ; I have never added menu items "on the fly" so am not sure this is possible.
I cannot understand your requirement statement "When that page opens for the record, the sidebar of links should change to the named headings on that page. When a heading is clicked the page should relocate itself so that heading is at the top" at all, sorry. Maybe a follow-up post with a picture (== 1000 words)?
Derek
On Monday, 3 May 2021 at 08:57:25 UTC+2 Mike Dewhirst wrote:
OK - I've now looked at some Django Admin templating systems and they
all seem to solve a different problem than the one I need to ... which
is ...
Consider the Admin main menu seen at the /admin url after login. If you
click any of the links they take you to a single page with a list of
records. So my need is for a fixed vertical sidebar with the same links
which take you to the same list pages. The vertical sidebar should
remain unchanged and unmoved on the list page in case the user clicked
the wrong link.
The next step is to select a record from the list. When that page opens
for the record, the sidebar of links should change to the named headings
on that page. When a heading is clicked the page should relocate itself
so that heading is at the top. The sidebar of links should remain
unchanged and unmoved in case the user wishes to relocate to a different
heading. Much like the Django documentation except the sidebar should
stay where it was when clicked!
At the moment, those headings don't have urls within the page. And the
(Show/Hide) urls are all just a lone hash '#'.
Therefore my problem is to understand how to include heading name
anchors and construct a list of urls (including 'top' and bottom') for
such a sidebar. And of course to understand how to make such a sidebar
in the first place.
Where might I begin my research?
Thanks
Mike
On 2/05/2021 5:26 pm, Mike Dewhirst wrote:
> My project has a central table with many 1:n and n:m sub-tables. I
> mean lots of them. It takes forever to keep scrolling up and down the
> page to find the section of interest and then maybe scroll through
> some records in that section before clicking (SHOW) to reveal data.
>
> Is there a way I can do a sidebar of links which take the user to
> specific sections?
>
> I have had a look at the contrib layout and it doesn't appear obvious
> what to do. Especially since they don't pay me enough to play with js ;-)
>
> Has this been solved before?
>
> Thanks for any hints
>
> Cheers
>
> 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec2ed88b-564c-477a-8ebe-067c2d975bf7n%40googlegroups.com.
No comments:
Post a Comment