I have a home page with a footer section made of 3 textarea fields in the home.yml
footC:
label: Footer Centre
type: textarea
help: The Centre text
footL:
label: Footer Left
type: textarea
help: The Left Area
footR:
label: Footer Right
type: textarea
help: The Right area
How another page “somepage.php” reference the home page content.
I started writing a controller …
<?php
return function($page) {
$fleft = get('footL');
$fcent = get('footC');
$fright = get('footR');
$alert = null;
return [
'footLeft' => $fleft,
'footCentre' => $fcent,
'footRight' => $fright,
];
};
But I’m not sure how to progress from here.