> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: getSiteInfo() ## Article: getSiteInfo() ## Article Link: https://dev.wix.com/docs/sdk/host-modules/dashboard/get-site-info.md ## Article Content: # getSiteInfo() Returns information about the site's editor, including whether it’s available, currently active, and its publishing status. ## Method Declaration ```ts () => Promise ``` ## Parameters This method takes no parameters. ## Returns ```ts Promise ``` ### SiteInfo Object ```ts { wixEditorAvailable: boolean; wixEditorActive: boolean; editorUrl?: string; published?: boolean; } ``` | Name | Type | Description | |:---------------------|:----------|:------------------------------------------------------------------------------------------------| | `wixEditorAvailable` | `boolean` | Whether Wix Editor or Wix Studio is connected to this site. Returns `false` for sites that use Wix Vibe. | | `wixEditorActive` | `boolean` | Whether Wix Editor or Wix Studio is currently active and accessible. Requires both availability and a valid editor URL. | | `editorUrl` | `string` | Optional. The URL to access the editor for this site, if available. | | `published` | `boolean` | Optional. Whether the site is published. Only available for sites using Wix Vibe. | ## Examples > **Note:** To call this method in [self-hosted apps](https://dev.wix.com/docs/sdk/articles/get-started/about-self-hosted-apps.md), you need to create a [client](https://dev.wix.com/docs/sdk/articles/set-up-a-client/about-the-wix-client.md). See the [setup](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md) guide for more details. ### Verify whether Wix Editor or Wix Studio is available and active ```javascript import { dashboard } from '@wix/dashboard'; const siteInfo = await dashboard.getSiteInfo(); if (siteInfo.wixEditorAvailable) { if (siteInfo.wixEditorActive && siteInfo.editorUrl) { console.log('Editor is active and can be accessed at:', siteInfo.editorUrl); } else { console.log('Editor is available but not currently active'); } } else { console.log('Wix Editor and Wix Studio are not available (possibly using Wix Vibe)'); } ``` ### Handle site publishing status ```javascript import { dashboard } from '@wix/dashboard'; const siteInfo = await dashboard.getSiteInfo(); if (siteInfo.published !== undefined) { if (siteInfo.published) { console.log('Site is published'); } else { console.log('Site is not yet published'); } } else { console.log('Publishing status not available for this site type'); } ``` ### Conditional UI based on Wix Editor or Wix Studio availability ```javascript import { dashboard } from '@wix/dashboard'; const siteInfo = await dashboard.getSiteInfo(); // Show different UI elements based on editor availability if (siteInfo.wixEditorAvailable && siteInfo.wixEditorActive) { // Show "Edit Site" button that links to the editor showEditSiteButton(siteInfo.editorUrl); } else { // Show alternative options or disable editor-related features showAlternativeOptions(); } ```