Site List and SiteMapProvider

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/13/2014 10:24:07 AM
Gravatar
Total Posts 76

Site List and SiteMapProvider

I had already setup 3 websites (1,2,3) within mojoPortal that work great.  I went to setup a 4th and it created it with a number of 1003.  Then I created another and it did 1004.  I know i can setup the mojoSiteMap.config for those numbers, but they are already setup for 1-600.  I know there is a way to delete those (using the AllowDeletingChildSites), but how do I reset the number back to 4 if it is possible?

Thanks

3/13/2014 1:48:25 PM
Gravatar
Total Posts 18439

Re: Site List and SiteMapProvider

The SiteID column in mp_Sites is an autogenerated identity column that starts at 1 and increments by 1 for each new row created. It would not be advisable to reseed the column to a number lower than the highest existing siteid. If you deleted sites such that only a few sites with a low value for siteid currently exist then you could reseed it to an integer 1 higher than the highest remaining siteid. ie if your highest siteid is 3 you could reseed the column to 4 then when new sites are created it would start with 4 and increment from there

Other than that you could add more rows in the mojoSiteMap.config file to handle the higher siteid values.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.