Hi there,
It seems that on DW 8.4 global tags with a date value are not rendered. I have the following custom code:
[Dynamicweb.Extensibility.Subscribe(Standard.Page.OnGlobalTags)]
public class PageOnGlobalTagsObserver1 : Dynamicweb.Extensibility.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
{
var pageviewNotificationArgs = args as Standard.Page.PageviewNotificationArgs;
pageviewNotificationArgs.Template.SetTag("Test", "This works");
pageviewNotificationArgs.Template.SetTag("Yesterday", DateTime.Now.AddDays(-1)); // This doesn't work
}
}
When I run this code, my Test tag with a value "This works" shows up in DwTemplateTags and I can render its value using @Test. However, the tag Yesterday and all of its child tags for date values do not show up.
Is this expected behavior?
Thanks,
Imar