This is a migrated thread and some comments may be shown as answers.

Preventing the CDN script

1 Answer 42 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 27 Nov 2014, 02:36 PM
I'm using the RadSiteMap in the context of the sitefinity breadcrumb widget...

So I've overrode the widget itself and have tried everything I can think of to stop the script from loading, but nothing seems to work.

Basically I just need to render out flat markup I dont need any client features of the widget...

this.SiteMapBreadcrumb.RenderMode = RenderMode.Lightweight;
this.SiteMapBreadcrumb.EnableEmbeddedScripts = false;
this.SiteMapBreadcrumb.EnableEmbeddedSkins = false;
this.SiteMapBreadcrumb.EnableEmbeddedBaseStylesheet = false;

Is it possible?

1 Answer, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 27 Nov 2014, 03:05 PM
Figured it out

this.SiteMapBreadcrumb.Visible = false

...then just generate the markup myself by overriding the Render Method and looping through the nodes.
Tags
SiteMap
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or