Creating a New Page

The Web Author console provides a link that allows content authors to create new pages. However, before you click this link, you need to navigate to a site location where you want the page to be created. This location is referred to as a channel. Traditional Web sites store pages in virtual directories; CMS Web sites provide virtual storage spaces for pages that are called channels. A channel can contain pages and other subchannels. Channels are organized in a hierarchical way; the channels hierarchy defines the navigational structure of the CMS site. CMS site administrators create and maintain the channels hierarchy. For example, in our sample site the horizontal navigation bar underneath the BOTS Consulting graphic represents the site top-level channels (Figure 5-2).

NOTE: We will look into the channels structure and site navigation in Chapter 9.


When we want to create a new page, first of all we need to navigate to a channel where this page will be stored, and then switch to Edit mode to display the Web Author console. When you navigate to the channel, you see the page that is configured as a default for this channel. If you are creating the first page in the channel, the default CMS channel page is displayed. The default CMS channel page displays the channel within the channels hierarchy immediately surrounding the current channel: the parent channel above the current channel, and the subchannels within the current channel.

NOTE: The channel default page is an ASP page called cover.asp located in the folder <installation drive>:\Program Files\Microsoft Content Management Server\Server\IIS_NR\Shared\.


Figure 5-11 shows the CMS channel default page for the Knowledge channel in Edit mode. Depending on whether you are creating the first page in the channel or not, the console will look different. However, as we have seen in Figures 5-8 and 5-11, in both cases the Create New Page option is present; to create a new page, you need to click this link.

Figure 5-11. Default page for an empty channel

graphics/05fig11.gif

NOTE: Another console option for creating pages is Create Connected Page. Connected pages are pages that are based on the same template, or a set of connected templates. You can use connected pages, for example, for multilingual sites. Creating connected pages will be discussed in detail in Chapter 15.


Our next step is to choose a page template on which we are going to base our page. In CMS, the template galleries provide virtual storage spaces for templates. A template gallery can contain templates and other template galleries. Site administrators and developers organize templates into the template galleries.

After you've clicked Create New Page, the Web Author displays the Select Template Gallery dialog, as shown in Figure 5-12. Each template gallery is displayed by name; the number in parentheses at the end of each gallery name shows how many templates are available in this gallery. The order of the list can be sorted by the template gallery name, location, or the last modified date by clicking the appropriate column heading. Template galleries in Figure 5-12 are listed by template gallery name.

Figure 5-12. Select Template Gallery dialog in the list view

graphics/05fig12.gif

CMS Templates

In CMS 2002, templates are divided into two parts: a template file and a template metadata. The template file is an ASPX file in the file system that contains the code for the template and provides a blueprint for a page. The template metadata is a list of properties that is stored within a template gallery. It includes the location of the template file as well as additional properties and definitions that are set up by the template designers in order to fully define the functionality of a page based on this template. For example, we may need two different page templates that use the same template file but have different properties set up for a particular placeholder: Pages based on the first template allow both text and images in this placeholder, while pages based on the second template allow only text in the same placeholder.

The template metadata is stored as an item in the template gallery. This item is referred to as a template gallery item (TGI). When we select a template from a template gallery, in effect we select a TGI that contains the location of the template file as well as custom properties and placeholder definitions that are required for the page based on this template. We will discuss TGIs in detail in Chapter 10.


NOTE: The template galleries in Figure 5-12 are displayed in the list view; they can also be displayed in a tree view, which outlines the galleries hierarchy, as shown in Figure 5-13. However, if the user does not have access rights to all template galleries on the site, the tree view may display nothing. To avoid this, make sure you view the galleries using the list view.

Figure 5-13. Select Template Gallery dialog in the tree view

graphics/05fig13.gif


To select the gallery, you need to click the gallery name. In our example, we are going to select the BOTS Consulting template gallery.

After we've selected the template gallery, the Select Template dialog is displayed, as shown in Figure 5-14. The templates list can be sorted either by a template name or by the last modified date and time. You can define how many templates per screen are listed using the drop-down box in the top right of the screen; there are navigation links to navigate between the screens at the bottom of the list. The magnifying glass icon in the first column provides the ability to preview the template in a browser; the hand icon in the Select column allows us to select the template on which to base our new page. Table 5-3 shows the functionality of icons used within the Web Author interface.

Figure 5-14. Select Template dialog

graphics/05fig14.gif

NOTE: You don't have to add content to all page placeholders; if you leave a placeholder empty, the page will not display any data in this placeholder's location.


Table 5-3. Web Author Icons

Icon

Functionality

graphics/preview.gif

Preview

graphics/selecttemplate.gif

Select template

graphics/selectresource.gif

Select resource

graphics/replaceresource.gif

Replace resource

graphics/properties.gif

Properties

graphics/gotopage.gif

Go to page

graphics/gotoconnectedpage.gif

Go to connected page

graphics/calendar.gif

Calendar

After you have selected a page template for example, a template called Article a new instance of this template is displayed in the browser, as shown in Figure 5-15. The next step is to add content to the page placeholders.

Figure 5-15. New page with empty placeholders

graphics/05fig15.jpg



Microsoft Content Management Server 2002. A Complete Guide
Microsoft Content Management Server 2002: A Complete Guide
ISBN: 0321194446
EAN: 2147483647
Year: 2003
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net