-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add a panel button to push to remote #85
Comments
Hey gryzzly, maybe a cheap solution would be to use the 'push'-route, that is implemented in the plugin already. I am not entirely sure but I think even for a simple button with a custom link you would have to create your own plugin and add a custom section in Vue that implements this button (you may want to take a look at this cookbook recipie: https://getkirby.com/docs/cookbook/extensions/first-panel-section) In an old version of the plugin there was a button like the one you need, but I think it got removed when the panel was switched to Vue for v3 of kirby. |
Very helpful, thanks for the kind advice! I found this plugin called "Janitor" (https://github.com/bnomei/kirby3-janitor) that allows adding a button via fields in the blueprints, and I think adding a button to do an API call to /git-content/push should work! I’ll update the issue once it’s working |
Hey, so I‘m trying to call the git endpoint like this: In config.php:
where However, I can see that the route is indeed installed at
Do you see something obviously wrong with what I am doing? Thanks! |
- Display last 10 commits - Add buttons to push and pull Closes #85 BREAKING CHANGES: This version breaks compatibility with Kirby < 3.6.0
Hey!
I am helping a friend with their Kirby website and I’d like to enable them (non-tech person) to get the content backed up on git. I think this plugin is perfect for that (I was doing commits once in a while from SSH), but their hosting plan doesn’t offer cron job integration. The content is a lot of images, so doing commits after each change to /content folder sounds slow. But if the cron job would simply trigger an endpoint, would it be a lot of work for me to add a button in the panel that triggers the push? So the friend could simply run it once a week / once in a month or after they are done with a bunch of changes.
Thanks!
The text was updated successfully, but these errors were encountered: