cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x] Add `get_site` tag

Open aerni opened this issue 1 year ago • 0 comments

This PR takes another stab at https://github.com/statamic/cms/pull/9567 by introducing a new get_site tag.

Use as tag pair:

{{ get_site:english }}
    {{ permalink }}
{{ /get_site:english }}

You can also get the site dynamically:

{{ get_site handle="{handle}" }}
    {{ permalink }}
{{ /get_site }}

Or use as single tag:

{{ get_site:english:permalink }}

aerni avatar Feb 23 '24 23:02 aerni