apostrophe cms - Calling afterSave in custom module -


i stuck on seems pretty straight-forward task: calling aftersave method in custom module inherits apostrophe-pieces. objective make xhr call time custom content type created or updated. i've tried putting call in /lib/modules/<my-module>/index.js (where think go) , /lib/modules/<my-module>/lib/api.js without luck. in advance guidance on this.

you want hook aftersave module's construct method, commented on gist

https://gist.github.com/nodots/b41e14b4ccffb35e66fbeb84b7dd77bf


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -