PHPackages                             se7enxweb/enhancedselection2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. se7enxweb/enhancedselection2

ActiveEzpublish-legacy-extension[Utility &amp; Helpers](/categories/utility)

se7enxweb/enhancedselection2
============================

The Enhanced Selection type was initially based on the standard eZ publish Selection ('ezselection') datatype. It's original intent was to provide the same functionality as the standard datatype, but store an identifier instead of an id in the contentobject attribute.

2.1.2(2y ago)1331↓50%5GPL-2.0-onlyPHP

Since Sep 23Pushed 2mo agoCompare

[ Source](https://github.com/se7enxweb/enhancedselection2)[ Packagist](https://packagist.org/packages/se7enxweb/enhancedselection2)[ RSS](/packages/se7enxweb-enhancedselection2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (10)Used By (5)

Enhanced selection datatype
---------------------------

[](#enhanced-selection-datatype)

The Enhanced selection type was initially based on the standard eZ Publish selection (`ezselection`) datatype. It's original intent was to provide the same functionality as the standard datatype, but store an identifier instead of an ID in the contentobject attribute.

Later on, it was extended to provide more functionality, particularly on the class level.

What does it do?
----------------

[](#what-does-it-do)

The end result is exactly the same as the standard selection datatype. It provides a dropdown list of the given options (multiselect is also supported).

The real enhancements are behind the scenes for most users, but they should make the life of the developer/site admin a bit easier.

Then what IS different?
-----------------------

[](#then-what-is-different)

There are two areas that are affected by the enhancements.

The easiest one is on the content object level. The standard selection datatype stores the ID of the option you chose during the edit of an object. While this can be ok for some, it was not what we wanted. If you change the options of the selection datatype, the ID can point to the wrong option. The change we did is right there: it no longer stores an ID, but the identifier of the option you picked. This enables the datatype to track changes in the options as long as identifiers don't change. Where does the identifier come from? Read on, and you'll find out :-)

The second area with enhancements is the content class edit. Several functionalities have been added here in comparison to the standard selection datatype.

First of all, each option you add consists of two fields: the human readable form of the option and the identifier. If you do not specify an identifier, the datatype will generate one for you using the same mechanism as eZ Publish (class identifier, attribute identifier, ...).

Furthermore, there are up and down buttons next to each row (= option). This way, you can easily change the order of the options. The options in the final dropdown list will be displayed in the same order as you can see in the content class edit.

The datatype also supports information collection.

I'm still not sure how it works
-------------------------------

[](#im-still-not-sure-how-it-works)

Well, why don't you try it then?

Install the extension, create a test class, add the datatype and play with it.

How do I install it?
--------------------

[](#how-do-i-install-it)

Please read [installation instructions](INSTALL.md)

Version history
---------------

[](#version-history)

- v1.0:

    - Original SCK-CEN extension
- v1.1:

    - Added Solr indexing handler together with `fromString`/`toString` methods in datatype
- v2.0:

    - Rewrite extension to store the options in the database table instead of serialized array
- v2.0.1

    - Bugfix in migrate script
- v2.0.2

    - Add database schema file

Disclaimer &amp; copyright
--------------------------

[](#disclaimer--copyright)

Enhanced selection extension for eZ Publish 4.x Copyright (C) 2003-2008 SCK-CEN (Belgian Nuclear Research Centre)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

This extension has been developed as part of projects inside the Belgian Nuclear Research Centre ().

The extension is tailored to fit our needs, and is shared with the community as is.

YMMV!

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance56

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~493 days

Recently: every ~793 days

Total

8

Last Release

803d ago

Major Versions

1.1 → 2.02015-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2a5049c5b1e7a22c301a2472d09281be35f717da316873861c1a8ae785ada7a?d=identicon)[7x](/maintainers/7x)

---

Top Contributors

[![emodric](https://avatars.githubusercontent.com/u/362286?v=4)](https://github.com/emodric "emodric (26 commits)")[![se7enxweb](https://avatars.githubusercontent.com/u/51429274?v=4)](https://github.com/se7enxweb "se7enxweb (3 commits)")[![hknezevic](https://avatars.githubusercontent.com/u/2102162?v=4)](https://github.com/hknezevic "hknezevic (1 commits)")

### Embed Badge

![Health badge](/badges/se7enxweb-enhancedselection2/health.svg)

```
[![Health](https://phpackages.com/badges/se7enxweb-enhancedselection2/health.svg)](https://phpackages.com/packages/se7enxweb-enhancedselection2)
```

PHPackages © 2026

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