Adds a get_entry(id) template function, and context-relative functions for doing entry-relative image retrieval
Detailed description
get_entry is a new function that allows retrieving a specific entry by entry ID, if available to the current user.
The Entry, Category, and Template classes now have an image method which allows retrieving an image from their respective contexts. This is useful for doing relative image resolution.
Test plan
The template entry-retrieval.html retrieves two hardcoded entry IDs, and also attempts to resolve an image from both of them.
Summary
Adds a
get_entry(id)
template function, and context-relative functions for doing entry-relative image retrievalDetailed description
get_entry
is a new function that allows retrieving a specific entry by entry ID, if available to the current user.The
Entry
,Category
, andTemplate
classes now have animage
method which allows retrieving an image from their respective contexts. This is useful for doing relative image resolution.Test plan
The template
entry-retrieval.html
retrieves two hardcoded entry IDs, and also attempts to resolve an image from both of them.