Download the PHP package heimrichhannot/contao-formhybrid_list without Composer
On this page you can find all versions of the php package heimrichhannot/contao-formhybrid_list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-formhybrid_list
More information about heimrichhannot/contao-formhybrid_list
Files in heimrichhannot/contao-formhybrid_list
Package contao-formhybrid_list
Short Description Contains a list and a reader module in a generic flavor. The modules can display and process all kinds of contao entities containing filtering, pagination, modal handling, ...
License LGPL-3.0-or-later
Homepage https://github.com/heimrichhannot/contao-formhybrid_list
Informations about the package contao-formhybrid_list
Formhybrid List
Contains a list and a reader module in a generic flavor. The modules can display and process all kinds of contao entities containing filtering, pagination, modal handling, ...
If additional functionality is needed, one simply has to inherit from ModuleList or ModuleReader.
-> Click submissions.
Features
List module
- display any contao entity
- sorting by field or free text
- pagination (ajax or synchronous)
- infinite scroll
- advanced filtering using heimrichhannot/contao-formhybrid
- defining of default filters
- detail links with alias support
- opening instances in modal windows (install heimrichhannot/contao-modal for this)
- display as table with sortable headers
- share entities in a list (add the necessary fields to your dca beforehands by using )
Reader module
- display any contao entity
- support for id or alias
- security handling
Technical instructions
Access to data in list item templates
Usually you'll want to override the formybrid_list_item_default.html5 template. Inside this template you have access to the fields of the linked entity using the following techniques:
- $this->someField
- $this->fields (formatted fields)
- $this->raw (unformatted fields as stored in the database)
Example CSS for the masonry
Customize list filter processing behavior
Just create a submodule of ModuleList, add the following function and adjust it to your needs (same is possible for customizeDefaultFilters() which are the initial filters).
Hint: You can also return multiple values for one field as array.
Modules
Name | Description |
---|---|
ModuleList | A generic list module able to display all kinds of contao entities containing filtering, pagination, ... |
ModuleMemberList | Encapsulates member specific changes overriding ModuleList |
ModuleNewsList | Encapsulates news specific changes overriding ModuleList |
ModuleReader | A generic reader module able to display all kinds of contao entities |
ModuleMemberReader | Encapsulates news specific changes overriding ModuleList |
ModuleListFilter | Detached filter that can be placed independently from ModuleList |
Hooks
Name | Arguments | Description |
---|---|---|
parseItems | $objTemplate, $arrItem, $objModule | Triggered just before FrontendTemplate::parse() is called |
Insert Tags
Name | Arguments | Example |
---|---|---|
fhl_filter_url | page id – the page that contains the list module, module id – the formhybrid_list list module -> ModuleList or inheriting class, filter query – url encoded |
{{fhl_filter_url::1::5::city=Dresden&company=Heimrich+%26+Hannot}} |
All versions of contao-formhybrid_list with dependencies
contao/core-bundle Version ^4.4
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0
heimrichhannot/contao-formhybrid Version ^3.0
heimrichhannot/contao-blocks Version ~1.0
heimrichhannot/contao-multi_column_editor Version ~1.1
heimrichhannot-contao-components/masonry Version >=4.2, <=4.3
heimrichhannot-contao-components/imagesloaded Version 4.1.*
heimrichhannot-contao-components/jscroll Version 2.3.*