Magento Module: Insert Product Attribute into a Page Builder Template

Page Builder is not always suitable for product descriptions, especially when content is imported from a wholesaler or ERP system. In such cases, Page Builder displays the content as HTML code, making the description more difficult to edit and modify.
Compatibility
2.4.8, 2.4.7, 2.4.6
€15.38
per item
Email to a Friend

Enquire about this product

Description / Magento Module: Insert Product Attribute into a Page Builder Template

Product Data Anywhere in the Template

Kowal InsertProductAttributeInToTemplate lets you insert data from the current product into content created in the Magento editor, including Page Builder description templates. A shared layout can display different text and images depending on the product currently being viewed.

Instead of duplicating content across multiple descriptions, you can save it in product attributes and select the appropriate field in the widget.

Two Widgets for Building Content

  • Insert Custom Description: retrieves the value of a selected attribute for the current product. The selection list includes text, textarea, price, and weight fields; the main description attribute is excluded from the textarea options.
  • Insert Image: displays an image from a selected media_image attribute.
  • Image settings: CSS class, image size, zoom size, and the option to open the full-size image when clicked.
  • Content processing: the description value is processed by the Magento CMS filter, allowing it to handle any directives and widgets it contains.

Additional Main Description Field

During installation, the module adds the main_description product attribute with the Main descriptionlabel. It is an optional textarea field in the Content group, with values that can vary by store view.

You can use it for an additional section of the description and place its content in a selected part of the template using Insert Custom Description.

How to Prepare a Template

  1. Complete the selected text or image fields for your products.
  2. Insert the Insert Custom Description or Insert Image widget in the appropriate location within the Magento editor content.
  3. Select the attribute and, for an image, configure the display settings.
  4. Save the content and review the result on the product page.

The widgets use the current product context. Values are retrieved from its data; an empty description field returns empty content, while no image is displayed if an image has not been selected. Use of the widgets requires a page where the product context is available.

Installation

Composer package: kowal/module-insertproductattributeintotemplate; module: Kowal_InsertProductAttributeInToTemplate. Installation from a ZIP file in app/code/Kowal/InsertProductAttributeInToTemplate.

After installation, enable the module with php bin/magento module:enable Kowal_InsertProductAttributeInToTemplate, run php bin/magento setup:upgrade , and clear the cache with php bin/magento cache:flush. In production, follow the Magento deployment procedure; the documentation specifies the --keep-generated option for updates.

More Information

Theme compatibility Luma / Blank, KOWAL

Questions and Answers

Does the module allow you to insert the value of any product attribute (e.g., “material,” “size,” “brand”) directly in the Page Builder template?

Yes — the module allows you to dynamically place the value of a selected product attribute in Page Builder content (e.g., in the product page or landing page editor), which increases content flexibility.

Can I drag a block in Page Builder and specify which product attribute should be displayed in it?

Yes — after installing the module, a new block/element type appears in Page Builder, or extended fields are added that allow you to select the attribute code and assign it to a place in the content.

Is there a configuration that allows you to specify default text or a value when an attribute is empty?

Yes — in the module settings, you can specify fallback text or hide the element if the product attribute has no value.

Does the module also work for different store views (multi-store) and different languages?

Yes — because the module operates on standard product attributes and integrates with Page Builder in Magento 2, it supports environments with multiple store views/languages.

Does installing the module require modifying Magento core files or theme files?

No — the module works as a Magento 2 extension and integrates with Page Builder without overwriting core files, making future updates easier.

Can I use an attribute value in SEO or marketing content (e.g., “Material: X”) in a Page Builder block without having to manually edit each product?

Yes — the module automatically retrieves the attribute value for the current product and displays it in the Page Builder block content, saving time and eliminating the need to enter it manually for each product.

Does this negatively affect the store’s performance?

Usually not — displaying an attribute value is a lightweight read of product data. However, as always with Page Builder and a larger number of blocks, performance should be checked in a test environment.

Can I customize the display style of the attribute value (color, font, layout) in the Page Builder block?

Yes — although the basic configuration lets you insert the value, the layout/block can be customized in the theme or with CSS so that the style matches the store’s design.

Does the module support / work with Page Builder available by default in Magento 2 (Commerce) or as an add-on in the Community version?

Yes — the module is intended for Magento 2 with Page Builder functionality; before installation, it is worth checking whether your Magento version has or supports Page Builder. (Source: module listing)

Do I receive technical support and updates after purchasing the module?

Yes — the manufacturer states that support and updates are provided for the modules available in the store.

Module Installation Instructions

Installation

* In a production environment, please use the option --keep-generated

Type: Composer

  1. The module is available in the Composer repository:
    • Private GitLab repository: https://gitlab.com
  2. Add the Composer repository to your configuration:
    composer config repositories.insert.product.attribute.template vcs https://gitlab.com/magento2ext/insert-product-attribute-in-to-template
  3. Add the access token for the private GitLab repository:
    composer config --auth gitlab-token.gitlab.com <TWÓJ_TOKEN>
  4. Install the module using Composer:
    composer require kowal/module-insertproductattributeintotemplate
  5. Apply the database updates:
    php bin/magento setup:upgrade
  6. Clear the cache:
    php bin/magento cache:flush
Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Magento Module: Insert Product Attribute into a Page Builder Template
Your Rating:
Quality
Price
Support
loader
Loading...

You submitted your review for moderation.

Update cookie preferences