Config app template tags.
Template tags of the config app.
config.templatetags.custom_tags.
urljoin
A template filter used to join URL parts.
origin (str) – The origin of the URL.
str
pathname (str) – The pathname of the URL.
The URL joined via urljoin().
urljoin()
vslice
Filter used to dynamically slice a list.
value (List) – The original list.
List
var (int) – The end of the slice.
int
The sliced list.
jsonld
Generate a JSON-LD script tag.
value (Dict) – A JSON-LD dictionary.
Dict
element_id (str) – The id of the element.
An HTML <script> element.
<script>
See also
json_script template tag
order_by
Order a queryset by a given column.
qs (QuerySet) – The original queryset.
QuerySet
order (str) – The column used to order the queryset.
The ordered queryset.
get_type
Get the type of an image given its URL.
link (str) – The link to the image file.
The mime type of the image.
Template tags used by the flatpage template.
config.templatetags.flatpage_tags.
breadcrumbs_ld
Create a JSON-LD <script> with the page’s breadcrumbs.
request (HttpRequest) – The original request.
HttpRequest
page (FlatPage) – A FlatPage object instance.
FlatPage
An HTML script tag.