template_id_with_tag

Retrieves a template ID based on a tag or reference.

Example

1
{{ 'tag_name' | template_id_with_tag: 'tag_id' }} => 123

Input

Type Parameter Description Required
mixed tags The tag or 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