Opened 17 years ago

Closed 17 years ago

#6854 closed (invalid)

flatpages can not be accessed by url tag

Reported by: Bela Hausmann <post@…> Owned by: nobody
Component: Contrib apps Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There is no way to access a flat page via the url template tag.

E.g.: some like to call their contact page /about/contact/ and some only /contact/. Would be nice if one could only write {% url contact %} in the template and which href is used is defined by the database entry.

Change History (1)

comment:1 by James Bennett, 17 years ago

Resolution: invalid
Status: newclosed

Erm... the {% url %} tag is meant to decouple you from hard-coded URLs, But a flat page is, essentially, a hard-coded URL, so I'm not sure what you'd gain from using it to get the URL of a flat page. Closing invalid because of that.

Note: See TracTickets for help on using tickets.
Back to Top