Rotate
Returns a collection of all pages sharing the same identity across the specified dimension, including the current page, sorted by the dimension’s weight.
Syntax
PAGE.Rotate DIMENSION
Returns
page.Pages
The Rotate method on a Page object returns a collection of all pages sharing the same identity across the specified dimension, including the current page, sorted by the dimension’s weight.
The DIMENSION argument must be one of language, role, or version.
To render a list of all translations of the current page, including the current page:
{{ with .Rotate "language" }}
{{ range . }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
{{ end }}To render a list of all roles of the current page, including the current page:
{{ with .Rotate "role" }}
{{ range . }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
{{ end }}To render a list of all versions of the current page, including the current page:
{{ with .Rotate "version" }}
{{ range . }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
{{ end }}