<?php
defined('TYPO3_MODE') or die();

// ** Add fields to the backend
$columns = array (
    'ot_website_uid' => array (
        'label' => 'LLL:EXT:ot_core/Resources/Private/Language/locallang.xlf:website_uid',
        'displayCond' => 'HIDE_FOR_NON_ADMINS',
        'config' => array (
            'type' => 'input',
        )
    )
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
    'pages',
    $columns
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
    'pages',
    'ot_website_uid',
    '',
    'after:subtitle'
);
