Create a site

A site is a group of related content pages with a consistent look and feel, defined by a common layout, theme, and URL suffix.

Before you begin

Role required: content_admin or admin

About this task

Typically, all pages assigned to a site are given the attributes that are defined at the site level, such as the theme and layout. Individual pages can specify otherwise. At the least, a site needs the following fields defined: homepage, search results page, layout, URL suffix, and theme. All pages within a site can be accessed via the site URL suffix. The URL suffix is case-sensitive.

Associating a page with a site provides the following benefits:
  • All pages within a site use the site default layout and theme, saving time.
  • All pages within a site can be accessed using a uniform URL: customer.service-now.com/site-name/page.do.
  • All pages within a site that have a search widget use the same search page.

Before creating a site for the first time, review the Content Management planning page to understand the concepts and principles of CMS.

Procedure

  1. Navigate to Content Management > Sites.
  2. Click New.
  3. Fill in the fields, as appropriate.
    Table 1. Site fields
    Field Input value
    Name A unique name for the site.
    URL suffix The URL suffix for the site. It is incorporated into the URL as follows:

    http://instance.service-now.com/url_suffix/page.do

    Home page The page to display when the user does not specify a page name in the URL:

    http://instance.service-now.com/url_suffix/

    Search page The page that displays search results when a user searches from any page within the site.
    Login page The page to use for logging in to the site. If specified, users must log in to access the pages on the site. If left blank, no login is required to access the pages within the site.
    Gauge target page The page that displays gauge content. When the user clicks a gauge on the new site, the gauge target page opens showing the gauge content. The gauge target page replaces the CMS page in the current tab.
    Title A title for the site. The title can be the same as or different from the Name.
    Description A full description of the site.
    Default layout The layout for pages to use by default. Any page in the site that has a blank Layout field uses the layout set here.
    Default theme The theme for pages to use by default. Any page in the site that has a blank Theme field uses the theme set here.
    Simple catalog display Option to simplify catalog pages in the site by hiding the search bar, breadcrumbs, and the results per page choice list. Selecting this option prevents you from adding attachments from record producers to your CMS site.
    Simple catalog display Yes
    Clear this check box to display the search bar, breadcrumbs, and the results per page choice list in catalog pages.
    Simple catalog display No
    Use external cart Option to omit the default cart when rendering catalog pages within a site that contains catalog pages. Provide a catalog cart block somewhere on the site to allow users to make catalog requests.
    Note: If you select to use an external cart, the No cart check box on a service catalog item has no effect. The external cart appears for all items.

Example

The following is the site record for the ESS Portal:
Site

What to do next

You can add meta tags to a site. Meta tags are special tags that contain information about the site.

A DIV-based layout option is available. Many web page layouts use tables for a consistent look and feel. Tables are effective for numbers and statistics, but can be limiting for designing other types of information. DIV tags are flexible block-element tags. To use DIV tags for layouts, give the tag an ID and assign attributes using CSS.

Changing to CSS and DIV tags can:
  • simplify code
  • reduce the amount of code
  • increase page load speed
  • separate content from presentation
  • help pages adapt to different device resolutions
  • make pages easier for search engines to crawl
  • make code more compliant with evolving web page design standards

A content theme named Administration Theme - Charcoal is included as an example of CSS-driven, DIV-based layouts.

To view the sample code in Administration Theme - Charcoal for a DIV-based layout:
  1. Navigate to Content Management > Design > Layouts.
  2. Click Admin 1 Column.