Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorAmanda J Bauman
Contribution Summary:
  • Articles authored: 175
  • Articles edited: 130
  • Comments Posted: 3

Recent articles by this author

PDF of Developing Exceptional Multi-Channel Web Experiences

This is the PDF version of this guide.

Additional resources for Building a Sample Website using IBM Web Content Manager 7.0

The following resources are available for download, as referenced in the instructions in building the River Bend Tea and Coffee site. Images used in Building the site to download these, click here. WCMRedbookImages.zip Presentation Templates to download these, click here. Presentation ...

1.0 Preface

IBM Lotus and IBM® Redbooks® have partnered together to show you by example how to build and implement a Social Portal application using WebSphere® Portal Server V8 with IBM Connections 4.0. The guide is divided into the following sections: 2IntroductiontosocialportalIntroduction to ...

2 Introduction to social portal

In this section, we introduce the concept of a social portal, and the general topics to be covered in this redwiki. We provide an overview of how to make an existing website social, and a list of useful references that readers might use.

2.1 What's in this guide

What's in this guide IBM WebSphere Portal and IBM Web Content Management offer facilities to support the creation of a social portal, especially when combined with the marketleading social capabilities of IBM Connections. This guide looks at a number of product capabilities, which are ...

Community article3.2.7.4 Creating the menu component

Added by IBM contributor Amanda J Bauman on December 13, 2011 | Version 1
expanded Abstract
collapsed Abstract
This section provides the steps to create the menu component for the River Bend site.
Tags: Redbooks
ShowTable of Contents
HideTable of Contents
  • 1 Creating menu component using authoring template
  • 2 Creating menu component using authoring template and site area
    • 2.1 Menu - Offers
    • 2.2 Menu - Recipes
    • 2.3 Menu - Latest events
    • 2.4 Menu - Featured content
    • 2.5 Menu - Current area items
A menu is ultimately a search mechanism that groups together related documents based on specific criteria such as categories, keywords, authoring templates, site areas, and so forth.

In this section, we provide the steps to create the menu component for the River Bend site.

There are two methods of creating the menu component:
  • Creating menu component using authoring template
  • Creating menu component using authoring template and site area

Creating menu component using authoring template


For the River Bend website, we create a menu that uses the authoring template as search criteria. It allows users to find content throughout the website independently of a site area. The menu that you create in this section appears on the home page displaying the 4 main site areas using images from the site areas as links.

This content page displays content that has authoring template General assigned, but may be linked to any site area.

To create the menu component, follow these steps:
  1. Click New > Component > Menu.
  2. In the Name field, enter Menu-HomePage.
  3. In the Menu Criteria section, under Select the criteria to use when searching for content: choose Authoring Templates.
  4. In the Authoring Template section, click on Add Authoring Templates and choose AT_General.
  5. Click OK.
  6. In the Menu design properties, leave the default options.
  7. In the Design for each menu search result add the following:

    <a href="<Placeholder tag="href"/>">
    <Element context="autoFill" type="content" key="Image"/></a>

    Hints: This is referencing the component stored in the Image field of the content items.

To preview the menu, create the content first.

Creating menu component using authoring template and site area


In the following steps, we show you how to create a similar menu but selecting both the site area and the authoring template. We could implement it with the site area only, but since we have other content (ex. Default content) that we don't want to appear in the menu, we want to add the authoring template as a search parameter as well.

This menu will be displayed when clicking on the "Locations" from the tab “About us”. The page will first display the default content of the site area followed by the menu. Refer to below figure showing a part of the "locations" page.



To create a menu using authoring template and site area as search criteria, follow these steps:
  1. Click New and choose Component Menu. In the name field, enter Menu-Locations.
  2. In the Menu Element Query, choose Authoring Templates , and Site Areas.
  3. In the Authoring template section, Click on Add Authoring Template.
  4. Choose Locations and click OK.
  5. In the Site Areas section, click on Add Site Areas.
  6. Navigate to Locations by clicking on Home > About Us > Locations.
  7. Expand Further Options and select Current content.
  8. Add the following html to the header:

    <table>
    <tr><td> Store Locations: </td></tr> 
  9. Add the following html to the Design for each menu search result:
       1:  
       2:  <tr><td> 
       3:  <b>[Property context="autofill" type="content" field="title"] </b>
       4:  </td></tr>
       5:  <tr><td> 
       6:  [Element context="autofill" type="content" key="txt_Summary"]
       7:  [Element context="autofill" type="content" key="rtf_Body"]
       8:  [Element context="autofill" type="content" key="img_Image"]
       9:  [Element context="autofill" type="content" key="shtxt_TheStoreTeam"]
       10:  [Element context="autofill" type="content" key="sel_Country"]
       11:  </td></tr>
  10. Close the table using the following html in the footer:
       1:   </table> 
  11. In the Separator, you can either reference an image which represents a line to separate the result or add a dotted line which could be changed later.

To add an image not already created as an image component, do the following steps:
  1. In the separator section, click on Insert an Image.
  2. Click on Browse and navigate to the image seperator_490.gif.
  3. Select the option Add image to library and grant all users access and click OK.
  4. Click Save and Close.

To see the image that has been added to the library, click on Component > Image. You will find a new image component added with the file name seperator_490.gif.

Repeat steps 1 through 21 to create the following menu components:

Menu Name
(Menu Criteria)
Authoring Template
Site Area
Other options
Menu - Current Area Items


Exclude current content from results
Location = Further Options > Current Content
Display Order = Decending
Results Primary Sort Key = Publish Date
Menu - Featured Content

/Riverbend/Riverbend/Home/Our Community
Categories = /Riverbend/Riverbend/Featured (include descendants)
Display Order = Decending
Results Primary Sort Key = Publish Date
Menu - Latest Events

/Riverbend/Riverbend/Home/Our Community/Events
Display Order = Decending
Results Primary Sort Key = Publish Date
Menu - Recipes
Recipe

Exclude current content from results
Display Order = Ascending
Results Primary Sort Key = Publish Date
Menu - Careers

Company/Careers with us

Menu - Offers
News
News/Promotions

Menu - Corporate Information
News
News/Corporate Information

Menu - Offers


The Design for the menu would be as follows (no header or footer):

   1:  
   2:  <!-- Design Results -->
   3:  <tr> <td> <a href="<Placeholder tag="href"/>">
   4:  	<Placeholder tag="name"/></a><br>
   5:  	</td>
   6:  </tr> 


Menu - Recipes


The Header, Design and Footer for the menu would be as follows:

   1:  
   2:  <!-- Header -->
   3:  <div class="contentIndex">
   4:      <div class="body">
   5:      <h1>Recipes</h1>
   6:          <ul class="list">
   7:  
   8:  <!-- Design Result -->
   9:  <li class="contentEditContainer item">
   10:  	<div class="itemDetails">
   11:  		<h3 class="itemTitle">
   12:  			[Component name="riverbend/site images/downloadicon"] <a href="[Element context="autofill" type="content" key="Recipie"]">[Property context="autofill" type="content" field="title"]</a>
   13:  		</h3>
   14:  			<div class="itemSummary">
   15:  				[Property context="autofill" type="content" field="description"]
   16:  			</div>
   17:  	</div>
   18:  <div class="contentClear"></div>
   19:  </li>


   1:  
   2:  <!-- Footer -->   
   3:      </ul>
   4:      </div>
   5:  </div>


Menu - Latest events


The Header, Design and Footer for the menu would be as follows:

   1:  
   2:  <!-- Header -->
   3:  <div class="contentIndex">
   4:      <div class="body">
   5:          <ul class="list">
   6:          <li class="contentEditContainer item first"></li>


   1:  
   2:  <!-- Design Result -->			
   3:  <li class="contentEditContainer item">
   4:  <div class="itemImage">
   5:      [Element context="autofill" type="content" key="ImageTn"]
   6:  </div>
   7:      <div class="itemDetails">
   8:          <h3 class="itemTitle">
   9:              <a href="[URLCmpnt context="autofill" type="content" mode="current"]">[Property context="autofill" type="content" field="title"]</a>
   10:          </h3>
   11:  		<span class="itemSubTitle"> 
   12:  		    [Element context="autofill" type="content" key="Date 1" format="DATE_LONG"] - [Element context="autofill" type="content" key="Location"]
   13:  		</span>
   14:          <div class="itemSummary">
   15:              [Property context="autofill" type="content" field="description"]
   16:          </div>
   17:          <div class="itemLink">
   18:                  [Component name="riverbend/html - read more link"]
   19:          </div>
   20:       </div>
   21:  <div class="contentClear"></div>
   22:  </li>


   1:  
   2:  <!-- Footer -->   
   3:      </ul>
   4:      </div>
   5:  </div>


Menu - Featured content


The Header, Design and Footer for the menu would be as follows:

   1:  
   2:  <!-- Header-->   
   3:  <div class="contentIndex">
   4:      <div class="body">
   5:          <ul class="list">
   6:          <li class="contentEditContainer item first"></li>


   1:  
   2:  <!-- Design Results-->
   3:  <li class="contentEditContainer item">
   4:  <div class="itemImage">
   5:      [Element context="autofill" type="content" key="ImageTn"]
   6:  </div>
   7:      <div class="itemDetails">
   8:          <h3 class="itemTitle">
   9:              [Property context="autofill" type="content" field="title"]
   10:          </h3>
   11:          <div class="itemSummary">
   12:              [Property context="autofill" type="content" field="description"]
   13:          </div>
   14:          <div class="itemLink">
   15:                  [Component name="riverbend/html - read more link"]
   16:          </div>
   17:       </div>
   18:  <div class="contentClear"></div>
   19:  </li>


   1:  
   2:  <!-- Footer-->
   3:      </ul>
   4:      </div>
   5:  </div>


Menu - Current area items


The Header, Design and Footer for the menu would be as follows:

   1:  
   2:  <!-- Header -->
   3:  <div class="contentIndex">
   4:      <div class="body">
   5:      <h1>Products</h1>
   6:          <ul class="list">


   1:  
   2:  <!-- Design Result -->			
   3:  <li class="contentEditContainer item">
   4:  <div class="itemImage">
   5:      [Element context="autofill" type="content" key="ImageTn"]
   6:  </div>
   7:      <div class="itemDetails">
   8:          <h3 class="itemTitle">
   9:              <a href="[URLCmpnt context="autofill" type="content" mode="current"]">[Property context="autofill" type="content" field="title"]</a>
   10:          </h3>
   11:          <div class="itemSummary">
   12:              [Property context="autofill" type="content" field="description"]
   13:          </div>
   14:          <div class="itemLink">
   15:                  [Component name="riverbend/html - read more link"]
   16:  				[Component name="riverbend/auth-editcreatedeleteapprove" compute="always"]
   17:          </div>
   18:       </div>
   19:  <div class="contentClear"></div>
   20:  </li>


   1:  
   2:  <!-- Footer and Paging -->
   3:  <div class="foot">
   4:  	<div class="pagingBar">
   5:  		[Component name="riverbend/pn_pagenavigator"]
   6:  	</div>
   7:  </div> 
   8:      </ul>
   9:      </div>
   10:  </div>

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
3Dec 19, 2012 3:57:57 PMJoe Breal  Changed category Featured to Feature in Menu - Featured Content
2Dec 13, 2011 2:47:18 PMAmanda J Bauman  IBM contributor
This version (1)Dec 13, 2011 12:54:24 PMAmanda J Bauman  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use