thelia/view-module

Installs: 202

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 2

Open Issues: 1

Type:thelia-module

2.1.0 2022-10-24 22:04 UTC

This package is auto-updated.

Last update: 2024-10-25 02:36:27 UTC


README

Using this module, you can select a specific view for any category, product, folder or content.

Installation

composer require thelia/view-module:~2.0.1

Activate the module and go to the "Modules" tab of any category, product, folder or content configuration page.

The loop view

Get the specific view of an object and the specific views of its sub-elements.

Parameters

Output variables

Example

{loop type="view" name="my-specific-view" source="content" source_id=11}...{/loop}

The loop frontfiles

Return all the front office templates and their path.

Parameters

This loop have no parameters

Output variables

Example

{loop type="frontfile" name="my-fo-template"}...{/loop}

The loop frontview

Return view of an object if the object have a specific view.

Parameters

Output variables

Example

{loop type="frontview" name="my-frontview-loop" source="category" source_id=11 }...{/loop}