templatetags Package

templatetags Package

Templatetags for Zinnia

zbreadcrumbs Module

Breadcrumb module for Zinnia templatetags

class zinnia.templatetags.zbreadcrumbs.Crumb(name, url=None)

Bases: object

Part of the Breadcrumbs

zinnia.templatetags.zbreadcrumbs.ZINNIA_ROOT_URL()
zinnia.templatetags.zbreadcrumbs.day_crumb(creation_date)

Crumb for a day

zinnia.templatetags.zbreadcrumbs.handle_page_crumb(func)

Decorator for handling the current page in the breadcrumbs

zinnia.templatetags.zbreadcrumbs.month_crumb(creation_date)

Crumb for a month

zinnia.templatetags.zbreadcrumbs.retrieve_breadcrumbs(path, model, page, root_name)

Build a semi-hardcoded breadcrumbs based of the model’s url handled by Zinnia

zinnia.templatetags.zbreadcrumbs.year_crumb(creation_date)

Crumb for a year

zcalendar Module

Calendar module for Zinnia templatetags

class zinnia.templatetags.zcalendar.ZinniaCalendar

Bases: calendar.HTMLCalendar

Override of HTMLCalendar

formatday(day, weekday)

Return a day as a table cell with a link if entries are published this day

formatfooter(previous_month, next_month)

Return a footer for a previous and next month.

formatmonth(theyear, themonth, withyear=True, previous_month=None, next_month=None)

Return a formatted month as a table with new attributes computed for formatting a day, and thead/tfooter

formatmonthname(theyear, themonth, withyear=True)

Return a month name translated as a table row.

formatweekday(day)

Return a weekday name translated as a table header.

formatweekheader()

Return a header for a week as a table row.

Project Versions

Table Of Contents

Previous topic

backends Package

Next topic

url_shortener Package

This Page