Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.3
How can a Content Marker be added to the output using .NET?

Important Note: this code was tested for compliance with Sitecore 5.0.x. It may not function correctly under Sitecore 5.1.x.

 

if ( Sitecore.Configuration.State.ShowEditDots )

{

  HtmlTextWriter output = new HtmlTextWriter( Response.Output );
  Sitecore.Xml.XPath.ItemNavigator iNav =

    new Sitecore.Xml.XPath.ItemNavigator( this.CurrentItem );
  Sitecore.Web.UI.WebControls.ContentDot dot =

    new Sitecore.Web.UI.WebControls.ContentDot( iNav );
  dot.RenderControl( output );

}