Custom fields via plugin?

Post Reply
User avatar
bayerberg
Master Bludit
Posts: 142
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 10 times
Contact:

As we got the possibility to create plugins that go with themes is there a way to control $site->customFields() via plugins? I want to add

Code: Select all

{
    "medialink": {
        "type": "string",
        "placeholder": "Youtube, Soundcloud, Vimeo and others",
        "position": "bottom"
    },
    "pagePromoted": {
      "type": "bool",
      "tip": "Page marked for promotion"
    }
}
to the site when enabling the theme to set the page up for the user without them even bothering to add custom fields on their own. Help?
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
Post Reply