A Page
has component presentations on it. And, and a component presentation
is component
plus component template
.
In your case, you want the component so that you can fetch Title field from it.
So, all you need to do in PT code is:
- Get the component presentations array on the page.
- Select the component presentation of your need.
- Get the component out of the component presentation.
- Get the title field value from the component.