Download the PHP package thelia/attribute-type-module without Composer
On this page you can find all versions of the php package thelia/attribute-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 attribute-type-module
Attribute Type
Authors: Thelia [email protected]
- This module allows you to add to your attributes the attributes types.
- Example : Color, Image link to the textures ...
- An attribute can have several types.
- An attribute 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 attributes types.
- For associate an attribute to an attribute type, edit an attribute.
Hooks
backoffice :
- attribute-type.form-top (in form : create, update, attribute type) (params : attribute_type_id)
- attribute-type.form-bottom (in form : create, update, attribute type) (params : attribute_type_id)
- attribute-type.configuration-top
- attribute-type.configuration-bottom
- attribute-type.configuration-action (by attribute type) (params : attribute_type_id)
- attribute-type.configuration-js
Loop
attribute_type
Input arguments
Argument | Description |
---|---|
id | A single or a list of ids. |
exclude_id | A single or a list of ids. |
slug | String |
attribute_id | A single or a list of attributes ids. |
Output arguments
Variable | Description |
---|---|
ID | The attribute type id |
SLUG | The attribute type slug |
TITLE | The attribute type title |
DESCRIPTION | The attribute type description |
CSS_CLASS | The attribute type css class |
PATTERN | The attribute type pattern |
INPUT_TYPE | The attribute type input type |
MIN | The attribute type minimum value |
MAX | The attribute type maximum value |
STEP | The attribute 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_ATTRIBUTE_AV_VALUE | Indicates whether the values are unique for each language |
HAS_ATTRIBUTE_AV_VALUE | Indicates whether the type attribute has values for each attribute av |
attribute_extend_attribute_type
Extends the Thelia loop : Attribute
Other input arguments
Argument | Description |
---|---|
attribute_type_id | A single or a list of attributes type ids. |
attribute_type_slug | A single or a list of attributes type slugs. |
Other output arguments
- The attributes types associated.
- The variable name is equal to the name of the slug,
- The value is boolean, true for associated, false for unassociated.
Example
attribute_availability_extend_attribute_type
Extends the Thelia loop : Attribute availability
Argument | Description |
---|---|
attribute_type_id | A single or a list of attributes type ids. |
attribute_type_slug | A single or a list of attributes type slugs. |
Other output arguments
- The attributes types associated.
- The variable name is equal to the name of the slug,
- The variable contains the value.
Example
Model
AttributeType::getValue
AttributeType::getValues
AttributeType::getFirstValues
AttributeType::getAttributeAv
AttributeType::getAttributeAvs
All versions of attribute-type-module with dependencies
PHP Build Version
Package Version
Requires
thelia/installer Version
~1.1
The package thelia/attribute-type-module contains the following files
Loading the files please wait ....