function

New

Create one configured SEO plugin instance.

Example

go
seo.New(seo.Config{
  Collections:       []schema.CollectionSlug{"pages"},
  Globals:           []schema.CollectionSlug{"site-settings"},
  UploadsCollection: "media",
  TabbedUI:          true,
})

Arguments

ArgumentTypeDescription
configConfigThe config value.

Returns

The declared result.

*Plugin

How it works

Collection and global selectors are copied. Add the returned plugin to executable application config, install the paired admin package, and run ridu generate.

Full signature

Related types

  • Config

    Resource selectors, layout, field overrides, and executable generation callbacks.

  • Plugin

    A configured SEO extension implementing config transformation, descriptor, and endpoint capabilities.