How to pull a specific pages title and description
Permalink
Hi, Im witting a small block that needs pull a specific (hard coded) pages current title and description and display it. Can anyone help with the PHP syntax.
I can call a current pages title and description with $page->getCollectionName() and $page->getCollectionDescription() but I need to get this same info from another page in the site which will alway pull this from the same hard coded page.
What I'm basically doing is including a persistent/permeant formatted link/title/description onto the bottom of a page list array.
I can call a current pages title and description with $page->getCollectionName() and $page->getCollectionDescription() but I need to get this same info from another page in the site which will alway pull this from the same hard coded page.
What I'm basically doing is including a persistent/permeant formatted link/title/description onto the bottom of a page list array.
$page = Page::getByPath('/path/to/page', $version = 'RECENT');
to pull title and description from a specific page by it's path.