District Core Developer DocsDistrict Core Developer Docs
Developers
Boilerplate
Modules
Bitbucket
Developers
Boilerplate
Modules
Bitbucket
  • Modules

    • ABN
    • ActivityLog
    • AnalyticsApi
    • ApiConnector
    • BlockApi
    • CategoryApi
    • CloneApi
    • CommentApi
    • ContentApi
    • Core
    • Documents
    • EmbedApi
    • Event
    • ExportApi
    • FeatureApi
    • FormApi
    • GTM
    • GalleryApi
    • HelpApi
    • Hotspot
    • IdeaSurvey
    • ImportApi
    • InteractionsApi
    • Intercom
    • MailApi
    • MapApi
    • MapSurvey
    • MediaApi
    • MenuApi
    • MetaTagApi
    • NlpApi
    • NotificationApi
    • Page
    • ParentableContent
    • PaymentApi
    • PermissionsApi
    • Postcode
    • ReCaptcha
    • Redirects
    • Renderer
    • ReportApi
    • RestrictionApi
    • RevisionApi
    • SearchApi
    • Settings
    • ShareableApi
    • Slack
    • SlugApi
    • SubscribableApi
    • Survey
    • Team
    • TenantApi
    • TestApi
    • ThemeApi
    • Timeline
    • TranslationApi
    • Update
    • Users
    • VisualisationApi
    • WorkflowApi
    • Wysiwyg

MetaTagAPI Module

This module generates metatag data that is then shared to the frontend.

Model bound routes

Routes that are bound with a model will generate metatag data based on the model title and summary data, canonical links will also be generated for both slug and id routes.

Config overrides

Routes that are not passed a model will use the default data provided in this modules metatag.php config file, however each route also has the opportunity to provide it's own meaningful metatag data by defining a route entry in the config file.

Copy the metatag.php config file from this module into the /config directory of your project.

eg:

...
routes' => [
        'name.of.route' => [
            'title' => 'Page title',
            'description' => 'meaningful page description.',
            'image' => 'path to image',
        ],
    ],

Edit this page
Prev
MenuApi
Next
NlpApi