Using the LoadContentContainer Method to Load Multiple Views

You must use the Web Template Name of the content container page. For example, to display the search view with the main view, do the following:

  • Create a content container page, such as CCSMainAndSearchView.

  • Use the LoadContentContainer method to load this page.

To load the main view and search view into two frames, the CCSMainAndSearchView web template contains the following tags:

<div od-type="frameset" htmlAttr="cols='100%' border='0' frameborder='No'">
  <div od-type="frame" type="View" htmlAttr="noresize scrolling='Yes'">
    <div od-type="current-view"/>
  <!--od section frame close-->
  </div>
  <div od-type="frame" type="AltView" name="Search" htmlAttr="noresize scrolling='Yes'">
    <div od-type="view" name="Search View" id="Search"/>
  <!--od section frame close-->
  </div>
<!--od section frameset close-->
</div>

In this example, you still reference the main view in the <div od-type="current-view"> tag. You reference alternate views in the <div od-type="view"> tag.

To switch from displaying the search and main views to displaying only the main view, you can call the LoadContentContainer method again, but this time reference the container page that references the CCMainView web template.

OD View Tag

The <div od-type="view"> tag uses the following format:

<div od-type="view" name="xxx" id="yyy">

The <div od-type="view"> tag includes the following attributes:

  • Name. Name of the alternate view.

  • Id. Identifies the location that this view occupies. You use this Id to replace this view with another view.

The <div od-type="frame"> tag contains an alternate view named AltView. You can define only one alternate view for each frameset. If you add more than one alternate view, then you might encounter an error.