DASHBOARD
EVENT
LOBBIES
MARKET
ONLINE PLAYERS
SUBSCRIBE
$(function () {
setNavigation();
});
function setNavigation() {
var path = window.location.pathname;
path = path.replace(/\/$/, "");
path = decodeURIComponent(path);
ocumentation on writing custom tags here:
https://docs.djangoproject.com/en/dev/howto/custom-template-tags/
Cheers,
AT
On Wed, Mar 27, 2013 at 11:16 AM, Venkatraman S wrote:
>
> On Wed, Mar 27, 2013 at 5:55 PM, Simon Shaw wrote:
>
>> I am Django/Web newbie developer and I am look
On Wed, Mar 27, 2013 at 5:55 PM, Simon Shaw wrote:
> I am Django/Web newbie developer and I am looking for the correct way to
> add a navigation bar (hopefully the correct term) to my ticketing app such
> that the options "Admin", "Open New Ticket", "View N
If you put these links in your base template it will appear on every page.
If you wrap some of those links with template if/endif syntax and
check request.user to see if they have permission, you can hide
individual links, change their CSS classes, or replace them with a
something else.
--
You r
I am Django/Web newbie developer and I am looking for the correct way to
add a navigation bar (hopefully the correct term) to my ticketing app such
that the options "Admin", "Open New Ticket", "View New Ticket",
"Dashboard", "Logout" will alway
- Subpage 3
>
> And I want to create a navigation bar that provides links to the
> current page and all of the parent pages.
You have to write recursive (or sort of) function to do something like
this.
> I'm using Django 0.96. I've played with the url template tag, and I
> don
I'm becoming accustomed to Django... and I have a design question:
I have something like this:
Page1
- Subpage 1
- Subpage 2
- Subsubpage 1
- Subsubpage 2
- Subpage 3
And I want to create a navigation bar that provides links to the
current page and all of the parent pages
7 matches
Mail list logo