PHPackages                             yireo/magento2-additional-block-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. yireo/magento2-additional-block-template

ActiveMagento2-module[Templating &amp; Views](/categories/templating)

yireo/magento2-additional-block-template
========================================

N/A

0.0.4(8mo ago)828.4k↑2385.2%1OSL-3.0PHPCI passing

Since Dec 11Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/yireo/Yireo_AdditionalBlockTemplate)[ Packagist](https://packagist.org/packages/yireo/magento2-additional-block-template)[ RSS](/packages/yireo-magento2-additional-block-template/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Yireo AdditionalBlockTemplate
=============================

[](#yireo-additionalblocktemplate)

**A Magento 2 module to allow for additional templates to be rendered, besides the original template.**

### Overview

[](#overview)

When the Magento frontend renders its storefront, it uses the XML layout to position blocks all around. Each block can be rendered via a template and by default, this means that one block only has one template. Adding a new template right before the original template but with a new `` definition causes another `$block` object to be created. This module overcomes this shortcoming and simply allows you to add multiple templates to one single `$block` instance.

### Installation

[](#installation)

```
composer require yireo/magento2-additional-block-template
bin/magento module:enable Yireo_AdditionalBlockTemplate
```

### Usage

[](#usage)

Using the XML layout, you can reference a certain block and add your own template in front of the original template (`before`), after the original template (`after`) or right before the final closing tag in the original template (`nest`):

```

                        Yireo_Example::example-before.phtml
                        before

                        Yireo_Example::example-after.phtml
                        after

                        Yireo_Example::example-nest.phtml
                        nest

```

Each item name (in this case `example1`, etc) can be retreived in the block template using `$block->getAdditionalTemplateName()`.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance67

Regular maintenance activity

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~340 days

Total

3

Last Release

247d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (12 commits)")[![Tjitse-E](https://avatars.githubusercontent.com/u/14849044?v=4)](https://github.com/Tjitse-E "Tjitse-E (1 commits)")

### Embed Badge

![Health badge](/badges/yireo-magento2-additional-block-template/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-additional-block-template/health.svg)](https://phpackages.com/packages/yireo-magento2-additional-block-template)
```

###  Alternatives

[schumacherfm/magento-twig

Twig template engine for Magento 2

6014.6k](/packages/schumacherfm-magento-twig)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
