In a Dojo module I'm trying to catch 1: When a user publish a page and 2: When a user navigates to edit a page (example: user clickson page "about" in sitetree => catch event). When either of these events happen I want to pull out the full URL to the page.
I was able to find this very helpful gist https://gist.github.com/gregwiechec/5194b2a85d03cc697d13 which list a lot of the events. Currently I have utilized the "/epi/cms/content/statuschange/" and "/epi/shell/context/changed" event. The latter gives the current content in which I have not been able to determine what action is currentlytaking place. The first event "/epi/cms/content/statuschange/" will give you if you're"Publishing" but does not give you the content, only which content id.
Hi!
In a Dojo module I'm trying to catch 1: When a user publish a page and 2: When a user navigates to edit a page (example: user clicks on page "about" in site tree => catch event). When either of these events happen I want to pull out the full URL to the page.
I was able to find this very helpful gist https://gist.github.com/gregwiechec/5194b2a85d03cc697d13 which list a lot of the events. Currently I have utilized the "/epi/cms/content/statuschange/" and "/epi/shell/context/changed" event. The latter gives the current content in which I have not been able to determine what action is currently taking place. The first event "/epi/cms/content/statuschange/" will give you if you're "Publishing" but does not give you the content, only which content id.
Thoughts?
Thanks in advance!