Salesforce B2C Commerce 23.6 > Developing Your Site > Development Components > Templates > ISML

isreplace Element

The decorator template uses <isreplace/> to identify where the decorated content is to be included.

Syntax

<isreplace/>

Purpose

Typically, only one tag (<isreplace/>) is used in the decorator template. However, multiple or zero <isreplace/> tags can also be used.

Example 1: Rendering Template that Uses Decorator

<isset name="DecoratorTemplate" value="folder/pt_mytype" scope="page"/>
<isdecorate template="${DecoratorTemplate}">
    ...content...
</isdecorate>

In this example, the page contents of the main portion of the browser are inserted into the HTML file.

Example 2: Decorator Template

<body>
  <div id="pt_mytype">
    <div id="container">
      <div id="main">
        <div id="content">
	  <isreplace/>
	  </div>
      </div> <!-- end main -->
      <isinclude template="components/template">
    </div> <!-- end container -->
  </div> <!-- end pt_mytype -->
</body>
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.