How to add Frontmatter to your pages

Undraw File Analysis 8k9b

About

Front Matter is a component that permits to replicate the metadata into your page.

This functionality is used when you want to:

  • move your pages and get the metadata in sync in other ComboStrap installation
  • get an history of the metadata modification
  • want to kept your short page id close to your page when using permant url

It borrows its name from the front matter book

The frontmatter is the source of truth for ComboStrap. Any value in the frontmatter will take precedence over the raw metadata or internal database metadata.

Example

A frontmatter is a block located at the start of your page that:

  • starts with ---json
  • contains a json document representing your metadata
  • end with ---

Example:

---json
{
    "name":"Short Name",
    "title":"My Big title in the Search Engine Result Pages",
    "description":"That's the article that you want to read!"
}
---

Replication

The frontmatter replication happens by default page by page when you submit the metadata manager form.

  • If you have just enabled the frontmatter in the configuration
  • And that you want to replicate the managed metadata for all pages
  • You can call the metadata-to-frontmatter command of the cli.
cd $DOKUWIKI_HOME
# optional (for farm)
animal=animal-directory-name
# command
php ./bin/plugin.php combo metadata-to-frontmatter

Configuration

enableFrontMatterOnSubmit

When the enableFrontMatterOnSubmit configuration, you will create a frontmatter when you submit the metadata manager form.

By default, this functionality is disabled if the page does not have already a frontmatter.




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Undraw File Analysis 8k9b
All the metadatas that you can set for your pages

Page Metadata are page configuration. They are also known as: semantic data. or structured data The metadata can be seen and modified via the Metadata Manager. There is two groups of metadata:...
Undraw My Documents
ComboStrap - UI Components

Components are the units of content creation for a page. Together, they create the content of the page.
Undraw My Documents
ComboStrap Semantic - Event

An event page is a page that describes an event
Undraw My Documents
How to use the cli to perform administrative tasks

The cli is a command line client that permits to perform the following administrative tasks: replicate the file content to the database replicate the metadata to the frontmatter delete non-existing...
Undraw My Documents
Page URL (canonical URL )

The page url is the unique official URL of a page and is also known in the SEO world as the canonical url. This url: is created via the link component is in the sitemap is used when users bookmark...
Page Explorer List Name To Ui Region
Page-explorer: adding page navigation easily to your website

With the page-explorer component, you can add an explorer like panel that will list your pages in a list or collapsible tree fashion
Undraw My Documents
Replication

Combostrap replicates data from pages: into the database for different functionality such as: index Routing Page sql into the frontmatter (if enabled) The replication process is by default...
Undraw My Documents
The content quality rule of a page that ComboStrap applies

Learn about how to use the quality rule feature to improve the quality of your website
Undraw Building Websites I78t
The variables that can be used anywhere

This page describes which variables you can use in your content.



Task Runner