-
Notifications
You must be signed in to change notification settings - Fork 0
Initial plugin setup #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
883f2ec
to
09f47eb
Compare
// databaseId: \craft\helpers\App::env('PHONE_HOME_NOTION_DATABASE'), | ||
// ), | ||
// ], | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes it easy to configure multiple endpoints if the need ever arises.
I could see this being useful with a client who has multiple Craft sites.
We could configure one Notion endpoint for our Viget database. But also set up the client with their own database of just their sites.
Nice work on this, @joshuapease! |
|
||
Create a [new database](https://www.notion.so/help/guides/creating-a-database) in Notion. | ||
|
||
No need to add any columns or properties. This plugin will create them when it's first run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
|
||
protected function defaultDescription(): ?string | ||
{ | ||
return 'Phoning Home'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☎️ Phoning Home
👽 Phoning Home
Options...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be fun... I'm a little leery of emoji in SQL databases. It's probably not a huge issue... but I'd rather not think about it.
Should be resolved fully for Craft 5 (they're tweaking the default charset to be utf8mb4).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Overview
This is the first working version of a standalone Phone Home plugin.
Why are we doing this?
Previously this functionality was tied to our Viget Base module. But a few things prompted the idea of breaking this into it's own plugin.