apologies for the likely silly question, but I've been unable to find an answer that makes sense, or at least one that marries up with my understanding of the SP terminology.
I'm trying to get access to Page Properties from within an SPfx Extension and I'm not entirely sure how to go about it, at first I thought I could query it using something like:
var list = await pnp.sp.web.lists.getByTitle("Site Pages").get();
then I could simply find the row by the Site Page ID that I'd get using:
var idString: string = this.context.pageContext.listItem.id.toString();
and then knowing the column names:
'FooterLink1', 'FooterLink2', 'FooterLink3'.
I could then pull out the hyperlink and create my footers link menu with this information.
Am I missing something, or just completely missing the point? Any help would be appreciated. Thank you.