2017 © Pedro Peláez
 

ezpublish-legacy-extension 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.

image

netgen/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.

  • Monday, January 22, 2018
  • by emodric
  • Repository
  • 6 Watchers
  • 1 Stars
  • 8,398 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 12 % Grown

The README.md

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., (*1)

Later on, it was extended to provide more functionality, particularly on the class level., (*2)

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)., (*3)

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

Then what IS different?

There are two areas that are affected by the enhancements., (*5)

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 :-), (*6)

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

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, ...)., (*8)

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., (*9)

The datatype also supports information collection., (*10)

I'm still not sure how it works

Well, why don't you try it then?, (*11)

Install the extension, create a test class, add the datatype and play with it., (*12)

How do I install it?

Please read installation instructions, (*13)

Version history

  • v1.0:, (*14)

    • Original SCK-CEN extension
  • v1.1:, (*15)

    • Added Solr indexing handler together with fromString/toString methods in datatype
  • v2.0:, (*16)

    • Rewrite extension to store the options in the database table instead of serialized array
  • v2.0.1, (*17)

    • Bugfix in migrate script
  • v2.0.2, (*18)

    • Add database schema file

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

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., (*20)

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., (*21)

This extension has been developed as part of projects inside the Belgian Nuclear Research Centre (http://www.sckcen.be)., (*22)

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

YMMV!, (*24)

The Versions

22/01 2018

dev-master

9999999-dev

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.

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

13/08 2015

2.0.2

2.0.2.0

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.

  Sources   Download

GPL-2.0

The Requires

 

29/06 2015

2.0.1

2.0.1.0

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.

  Sources   Download

GPL-2.0

The Requires

 

26/06 2015

2.0

2.0.0.0

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.

  Sources   Download

GPL-2.0

The Requires

 

26/06 2015

dev-1.x-stable

dev-1.x-stable

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.

  Sources   Download

GPL-2.0

The Requires

 

26/06 2015

1.1

1.1.0.0

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.

  Sources   Download

GPL-2.0

The Requires

 

23/09 2014

1.0

1.0.0.0

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.

  Sources   Download

GPL-2.0

The Requires