yireo / magento2-category-extended

yireo/magento2-category-extended

Allow for categories (in the main menu) to point towards CMS Pages and Custom URLs

magento2-module Compatibility: 2.4.7, 2.4.9 Code Quality: Fail Tests: Pass Security: Pass OSL-3.0

Yireo - Magento 2 Category Extended

Magento version
PHP version
License
Latest Version

Supported Magento Versions
License

[!WARNING]
This Module is still in Developement, don't use it in production

Enhance your Magento 2 category menus with CMS pages and custom URLs!

This module seamlessly integrates CMS pages and custom URLs into your Magento 2 category structure, allowing you to create a more versatile and informative menu for your customers.

Installation

Install the package via;

composer config repositories.yireo/magento2-category-extended git [email protected]:yireo/Yireo_CategoryExtended.git
composer require yireo/magento2-category-extended
bin/magento module:enable Yireo_CategoryExtended
bin/magento setup:upgrade

[!NOTE]
This Module requires Magento 2.3 or higher!
For more requirements see the composer.json.

How to use

Current status

Static Tests
Unit Tests
Integration Tests
Playwright
DI Compilation

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[Unreleased]

[0.1.2] - 25 November 2026

Removed

  • Dropped support for PHP 7.4 and 8.1; PHP 8.2 up to 8.5 is now required

Changed

  • Development files (tests, CI configuration) are no longer shipped in the Composer distribution archive

Fixed

  • Custom URLs are now validated: only absolute http(s) URLs and relative store paths are accepted on save and when rendering or redirecting, preventing stored XSS and unsafe redirects
  • Redirects for categories with a CMS page or custom URL could end in a 200 response showing the category page instead of a 302 redirect
  • Relative custom URLs are now turned into absolute store URLs
  • Categories could link to a CMS page that is not assigned to the current store view
  • Categories with a CMS page or custom URL display mode were not removed from the XML sitemap, and display modes set per store view were ignored
  • The XML sitemap generation could fail when no categories were returned
  • The "CMS Page" and "Custom URL" display mode labels could not be translated
  • Data patches did not return themselves from apply()
  • Composer dependencies on the Magento CMS, EAV, Sitemap and Store modules were missing
  • trim() calls prepared for PHP 8.6 compatibility
Versions
Version Stability QA Status Compatibility Released
0.1.2 stable Fail Magento 2.4.7, 2.4.9 Details 2026-11-25 18:48:56
0.1.1 stable Fail Not yet tested Details 2024-03-11 08:48:42
0.0.1 stable Not tested Not yet tested Details 2024-03-10 08:42:01

Requires 8

Package Constraint
ext-pcre *
magento/framework ^101.0 | ^102.0 | ^103.0
magento/module-catalog ^102.0 | ^103.0 | ^104.0
magento/module-cms ^104.0
magento/module-eav ^102.1
magento/module-sitemap ^100.4
magento/module-store ^101.1
php >=8.2 <8.6

Requires-dev 3

Package Constraint
loki/magento2-functional-tests @dev
phpunit/phpunit ^9.5 || ^10.5
yireo/magento2-integration-test-helper ~0.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 not tested not tested
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 20 20 warnings (ruleset: Magento2), 4 auto-fixable with phpcbf
PHPMD Warning 4 4 rule violations (UnusedFormalParameter:4)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Error Error
2.4.8 7 7
2.4.9 7 7

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit N/A 0 no resolvable dependency tree to audit: Your requirements could not be resolved to an installable set of packages. Problem 1
Malware scan Pass 0
License
OSL-3.0

More from yireo

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.