Repository navigation
Importing MinervaKB articles
Written against v0.35.0.
You want a MinervaKB knowledge base in Statamic: the knowledge base itself, its topics and its articles (kb).
- Check that every article has a topic. The command warns about MinervaKB entries without a topic assignment before anything is imported; an unattended run decides with
--unsupported-content. - Choose
kbas the content type. Articles go to theknowledge_basescollection. - With
--source=api, say which MinervaKB generation the site runs if the command cannot tell; see The MinervaKB generation. - Finish the run. The tree is built as knowledge base, then topics, then articles.
- The root knowledge base entry uses the site name from
resources/sites.yaml. - Topics come from
wp:termwithwp:term_taxonomykbtopic; articles arewp:post_typekb. - Each article uses one topic: the first in the article's category list.
- The tree is built by
MinervaKBProcessor, not the generic pageTreeBuilder.
Note: MinervaKB content restrictions are not imported. Configure them again in Statamic, and on the source site as needed.
With --source=api, where the migration API serves the installed plugin's header, read from disk, its Text Domain decides the generation and --minerva-generation is not needed; a declaration that header contradicts is refused. Otherwise the option is required to import from a site that serves both generations' settings rows. Read the generation from the network plugins page (wp-admin/network/plugins.php) before the run. A declared generation whose row was not served is refused, and so is the option on a file-sourced run.
-
Command reference:
--minerva-generationand--unsupported-content. - The technical reference covers the MinervaKB processor classes.
Home | Your first import | Guides | Troubleshooting | Reference | README | Repository
Written against v0.35.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
- Importing from the migration API
- Previewing an import with verify
- Importing navigation menus
- Importing MinervaKB articles
Troubleshooting
Reference
Project