template_id_from_ref

Retrieves a template ID based on a reference.

Example

1
{{ 'ref' | template_id_from_ref }} => 123

Input

Type Parameter Description Required
string ref The reference to search for. Comes before the | sign. Required

Output

Type Description  
int null The ID of the template or null if no template is found