gjshah7254
5/9/2014 - 4:56 AM

Check Page template ID and show a Placholder

Check Page template ID and show a Placholder

<script runat="server">
	protected override void OnInit(EventArgs e)
	{
		string RNZTimeLineTemplate = CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros( "{% CurrentDocument.DocumentPageTemplateID == 488 #%}" );
		bool IsRNZTimeLineTemplate = System.Convert.ToBoolean( RNZTimeLineTemplate );

		if ( IsRNZTimeLineTemplate ) 
		{
			RNZFilterBar.Visible = true;// RNZFilterBar is the name of the placeholder
		}
	}
</script>