I can’t find any docs about what the function page
is doing. Please note im not asking about $page or $pages. There is also a function called page
.
Check out this post: $page object performance questions
The page()
function is simply a helper that returns the page object of a given page.
So page()
itself is equivalent to $page
and page('home')
returns the homepage. The reason this function exists is so that you can access the page from functions.
1 Like
Thank you both!