fabianmichael / kirby-meta

All-in-one solution to all of your SEO/OpenGraph/JSON-LD needs. 👀
MIT License
65 stars 8 forks source link

Showing custom fields alongside meta tab #40

Closed iedev1 closed 1 year ago

iedev1 commented 1 year ago

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!

fabianmichael commented 1 year ago

@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