@webx-ui/module-seo
@webx-ui/module-seo
SEO as a section of the WebX UI admin panel: the rules written for addresses, the addresses that have moved, and the card that edits what a page says about itself.
The other half is webx-ui/module-seo on the server, which is what actually prints a <head>.
Neither is useful alone.
Install
pnpm add @webx-ui/module-seo
import { createAdmin } from '@webx-ui/module-admin'
import { WxMediaField } from '@webx-ui/module-media'
import { seo } from '@webx-ui/module-seo'
import '@webx-ui/module-seo/style.css'
createAdmin({
modules: [seo({ mediaField: WxMediaField })],
})
The section appears under System once the Composer half is installed and migrated.
Permissions: seo.view, seo.manage.
mediaField is handed in rather than imported, so this package does not depend on the media
library being installed — without it every other SEO field still works and only the share image
is missing.
What it brings
/seo— the rules, listed in the order the site tries them./seo/redirects— the addresses that have moved, busiest first.- Check an address — which redirect catches it, which rule matched, what every source contributed, and what the page ends up saying. One call instead of a reading of the code.
wx-seo— a field type any screen can use, whose value is everything a page says about itself as one object.WxSeois exported directly for a form that would rather place it by hand.
Talking to it directly
import { createSeoApi } from '@webx-ui/module-seo'
const api = createSeoApi(useAdmin())
await api.urls({ q: '/catalog' })
await api.test('/catalog/shoes?page=2')
The guide is at webx-ui.github.io/webx-ui/guide/seo.
License
MIT.
Related Packages
A site audit for the WebX UI admin panel: the production config, the host, and l...
Landing pages for the catalogue of the WebX UI admin panel: a category list with...
Site settings for the WebX UI admin panel: the section that draws the settings s...
Screens as JSON for WebX UI admin panels: the node format, patches, the type reg...
The block constructor for the WebX UI admin panel: the section where a block typ...
Version History
| Version | Released | License |
|---|---|---|
| 0.10.2 | MIT | |
| 0.10.1 | MIT | |
| 0.10.0 | MIT | |
| 0.9.4 | MIT | |
| 0.9.3 | MIT | |
| 0.9.2 | MIT | |
| 0.9.1 | MIT | |
| 0.9.0 | MIT | |
| 0.8.2 | MIT | |
| 0.8.1 | MIT | |
| 0.8.0 | MIT | |
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.11 | MIT | |
| 0.5.10 | MIT | |
| 0.5.9 | MIT | |
| 0.5.8 | MIT | |
| 0.5.7 | MIT | |
| 0.5.6 | MIT | |
| 0.5.5 | MIT | |
| 0.5.4 | MIT | |
| 0.5.3 | MIT | |
| 0.5.2 | MIT | |
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.5 | MIT | |
| 0.4.4 | MIT | |
| 0.4.3 | MIT |
Showing the latest 30 of 43. See every release on npm