private void SetUpTitle() { string caption = GetString("om.contact.demographics"); mContactDemographicsDataRetriever.GetCaption(); ScriptHelper.RegisterRequireJs(Page); ControlsHelper.RegisterClientScriptBlock(this, Page, typeof(string), "BreadcrumbsOverwriting", ScriptHelper.GetScript($@" cmsrequire(['CMS/EventHub', 'jQuery'], function(hub, $) {{ hub.publish('OverwriteBreadcrumbs', {GetBreadcrumbsData(caption)}); window.top.document.title += $('<div/>').html(' / {caption}').text(); }});")); hdrTitle.InnerText = HTMLHelper.HTMLEncode(mContactDemographicsDataRetriever.GetCaption()); }
private void SetUpTitle() { OverwriteBreadcrumbs(); hdrTitle.InnerText = HTMLHelper.HTMLEncode(mContactDemographicsDataRetriever.GetCaption()); }