Search
Site Essentials for Statamic

Site Essentials for Statamic

se_view Tag

The se_view tag provides a few utilities to help implement more complicated logic within your site's templates.

#se_view:rendered Tag

The se_view:rendered tag can be used to check if a view has already been rendered:

1{{ partial:my/partial /}}
2 
3{{ if {se_view:rendered name="my.partial"} }}
4 It has been rendered.
5{{ else }}
6 It has not.
7{{ /if }}

This tag will only let you know if a view has been rendered, and cannot tell you if it was rendered recently. The partial does not to be in the same template file for this tag to work.

This tag relies on the observe_views option inside config/site_essentials/templating.php to be set to true (the default).

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.