---
title: 'Insert Product Attribute Into Template'
url: 'https://info.srv.kowal.co/docs/magento/modules/insert-product-attribute-in-to-template'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/insert-product-attribute-in-to-template.md'
lang: en
date: '2026-11-30'
description: 'Insert a widget that reads text or an image from the current product. Choose the attribute, set the image size and enable click-to-enlarge when needed.'
taxonomy:
  category:
    - docs
    - Magento
    - Modules
  tag:
    - page-builder
    - catalog
---

# Insert Product Attribute Into Template

**Composer** `kowal/module-insertproductattributeintotemplate` · **Version** 1.0.25

## Product page

[Insert Product Attribute Into Template — kowal.co](https://kowal.co/magento-module-insert-product-attribute-into-page-builder-template)

## Description

Embeds text or an image from the current product’s attributes into its product page content.

## For whom

For editors who build a shared Page Builder layout and want the content to vary with each product.

## Features

- **Insert Custom Description** widget for description attributes.
- **Insert Image** widget with image attribute, size and CSS class options.
- Optional click-to-enlarge behaviour.

## Installation

From the Magento root, with Composer access to the Kowal package, run

```sh
composer require kowal/module-insertproductattributeintotemplate
bin/magento module:enable Kowal_InsertProductAttributeInToTemplate
bin/magento setup:upgrade
bin/magento cache:clean
```

## Configuration

1. Populate a description or image attribute on a test product.
2. In an editor that supports Magento widgets, insert **Insert Custom Description** or **Insert Image** and select the matching attribute.
3. For images, choose the display size. If you enable **Display full image on click?**, choose the enlarged size too. Save and open the product page.

## Requirements / notes

The widget reads the current product at render time. Place it in content rendered in the context of a product page.

## FAQ

**Why is the description empty or showing “No product!”?**

An empty attribute produces an empty description. The message means there is no current product, as can happen on a standalone CMS page.

## Verify the installation

```sh
bin/magento module:status Kowal_InsertProductAttributeInToTemplate
```

Place the same description widget on two product pages with different attribute values. Compare the output. For the image widget, also check the enlarged view if enabled.

---

## Navigation

- Parent: [Magento 2 Extensions](https://info.srv.kowal.co/docs/magento/modules.md)
- Previous: [Redirect After Login](https://info.srv.kowal.co/docs/magento/modules/redirect-after-login.md)
- Next: [WhatsApp Button](https://info.srv.kowal.co/docs/magento/modules/whatsapp.md)
