I try to have a trigger performed if a page is published on the basis of the content of the label. However, the page is created using a page template. It seems that the label does not yet exist when publishing, because I get an empty variable back. This should actually be filled with the label that I was added to the page template.
Can I make a script in a different way that will run automatically when saving a page made using a template?