Trying to get the page url by page handle
Permalink 2 users found helpful
Hello
I was trying to get the page url by page handle. I do know that it can be done by page ID. But I need this done by page handle as I don't have the page ID.
Thanks in advance for your help.
Rony
I was trying to get the page url by page handle. I do know that it can be done by page ID. But I need this done by page handle as I don't have the page ID.
Thanks in advance for your help.
Rony
Hello
I've already tried that but it doesn't work. It returns nothing.
Rony
I've already tried that but it doesn't work. It returns nothing.
Rony
Well this is not the way how I need this to be done. The process is, I do have a list of page handles. I need to create a loop and get the url and store it into an array.
Rony
Rony
Cant understand what u want))
$c->getCollectionHandle();
This is not what I want. I do have handles. I need page url of those respective handle. And I cannot get it by Page::getCurrentPage(); as the handles stored in a custom DB table.
Rony
Rony
$page = Page::getByHandle('hello_page');
Source:http://www.concrete5.org/community/forums/customizing_c5/page-get-b...