I can do the following to pull out the page title after parsing in just the page slug:
$page = 'about'; $entry = craft()->elements->getCriteria(ElementType::Entry)->first(); $entry->slug = $page; echo $entry->title;
(I understand this is overkill, but an answer to this question will help me answer further questions I dare not try to explain here).
The problem is, the slug doesn't need to be unique if other sections/channels/singles use the same name, and the method above only calls out the first instance of "about".
How can I define what section is being referred to?
This will update the handle, but has no effect on the output:
$entry->section->handle = "pages";
This returns a Read Only error:
$entry->section = "Pages"
Property "Craft\EntryModel.section" is read only.