ページが公開されたときにマクロの 1 つを実行する必要があります。umbracoでこれを行う方法はありますか
1 に答える
2
フックできるイベントがいくつかあります。あなたの場合、Document_AfterPublish()
イベントを使用するかもしれません。
static void Document_AfterPublish(Document sender,
umbraco.cms.businesslogic.PublishEventArgs e)
{
// your code
}
// hook into the event
Document.AfterPublish +=
new Document.PublishEventHandler(Document_AfterPublish);
于 2013-02-15T13:27:54.287 に答える