Code

Opened 6 years ago

Closed 6 years ago

#6216 closed (invalid)

date filter documentation is unclear

Reported by: marystern@… Owned by: nobody
Component: Template system Version: master
Severity: Keywords: documentation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The date filter documentation should be updated to make it clear that it requires a *semi-colon* after 'date' (linking to the now documentation does NOT explain that this is necessary).

Using a simple example would help, eg:

DATE
Formats a date according to the given format (the format is the same as the now tag), eg {{object.pub_date|date:"d m y"}}

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The date filter works the same as any other filter which requires an argument, and the method for supplying an argument to a filter is clearly explained elsewhere. Also, you're looking for colon, not semi-colon; a sem-colon is the character ";" and a colon is the character ":".

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.