Get ID of Page Type Defaults

Permalink
Hi

I would like to get the ID of page type defaults - when I click on a page type default (e.g right_sidebar) the ID that is shown (e.ghttp://yoursite.com/index.php?cID=111... --> 111). How can I get this ID if I only have the handle (right_sidebar)?

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I have always found it in the address bar immediately after exiting edit mode for that page,
i.e. choose your page, enter edit page mode and then exit edit mode and you should see it displayed in the url address bar, if you refresh the page it will usually disappear due to the .htaccess file configuration..
Kiesel replied on at Permalink Reply
Thank you for your answer, but I need it as code, something like Page::getByHandle...