Kentico CMS 6.0 Developer's Guide

Managing sites

Managing sites

Previous topic Next topic Mail us feedback on this topic!  

Managing sites

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

You can manage the websites in Site Manager -> Sites dialog.

 

Please see New site wizard for more details on creating a new website.

 

General tab

 

Site display name

The name of the site displayed in the administration interface and in site selectors.

Site code name

The name of the site used in the code.

Site domain name

The main domain of the website. Enter the domain name without the http:// protocol and www prefix. If you wish to use a different port than 80, specify it as well.

 

Correct:

mycompany.com

partners.mycompany.com

mycompany.com:8080

 

Incorrect:

http://mycompany.com

www.mycompany.com

Default content culture

Default culture of the site content. It can be changed using the Change button.

Default visitor culture

Sets the content culture that should be displayed by default to visitors who do not have a preferred culture selected (the value of a browser cookie is checked). The (Automatic) option means that the culture will be decided based on the preferences configured in the visitor's browser.

Site CSS stylesheet

Default CSS style sheet used for all pages unless they override the value with their own CSS stylesheet.

Editor CSS stylesheet

CSS style sheet used for the WYSIWYG editor content.

Site description

Optional text description of the website for internal use.

 

Domain aliases tab

 

Here you can manage the website's domain aliases. Each alias represents a different domain name under which the site will be available. For example, if your website uses mycompany.com as its main domain and you also wish to assign the my-company.co.uk domain to the same website, you need to add this domain name to the list of domain aliases.

 

The following fields can be set when creating a new alias or editing (Edit) an existing one:

 

Domain alias

Specifies the domain name used for the alias. Like with the site's main domain name, include the port number if it is not 80, but do not enter the http:// protocol or www prefix.

Default visitor culture

Sets the content culture that should be displayed by default to visitors who arrive on the website through a URL containing this domain alias.

Default alias path

Used to select the default page (document) that should be displayed when the website is accessed through the alias. This overrides the Site Manager -> Settings -> Content -> Default alias path setting.

Redirect URL

Users will be redirected to the entered URL when they access the website through this domain alias. Both absolute and relative URLs are accepted. This field supports macro expressions.

 

If the only purpose of your aliases is to make the site available under multiple domain names, it is recommended to redirect them to the website's main domain.

 

Example:

 

Imagine that the main domain of your website is www.domain.com and you have domain.com defined as a Domain alias with the Redirect URL field set to:

 

{%protocol%}://www.domain.com{%relativepath%}

 

These macros can be used to dynamically redirect users to the correct page under a different domain.

 

{%relativepath%} - is resolved into the current relative URL path when the redirection takes place

 

{%protocol%} - is resolved into the current URL scheme name (protocol) when the redirection takes place

 

Now if a user accesses for example http://domain.com/example.aspx, they will be redirected to http://www.domain.com/example.aspx.

 

 

Cultures tab

 

Here you can assign content cultures to the site, which can then be used to create translated versions of the website's documents. You will use this tab to configure websites that provide content in multiple languages. To learn more, please see the Content management -> Multilingual content chapter.

 

Off-line mode tab

 

Here you can make the currently edited site unavailable for regular users.

 

When in off‑line mode, the live version of the website will not be accessible by visitors, but the site will still remain running and can be worked with normally through the CMS Desk or Site Manager interface by editors and administrators. This can be useful if you need to make major modifications to the site and wish to hide it while the update is in progress. To enable this mode, click the Take the site off-line button.

 

You can choose between two ways of handling users who attempt to access the site while it is off-line:

 

1. Select the Display following message option and add some content using the WYSIWYG editor:

 

devguide_clip1215

 

Click OK to save the message and its content will be displayed to all visitors.

 

devguide_clip1218

 

2. Choose Redirect visitor to following URL and enter the address of an alternate website or page to which users will automatically be redirected until the site is returned back on-line.

 

At any time, you can allow visitors to access the site again by clicking the Bring the site on-line button.