Page : get by name & get by handle
Is there a way to get page object by handle and by name ?
I only found : Page::getByPath() & Page::getByID()
check outhttp://www.weblicating.com/c5/cheat-sheet/... for future reference. you may have to define global c as well, if the above doesn't work.
But I want get a page by handle or by name without known $c.
$page = Page::getByHandle('hello_page');
$page = Page::getByName('Hello page');
Where is it ?
I just would know where is the method:
/concrete/models/page.php => no method
It's in /concrete/models/collection.php
You will note that the Page class extends the Collection class, so it has all of the methods of the Collection class available to it as well. The terms "page" and "collection" are often used interchangeably throughout the code. There are slight technical differences between the two, but for the most part you can pretty much think of them as the same thing.
Do you know the difference between Page & Collection ?