fabianmichael / kirby-meta

All-in-one solution to all of your SEO/OpenGraph/JSON-LD needs. 👀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showing custom fields alongside meta tab

iedev1 opened this issue · comments

commented

I've struggled quite a bit to add this plugin to my existing site.

Whenever I added custom fields, the "Metadata (SEO)" tab would disappear.

Neither the Kirby docs nor the plugin docs explain the tabs option very well (or I just missed it completely!). Regardless, I'm leaving this as a tip for others if they come across the same "issue".

The way to show other fields alongside the plugin's, you need to add another tab. E.g.,

# site/blueprints/site.yml
tabs:
  default:
    # Your columns / sections, etc
    columns:
      - width: 1/3
        sections:
         # ...
  meta: tabs/meta/site

# site/blueprints/pages/default.yml
tabs:
  default:
    fields:
      some_field:
        label: Some field
        type: text
  meta: tabs/meta/page

Thanks for the awesome work!

@iedev1 Thanks for your input, I’ve updated the blueprint setup section of the README. Tabs are explained on this page in the Kirby docs, in case you missed it: https://getkirby.com/docs/guide/blueprints/layout#tabs