Add options to content editor options

Post Reply
rogerraa
Jr. Bludit
Posts: 3
Joined: Sun May 12, 2019 1:02 am

Sun May 12, 2019 1:10 am

Hello,

I am trying to make a plugin that will have options per post. I'm hoping to add a tab along side "General | Advanced | SEO" in the "Options" sidebar of the content editor.

I spent the last couple hours source diving, checking out the PLUGIN BASICS section in the docs. Can't seem to find much info about anything besides the hello world example.

Any help is appreciated, as I do plan on releasing the plugin for everyone. I'm almost sure most people would use it, as it's in pretty much every blog platform/post on the internet these days.

Thanks!
User avatar
diego
Site Admin
Posts: 688
Joined: Sat May 16, 2015 2:53 pm
Contact:

Mon May 13, 2019 1:46 pm

Hi,
you can check alway the current plugins how they are implemented.
The only way to add something in the tab you mention is using Javascript to include an extra tab and the fields you want.
Regards
rogerraa
Jr. Bludit
Posts: 3
Joined: Sun May 12, 2019 1:02 am

Mon May 13, 2019 5:02 pm

Yeah, I looked through quite a few plugins to try and get a handle on it.

But ok, thanks for the help. I will give using js a try.

I have so many ideas for Bludit since discovering it. I look forward to contributing where I can once it all makes sense.


Thanks again!
rogerraa
Jr. Bludit
Posts: 3
Joined: Sun May 12, 2019 1:02 am

Tue May 14, 2019 6:48 pm

Ok, so I opted to go with a global settings instead of per post. I couldn't figure out how to save the options in js. Not sure what ajax endpoint bludit needs for that, and ran out of time.

I have the plugin in a repo if anyone wants to give any advice towards the best practices, etc that goes into a Bludit plugin. As it's my first Bludit plugin, I don't want to release without some other eyes on it.

Repo: https://github.com/rogerraa/bludit-cta
User avatar
Edi
Site Admin
Posts: 1471
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Tue May 14, 2019 11:00 pm

Very nice. Thank you very much!
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply