In addition to all the automatic features that the Subgurim SiteMap has, you can interact
with it with your custom code, using any of the next methods:
-
addSiteMap: adds an url to the Subgurim SiteMap database.
-
deleteSiteMap: deletes an url from the Subgurim SiteMap database.
-
clearSiteMap: clears all the Subgurim SiteMap database (be careful with this methood ;) )
-
showSiteMap: returns a string with the final SiteMap XML file.
Here we place a C# example of code that use this method's:
using Subgurim.Controles.SSM;
...
SubgurimSiteMapBLL.addSiteMap("http://www.mydomain.com/myfolder/mypage.aspx");
//SubgurimSiteMapBLL.deleteSiteMap("http://www.mydomain.com/myfolder/mypage.aspx");
//SubgurimSiteMapBLL.clearSiteMap();
Response.Clear();
Response.ContentType = "text/xml";
Response.Flush();
Response.Write(SubgurimSiteMapBLL.showSiteMap());
Response.End();