Properties

Layer command. Substitution variable references are not supported in layer=.

comp is not permitted as a name string. An error is returned if the same name is assigned to more than one layer, or if a layer is referenced by name which has not been defined previously.

Default

layer=comp. Many commands and attributes apply to layer 0 if layer=comp.

Special Cases

  • If the same name is mapped to multiple layers (for example: layer=1,image&layer=2,image), an error occurs.

  • If the same name is mapped to a single layer multiple times (for example: layer=1,image&layer=1,image), scope is set as usual, without errors.

  • Multiple names for the same layer are supported.

    Either name can be used to reference the layer (for example: layer=1,image&layer=1,picture).

  • If a referenced name is never mapped to a layer number (for example: layer=1,image&layer=picture), an error occurs.

  • Substitution variables are not supported in layer modifiers (for example: layer=$image$).

    This applies to all permutations, not only to layer names but to layer modifiers in general.

  • All merging and overriding rules should work exactly as when same layer is referenced in multiple sources (request, pre or post modifier catalog records, macros, and so on.).

Example

See the examples in Templates.

Experience Manager