| | |
| | | private array $metaFields = ['metaTitle', 'metaDescription', 'socialPreviewImage', 'twitterImage']; |
| | | |
| | | private array $defaultMetaValues = [ |
| | | 'metaTitle' => '{{post_title}} | {{site_name}}', |
| | | 'metaTitle' => '{{post_title}}', |
| | | 'metaDescription' => '{{post_excerpt}}', |
| | | 'socialPreviewImage' => '{{featured_image}}', |
| | | 'twitterImage' => '' |
| | |
| | | **************************************************************/ |
| | | $this->field('about') |
| | | ->type('reference') |
| | | ->label('About (Service/Topic)') |
| | | ->label('About') |
| | | ->transformer('reference'); |
| | | |
| | | $this->field('temporalCoverage') |
| | |
| | | 'answer' |
| | | ]); |
| | | |
| | | $this->type('Place') |
| | | ->label('Place') |
| | | ->group('general') |
| | | ->fields([ |
| | | 'type', |
| | | 'name', |
| | | 'description', |
| | | 'url', |
| | | 'image', |
| | | 'geo', |
| | | 'address', |
| | | 'sameAs', |
| | | ]); |
| | | |
| | | $this->type('City') |
| | | ->label('City') |
| | | ->group('general') |
| | | ->extends('Place') |
| | | ->addFields([ |
| | | 'containedInPlace', |
| | | ]); |
| | | $this->field('containedInPlace') |
| | | ->type('reference') |
| | | ->label('Contained In') |
| | | ->description('Parent place (province, country)') |
| | | ->transformer('reference'); |
| | | /************************************************************** |
| | | * ORGANIZATION & BUSINESS |
| | | **************************************************************/ |