template_id_with_tag_or_ref
Retrieves a template ID based on a tag or reference.
Example
1
{{ 'tag_name' | template_id_with_tag_or_ref: 'ref_name' }} => 123
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| mixed | tags | The tag or reference to search for. Comes before the | sign. | Required |
| string | ref | The reference to search for |
Output
| Type | Description | |
|---|---|---|
| int | null | The ID of the template or null if no template is found |