I'm developing an extension and I have to extend the Save/SaveClose/SaveNew button behavior to put some new functionality to the Component Presentations on a Page.
The first part of my solution works fine, but I want to know if it's possible to recover the context in my JS file after the default Tridion command call. The purpose is to get the TCM URI of an element that I've just created. I'll explain with an example (there is my extension code):
Netosone.Extensions.BotonSave.prototype._execute = function BotonSave$_execute(selection, pipeline) {
// SOME FUNCIONALITY
$cme.getCommand("Save")._execute(selection, pipeline);
In summary, I have two questions:
- Is it possible to execute more code after the Save command (Tridion) invoke?
- Is it possible to recover the TCM URI of an element that I have just created (after the Save command (Tridion) invoke too)?
Thanks in advance!
item.getId();