Download the PHP package thelia/selection-module without Composer

On this page you can find all versions of the php package thelia/selection-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package selection-module

Selection

This module allows you to create a selection of products or contents of similar themes (Best sellers, Best rated by women, .. for example). The selection will then be displayed as list of those products or contents.

Compatibility

Installation

Manually

Composer

Add it in your main thelia composer.json file

Usage

Once activated, a new button called "Selection" will appear in the tool menu on the left sidebar of the admin panel. Clicking on it will redirect you to the list of all the selections you've created so far.

Once on the page with all your selections you may :

You may then display your selection on your website by calling the selection_list loop.

Hook

This module has a single hook in the back office, adding the Selection button to the tools menu of the sidebar on the left, redirecting to the list of selection.

Loop

[selection_list]

This loop returns a list of selections. You can use it to display the selections you've created in your website.

Input arguments

Variable Description
id A string containing the IDs of all the selections you wish to display. To get the ID of the current rewritten URL, use : $app->request->get('selection_id') in your template
code A string containing one or more codes of the selections you wish to display.
exclude_code A string containing one or more codes of the selections you wish to exclude from the loop results.
title The title of the selection you wish to display
visible Whether your selection will be visible or not. Default : true
position The position of the selection you wish to display
exclude A string containing the IDs of all the selections you wish not to display
order A string with a value inside these values : 'id', 'id_reverse', 'alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'visible', 'visible_reverse', 'created', 'created_reverse', 'updated', 'updated_reverse', 'random'
return_url A boolean indicating if we want the url (cf BaseLoop)
without_container A boolean indicating if we want to display selection that are not inside a container only
container_id The container id to query only the selections inside that container

Output arguments

Variable Description
SELECTION_ID The ID of the current Selection
SELECTION_CODE The code of the current Selection
SELECTION_TITLE The title of the current Selection
SELECTION_DESCRIPTION The description of the current Selection
SELECTION_CHAPO The chapo of the current Selection
SELECTION_POSTSCRIPTUM The postscriptum of the current Selection
SELECTION_VISIBLE Whether the current selection is visible or not
SELECTION_POSITION The position of the current selection
SELECTION_URL The URL of the current selection
SELECTION_CONTAINER_ID The id of the container associated to the current Selection

Exemple

`

[selection_image]

This loop returns the images related to a selection.

Input arguments

Input Arguments are extended by Thelia\Core\Templates\Loop\Image

Output arguments

Output Arguments are extended by Thelia\Core\Templates\Loop\Image

Exemple

`

[selection_container]

This loop returns a list of selections containers. You can use it to display the selections containers you've created in your website.

Input arguments

Variable Description
id A string containing the IDs of all the selections containers you wish to display. To get the ID of the current rewritten URL, use : $app->request->get('selection_id') in your template
code A string containing one or more codes of the selection containers you wish to display.
exclude_code A string containing one or more codes of the selection containers you wish to exclude from the loop results.
selection_id The selection id to find
need_selection_count boolean indicating if we want to have the number of selection inside this container
title The title of the selection you wish to display
visible Whether your selection will be visible or not. Default : true
position The position of the selection you wish to display
exclude A string containing the IDs of all the selections you wish not to display
order A string with a value inside these values : 'id', 'id_reverse', 'alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'visible', 'visible_reverse', 'created', 'created_reverse', 'updated', 'updated_reverse', 'random'
return_url A boolean indicating if we want the url (cf BaseLoop)

Output arguments

Variable Description
SELECTION_CONTAINER_ID The ID of the current container
SELECTION_CONTAINER_TITLE The title of the current container
SELECTION_CONTAINER_CODE The code of the current container
SELECTION_CONTAINER_DESCRIPTION The description of the current container
SELECTION_CONTAINER_CHAPO The chapo of the current container
SELECTION_CONTAINER_POSTSCRIPTUM The postscriptum of the current container
SELECTION_CONTAINER_VISIBLE Whether the current container is visible or not
SELECTION_CONTAINER_POSITION The position of the current container
SELECTION_CONTAINER_URL The url of the current container
SELECTION_COUNT The number of selections in the current container

Exemple

`


All versions of selection-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/selection-module contains the following files

Loading the files please wait ....