How can I insert my own global custom tag in a xslt template?
I can get it to work in a html template by inserting the tag <!--@Global:Recipes--> on a html template and the backend code looks like this.
[Subscribe(Dynamicweb.Notifications.Standard.Page.OnOutput)]
public class NotificationGlobalTags : NotificationSubscriber
{
public override void OnNotify(string notification, object[] args)
{
Dynamicweb.Templatev2.Template t = args[0] as Dynamicweb.Templatev2.Template;
if (t == null) return;
t.SetTag("Global:Recipes", getIngredients());
}
When I call DwTemplateTags the new custom tag is not in the list, so how do I call it in a xslt template?