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
How to use build_file callback #634
Comments
@nakedsushi https://gist.github.com/miniuchi/4b0a2703a088b33c515be2f6fdc8189e Please check the followings.
|
I checked that build_file callback had been called when creating an entry via Data API. |
Oh interesting, I didn't know that it only gets called when the entry page is set to "Dynamic Publishing." We have it configured to static publishing, so that may be why build_page never gets called. Thanks! |
If we have our configuration set up to statically publish, with archive mapping turned ON, is there a way to use that callback? Or my bigger question is, is there a callback I can use to trigger a plugin's method after an entry's archive mapping is created in the file system? |
Sorry, this is a check list of wrong conditions. You can use build_file callback when using “Static Publishing”.
Are you using build_page callback, not build_file callback? |
According to this page, there's a build_file callback:
https://github.com/movabletype/movabletype/blob/f02afa4e1ed554ebc3c265d3856fb09e1666eb00/lib/MT/Callback.pod
When writing an MT plugin that is triggered by that callback, how should the callback be used? For example, this in my
config.yaml
doesn't seem to work:Is this a bug? When I create an entry and publish it, it doesn't seem to call my plugin. Same for updated and editing an existing entry.
The text was updated successfully, but these errors were encountered: