2017 © Pedro Peláez
 

contao-module contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

image

heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  • Monday, July 13, 2015
  • by digitales@heimrich-hannot.de
  • Repository
  • 5 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url., (*1)

Features

  • Participation Archive (global config for participation entitites within)
  • Participation (alias to entity connection table)
  • Participation Data (member/submission to participation connection table)

How to extend/invoke with your module

You can invoke into participation and participation data. Both should be done within your config.php. Here an example for news with tl_member as participation data:, (*2)

config.php, (*3)

$GLOBALS['TL_PARTICIPATION']['news'] = array
(
    'tl_news' => 'NewsParticipationConfig'
);


$GLOBALS['TL_PARTICIPATION_DATA'] = array
(
    'member' => array
    (
        'tl_member'   => 'ParticipationDataMyMemberConfig',
    )
);

The Class have to extend from \HeimrichHannot\Participation\ParticipationConfig, (*4)

NewsParticipationConfig.php, (*5)

class NewsParticipationConfig extends \HeimrichHannot\Participation\ParticipationConfig
{
    protected $strSourceField = 'headline';

    protected $strParentField = 'title';
}

ParticipationDataMyMemberConfig.php, (*6)

class ParticipationDataMyMemberConfig extends ParticipationDataMemberConfig
{
    protected function getSourceOptionValue(\Model $objSource)
    {
        return $objSource->firstname . ' ' . $objSource->lastname . ' [ID: ' . $objSource->id . ']';
    }
}

The Versions

13/07 2015

dev-master

9999999-dev https://github.com/heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  Sources   Download

LGPL-3.0+

The Requires

 

entity backend participation contao

13/07 2015

1.0.3

1.0.3.0 https://github.com/heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  Sources   Download

LGPL-3.0+

The Requires

 

entity backend participation contao

13/07 2015

1.0.2

1.0.2.0 https://github.com/heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  Sources   Download

LGPL-3.0+

The Requires

 

entity backend participation contao

13/07 2015

1.0.1

1.0.1.0 https://github.com/heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  Sources   Download

LGPL-3.0+

The Requires

 

entity backend participation contao

13/07 2015

1.0.0

1.0.0.0 https://github.com/heimrichhannot/contao-participation

A contao backend entity, that allows you to participate to another entity (like news, events) from any url.

  Sources   Download

LGPL-3.0+

The Requires

 

entity backend participation contao