Download the PHP package thelia/feature-type-module without Composer
On this page you can find all versions of the php package thelia/feature-type-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package feature-type-module
Feature Type
Authors: Thelia [email protected]
- This module allows you to add to your features the features types.
- Example : Color, Image link to the textures ...
- An feature can have several types.
- An feature type can have values or not.
- Values can be unique by language.
Compatibility
Thelia >= 2.1
Installation
Manually
- Copy the module into directory and be sure that the name of the module is .
- Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
Usage
- Once activated, click on the configure button for add or edit the features types.
- For associate an feature to an feature type, edit an feature.
Hooks
backoffice :
- feature-type.form-top (in form : create, update, feature type) (params : feature_type_id)
- feature-type.form-bottom (in form : create, update, feature type) (params : feature_type_id)
- feature-type.configuration-top
- feature-type.configuration-bottom
- feature-type.list-action (by feature type) (params : feature_type_id)
- feature-type.configuration-js
Loop
feature_type
Input arguments
Argument | Description |
---|---|
id | A single or a list of ids. |
exclude_id | A single or a list of ids. |
slug | String |
feature_id | A single or a list of features ids. |
Output arguments
Variable | Description |
---|---|
ID | The feature type id |
SLUG | The feature type slug |
TITLE | The feature type title |
DESCRIPTION | The feature type description |
CSS_CLASS | The feature type css class |
PATTERN | The feature type pattern |
INPUT_TYPE | The feature type input type |
MIN | The feature type minimum value |
MAX | The feature type maximum value |
STEP | The feature type step value |
IMAGE_MAX_WIDTH | The max width for image (in px) |
IMAGE_MAX_HEIGHT | The max height for image (in px) |
IMAGE_RATIO | The image ratio required |
IS_MULTILINGUAL_FEATURE_AV_VALUE | Indicates whether the values are unique for each language |
HAS_FEATURE_AV_VALUE | Indicates whether the type feature has values for each feature av |
feature_extend_feature_type
Extends the Thelia loop : Feature
Other input arguments
Argument | Description |
---|---|
feature_type_id | A single or a list of features type ids. |
feature_type_slug | A single or a list of features type slugs. |
Other output arguments
- The features types associated.
- The variable name is equal to the name of the slug,
- The value is boolean, true for associated, false for unassociated.
Example
feature_availability_extend_feature_type
Extends the Thelia loop : Feature availability
Other input arguments
Argument | Description |
---|---|
feature_type_id | A single or a list of features type ids. |
feature_type_slug | A single or a list of features type slugs. |
Other output arguments
- The features types associated.
- The variable name is equal to the name of the slug,
- The variable contains the value.
Example
feature_value_extend_feature_type
Extends the Thelia loop : Feature value
Other output arguments
- The features types associated.
- The variable name is equal to the name of the slug,
- The variable contains the value.
Example
Model
FeatureType::getValue
FeatureType::getValues
FeatureType::getFirstValues
FeatureType::getFeatureAv
FeatureType::getFeatureAvs
All versions of feature-type-module with dependencies
PHP Build Version
Package Version
No informations.
The package thelia/feature-type-module contains the following files
Loading the files please wait ....