|
<isactivedatacontext>
Allowed locations:
<head>
<body>
- Anywhere that script tags are valid.
|
1<isactivedatacontext
2 category = current_category //req
3/>
Collects category context from a page for active data.
Should only be in one template used to render a page.
|
|
<isactivedatahead>
Allowed location:
|
Allows collection of active data from pages with a <head> tag.
|
|
<isanalyticsoff>
Allowed locations:
<head>
<body>
- Anywhere that script tags are valid.
|
Disables analytics for single pages.
|
|
<isbuynow>
Allowed locations:
<body>
- Anywhere that script tags are valid.
|
1<isbuynow payment-request = SalesforcePaymentRequest expression \\ req>
2</isbuynow>
Injects <script> to render express checkout buttons that lets a shopper buy a specific product.
|
|
<isbreak>
Allowed locations:
|
Only used inside <isloop> for terminating loops.
|
|
<iscache>
Allowed location:
|
1<iscache
2 status = "off" | "on"
3 type = "relative" | "daily" //req
4 hour = duration_hr
5 minute = duration_min
6 varyby = "price_promotion"
7/>
Cache a page.
The tag can be located anywhere in the template. However, we recommend that caching statements are placed at the beginning of a template.
If the tag occurs several times in one template, the one set to cache off or the one with the shortest cache time is used as the cache setting for the resulting page.
|
|
<iscomment>
Allowed location:
|
1<iscomment>
2 ...
3</iscomment>
Add documentation to the template.
As a best practice, include an initial comment that describes the purpose, the requirements, and the effect of a template from both a business point of view and a technical perspective.
Using <iscomment> is preferable to using HTML comments, especially for sensitive information, because the tag is removed automatically by B2C Commerce on rendered pages.
|
|
<iscomponent>
Allowed location:
|
1<iscomponent
2 pipeline = pipeline_name //req
3 locale = locale_name
4 parameterN = valueN //zero or more
5/>
Include the output of a pipeline in the page.
|
|
<iscontent>
Allowed location:
- Before the
DOCTYPE declaration
|
1<iscontent
2 type = MIME_type
3 charset = char_set;
4 encoding = "on" | "off" | "html" | "xml"
5 | "wml"
6 compact = "true" | "false"
7/>
Define the MIME type of the output document.
Don’t specify <iscontent> if it isn’t needed. The default for pipeline responses is text/html, UTF-8, and compact="false".
The default for emails when using the SendMail pipelet is text/plain.
To make sure all characters in a document are correctly encoded, the <iscontent/> tag should always be first in an ISML template.
|
|
<iscontinue>
Allowed location:
|
Jump to the beginning of the loop.
Only used inside <isloop>.
|
|
<iscookie>
Allowed location:
|
1<iscookie
2 name = cookie_name //req
3 value = cookie_value //req
4 comment = cookie_use
5 domain = domain_name
6 path = pathname
7 maxAge = cookie_lifetime
8 version = cookie_spec
9 secure = "on" | "off"
10/>
Set a cookie.
|
|
<isdecorate>
Allowed location:
- Must wrap all content to be decorated.
|
1<isdecorate
2 template = template_name //req
3>
4 ...
5</isdecorate>
Template decoration mechanism.
For <isdecorate> to render a page, the content it wraps must contain an <isreplace/> tag.
|
|
<iselse>
Allowed location:
|
1<isif condition = if_expression>
2 ...
3<iselseif condition = elseif_expression>
4 //0 or more
5 ...
6</iselseif>
7<iselse>
8 ...
9</isif>
Specify what happens if a condition doesn’t evaluate to true.
Must be used with <ifelse>.
|
|
<isif>
Allowed location:
|
1<isif condition = if_expression>
2 ...
3<iselseif condition = elseif_expression>
4 //0 or more
5 ...
6</iselseif>
7<iselse>
8 ...
9</isif>
Create conditional template code.
|
|
<iselseif>
Allowed location:
|
1<isif condition = if_expression>
2 ...
3<iselseif condition = elseif_expression>
4 //0 or more
5 ...
6<iselse>
7 ...
8</isif>
Specify a subcondition for an <isif> tag in a loop.
|
|
<isinclude>
Allowed location:
|
1<isinclude
2 (template = template_name)
3 | (url = url_path)
4//req
5/>
Includes the contents of one template inside another.
As a best practice, add includes that affect the whole page to the top of the template.
|
|
<isloop>
Allowed location:
|
1<isloop
2 (items = item_object )
3 | (iterator = iter_object)
4 //req
5 (alias = alias_name) | (var = var_name)
6 status = <var name>
7 begin = <expression>
8 end = <expression>
9 step = <expression>>
10 ...
11</isloop>
Creates a loop.
See also <isbreak>, <iscontinue>, and <isnext>.
|
|
<ismodule>
Allowed location:
|
1<ismodule
2 template = template_path \\req
3 name = tag_name \\req
4 attribute = attr_name \\req
5/>
Declares custom tags.
In SiteGenesis, all <ismodules> are declared in one file: util/modules.isml.
|
|
<isnext>
Allowed location:
|
Jump forward within a loop.
Only used inside <isloop>.
|
|
<isobject>
|
1<isobject
2 object = name \\req
3 view = "none" | "searchhit"
4 | "recommendation" | "setproduct"
5 | "detail" \\req
6 ...
7</isobject>
Collects page impressions or views from the storefront.
Must pass an object of type ProductHit.
Must wrap any object you want to record active data for.
|
|
<ispayment>
Allowed locations:
<body>
- Anywhere that script tags are valid
|
1<ispayment
2 payment-request = SalesforcePaymentRequest expression \\ req>
3</ispayment>
Injects <script> to render express checkout buttons that lets a shopper pay for items in the current basket.
|
|
<isprint>
Allowed location:
|
1<isprint
2 value = output \\req
3 (style = style_ID)
4 | (formatter = format)
5 \\style or formatter, but not both
6 timezone = "SITE" | "INSTANCE" | "utc"
7 padding = padding_constant
8 encoding = "on" | "off"
9/>
Format and encode output strings.
|
|
<isredirect>
Allowed location:
- Before the
DOCTYPE declaration
|
1<isredirect
2 location = target_url \\req
3 permanent = "true" | "false"
4>
Redirect to a target URL.
|
|
<isremove>
Allowed location:
|
1<isremove
2 name = var_name \\req
3 scope = "session" | "pdict"
4 | "request" | "page"
5>
Remove user-defined variables.
|
|
<isreplace>
Allowed location:
- Must be within
<isdecorate> tags
|
The insert content to be decorated.
If a template is going to be remotely included, the <isdecorate> tags can be in the including template.
|
|
<isscript>
Allowed locations:
<head>
<body>
- Anywhere that script tags are valid
|
1<isscript>
2 ...
3</isscript>
Create a script within a template.
|
|
<isselect>
Allowed location:
|
1<isselect
2 name = simple_name \\req
3 iterator = loop_var \\req
4 description = box_text \\req
5 value = text_value \\req
6 condition = "true" | "false"
7 encoding = "on" | "off"
8/>
Enhancements to the HTML <select> tag.
|
|
<isset>
Allowed location:
|
1<isset
2 name = var_name \\req
3 value = var_value \\req
4 scope = "session"|"request"
5 |"page" \\req
6/>
Set user-defined variables.
|
|
<isslot>
Allowed location:
<body>
- Usually within
<isdecorate> tags
|
1<isslot
2 id = id \\req
3 context = "global"
4 | "category" \\req
5 context-object = context-object \\req
6 description = description \\req
7 preview-url = url \\req
8>
Define slots for content display.
|
|
<isstatus>
Allowed location:
|
1<isstatus
2 value = http_code \\req
3/>
Define a status code.
|