# summary

Source: https://zotonic.com/docs/1490/summary

URI: https://zotonic.com/id/1490

Language: en



Extract a summary from a resource.

The value of the filter is the resource’s id.

This uses the summary field if available, but if it is empty, uses the first paragraph of the body text to show a summary.

Useful for displaying excerpts of texts that do not always have a separate summary provided.

Example:

```django
{{ id|summary }}
```

It is also possible to give a maximum length to which the text will be truncated:

```django
{{ id|summary:80 }}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1490?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1490?language=en>)
