Identifying SiteID other than by mp_Sites

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/2/2011 12:50:17 PM
Gravatar
Total Posts 167

Identifying SiteID other than by mp_Sites

Hi Joe et al,

After setting up 6 new subsites from one installation I am looking to import new Skins created in artisteer, however have lost track of which SiteID relates to which Site.

You may well have address this before but I can't find any reference in the Forums.

The only solution I have found is to browse the database and look at the mp_Sites table.

is this the only way to find this out or is the SiteAlias Field able to be used and rename the folder /siteid/ to an alphanumeric.

Any Thoughts? 

2/3/2011 10:21:33 AM
Gravatar
Total Posts 2253

Re: Identifying SiteID other than by mp_Sites

Hi,

To find the site ID associated with a given site, you have a couple options.

  1. In the root site, go to the Site Settings and select the site for which you need the ID. Once you do this, the URL will change to include the query parameter 'SiteID' followed by the site ID for the chosen site.
  2. Browse to the site for which you need the ID. Right click anywhere on the site and choose "View Source." Look in the header of the source for this line: <link rel='stylesheet' type='text/css' href='/csshandler.ashx?skin=mitchinson-earthy&amp;s=1&amp;v=2.3.5.5' />. The value for the query parameter 's' will be the Site ID for the chosen site.

HTH,
Joe D.

2/3/2011 10:44:34 AM
Gravatar
Total Posts 18439

Re: Identifying SiteID other than by mp_Sites

You can also add this to user.config:

<add key="ShowSiteGuidInSiteSettings" value="true" />

then in Site Settings it will show the SiteID/SiteGuid for the currently selected site.

Best,

Joe

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