Snippet


 

Summary

The Snippet functionality gives you the possibility to use snippets of code from any template and render the snippet another place in the same template or any other template.

Settings

The value is generated automatically.

Remarks

  • If there are 2 identical snippet content sections, they are stacked in order of appearance.
  • Snippets requires 8.3.0.0.

Example

Select the code snippet in your template like this:

<!--@SnippetStart(SelectedProduct)-->
  <h2><!--@Ecom:Product.Name--></h2>
<!--@SnippetEnd(SelectedProduct)-->

Insert this tag where the snippet should be rendered (same or another template):

<!--@Snippet(SelectedProduct)-->