Extra Page Data
You can attach additional data to a page by using a JsonDataSection. You can add this to all pages, or to a specific page.
Limitations
Each section corresponds to a JSON column in the database and each column must have a unique name which means that you cannot split fields that save to the same JSON column to separate tabs in the CMS.
Retrieving Data
You can retrieve this data by using the getDataValue method. E.g.
$page->getDataValue('some_text_field');
If you have stored your data in a column with a name other than data you can pass this column name as a second parameter. E.g.
$page->getDataValue('some_text_field', 'my_column_name');