Skip to content

SEO - Image Friendly URLs - Dynamic Patterns

This document provides instructions on how to work with and use dynamic patterns.

General Information

Dynamic Patterns operate on product attributes that are visible on the frontend in product listing pages (PLPs) and product display pages (PDPs).

How does it work?

You can use any characters in dynamic patterns, and product attributes are defined within { } brackets.

{product.name}-{product.sku}

For example: * {product.name} will inject each product’s name into the pattern. * {product.sku} will inject each product’s sku into the pattern.

  • Variables must be defined with the product prefix, as it represents a product model.
  • The variable name that comes after the . character is the attribute_code value.

Example:

  • A product named Wooden Table X0333 with the pattern {product.name}-{product.sku} will generate wooden-table-x0333.
  • A product named Wooden Table X0333, color: red, with the pattern {product.name}-{product.color}-{product.sku} will generate wooden-table-red-x0333.

Important

The list of attributes is linked to Magento Indexes, ensuring that the module does not create performance bottlenecks.

Attribute Configuration

To use an attribute in Dynamic Patterns, it needs to be configured in the following way:

Attribute Configuration

Additionally, it must be enabled for Search Results:

Attribute Configuration - Search

Elastic Suite extension - Attribute Configuration

To use an attribute in Dynamic Patterns with Elastic Suite, it must be configured as shown below:

Elastic Suite Attribute Configuration

Indexing Times

Please remember that after enabling an attribute to layered navigation it might take a while for the attribute to appear on the frontend.