2017 © Pedro PelĆ”ez
 

contao-bundle merger2

Module merger V2 for Contao OpenSource CMS

image

contao-community-alliance/merger2

Module merger V2 for Contao OpenSource CMS

  • Wednesday, October 4, 2017
  • by xtra
  • Repository
  • 2 Watchers
  • 1 Stars
  • 280 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 3 Forks
  • 10 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month, (*1)

MergerĀ²

The Contao Community Alliance mergerĀ² extension provides a powerful frontend module to merge various content:, (*2)

  • Article inheritance
  • Conditional content
  • Powerful condition language

Requirements

MergerĀ² v4 requires at least Contao 4.13 with PHP 7.4 or Contao 5 with PHP 8.0 higher and is prepared for the Contao Managed Edition., (*3)

Changelog

See CHANGELOG, (*4)

Documentation

The documentation is managed as a wiki on Github. Feel free to contribute., (*5)

Condition Reference

Each condition is an expression which may contain different functions. Function may be combined with && or || constraints and you can turn back conditions with ! as NOT., (*6)

articleExists(column: string [, includeUnpublished: bool])

Test if an article exists in the specific column or section., (*7)

  • column Column or section name.
  • includeUnpublished If true also unpublished articles are recognized.

children(count: integer [, includeUnpublished: bool])

Test if the page have the specific count of children., (*8)

  • count Count of children.
  • includeUnpublished Include unpublished pages.

depth(value: string)

Test the page depth., (*9)

  • value Depth with comparing operator, e.g. ">2".

isMobile([cookieOnly: bool])

Detect if page is rendered as mobile page., (*10)

  • cookieOnly If true only the TL_VIEW cookie is recognized. Otherwise the user agent might active mobile view if an mobile layout exist.

language(language: string)

Test the page language., (*11)

  • language Page language

page(pageId: string|integer)

Test the page id or alias., (*12)

  • pageId Page id or alias

pageInPath(pageId: string|integer)

Test if page id or alias is in path., (*13)

  • pageId Page id or alias

platform (platform: string)

Test the user platform., (*14)

  • platform Platform type. Valid values are desktop, tablet, smartphone or mobile.

root (pageId: string|integer)

Test the root page id or alias., (*15)

  • pageId Page id or alias

Custom functions

MergerĀ² is prepared for custom functions. Simply implement the ContaoCommunityAlliance\Merger2\Functions\FunctionInterface and provide it as a cca.merger2.function tagged service., (*16)

The Versions

05/07 2017
10/11 2015
06/11 2015

3.0.9

3.0.9.0 http://c-c-a.org

Module merger V2 for Contao OpenSource CMS

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

module theme contao layout