PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Add sample content with the site toolbar
+

Search Tips   |   Advanced Search

Add sample content with the site toolbar

The sample content provided with the portal includes four pre-configured content items we can add to a page from the site toolbar. Dragging one of these items into a page automatically creates a copy of the item and adds the copy to the page. The predefined content items are available in the site toolbar in the Web Content category of the Create > Content tab.

  • The Article presents a simple article composed of a title, a short description, and a rich-text body. The default presentation template used to render individual articles includes the following elements:

    • Lightweight inline widgets to support tagging and rating

    • Extra site analytics data that is added to the generated markup

  • The List of Articles presents a list of all articles that exist in the context of the current page. The viewer also enables users to create articles.

  • The Rich Text presents a simple rich text element.

  • The Image presents a simple image.

To use these sample web content viewers...

  1. Go to the page where to add the viewers.

  2. Edit the page, and from the site toolbar, select...

      Create | Content | Web Content

    Now the Create > Content tab shows the Article, List of Articles, Rich Text, and Image content items.

  3. Add the content items to the page by clicking the plus sign (+) or dragging the items onto the page.

  4. Click Save & Exit.


Results

When you add one of these content items to a page, new content is created. The content item is copied into the site area specified by the default content association of the page. A web content viewer instance is added to the page and automatically adjusted to reference the copied content item.

To help you better understand what these components are doing, here is a more detailed look.

Article

When added to a page, the Article renders a sample article from a web content library. The article also includes Edit and Delete icons to modify the article content or to delete the article from the web content library.

The drag and drop configuration that is mapped to the Article content item defines the preferences for the corresponding content viewer portlet. It has the following features:

  • The viewer uses a customized portlet title (Article) instead of the default title to provide contextual information about the content rendered by the viewer. When we are assembling pages and adding web content viewers, taking advantage of details like customized titles is important for orienting users.

  • To ensure that the content item to be rendered can be passed in by other viewers, the viewer is configured to receive links with the setting Other portlet and this portlet. For example, if click a link in an instance of the List of Articles viewer on the same page, this viewer renders the linked content.

  • The Article viewer also defines preferences that enable the generation of extra metadata for the page, which is based on the currently rendered article instance. This metadata includes description, keywords, and author.

  • The default presentation template used to render articles (Web Content Templates 3.0/Article) includes an authoring tools component. The component enables users to modify the content of individual articles with inline editing. The authoring tools component is hidden automatically when the page is not in edit mode.

List of Articles

When added to a page, the List of Articles renders a list of sample articles from a web content library. It references a menu in web content manager that renders a list of all articles that are associated with the current page. The content also includes a button to create an article. The drag and drop configuration that is mapped to the List of Articles content item defines the preferences for the corresponding content viewer portlet. It has the following features:

  • The List of Articles viewer does not contribute page metadata or a page title. This behavior occurs because the viewer renders a list of items instead of specific content that would determine the semantic content of the page.

  • Because the viewer is rendering a list of items, the viewer is not listening to links that are broadcast from other portlets.

  • The default presentation template used to render lists of articles (Web Content Templates 3.0/List of Article) includes an authoring tools component. The component enables users to create an article with inline editing. The authoring tools component is hidden automatically when the page is not in edit mode.

  • The viewer is configured to broadcast links with the Dynamically select a web content page setting. This configuration results in the List of Articles viewer to determine the content rendered by other viewers on the same page, such as the Articles viewer.

Rich Text

The Rich Text content item consists of a name, which is not rendered by default, and a rich text body. The default presentation template used to render rich text (Web Content Templates 3.0/Rich Text) includes an authoring tools component. The component enables users to modify the content of the rich text item with inline editing. The authoring tools component is hidden automatically when the page is not in edit mode.

Image

The Image viewer content item consists of a name, which is not rendered by default, and a reference to an image. The default presentation template used to render images (Web Content Templates 3.0/Image) includes an authoring tools component. The component enables users to modify the image reference with inline editing. The authoring tools component is hidden automatically when the page is not in edit mode.


Parent topic: Create content with sample web content template items

Related tasks:

Create a web content page