2017 © Pedro Peláez
 

contao-module contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

image

heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  • Friday, May 25, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 5 Watchers
  • 0 Stars
  • 810 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 27 Versions
  • 10 % Grown

The README.md

Submissions Creator

Submission Creator makes usage from the power of contao-submissions and contao-frontendedit. It provides a reader module, that can create custom frontend forms with possible relations to other contao entities like news., (*1)

alt Module, (*2)

Module configuration example, (*3)


alt Archive, (*4)

Submission archive configuration example, (*5)


alt Submission, (*6)

Submission view example (every field of this form can be changed, of course), (*7)


alt News, (*8)

News relation configuration example, (*9)


Features

  • submission form creation
  • custom field, mandatory fields, custom default values
  • store submissions in custom submission archives
  • limit submit period for submissions (on relations and module)
  • connect submissions with other contao entities (builtin: news & events)
  • async submission
  • redirect after submission

Submission relations

To provide custom submission relations with other contao entities, you have to add a custom config to $GLOBALS['SUBMISSION_RELATIONS']. The key should be named like the backend module, for example news or calendar;, (*10)

Attribute Example Description
table 'tl_news' The related entity table name (required for invoking tl_submision_relation_spread fields to this datacontainer)
invokePalettes array('default' => 'addImage') Array containing the entity palette as key and the prefix invokation field as value (required for invoking tl_submision_relation_spread fields to this datacontainer)
moduleFields 'news_archives' Add these fields to tl_module submission_creator palette as additional relation fields.
submissionField 'news' The tl_submission field, where the id of the related entity should be stored in.
options_callback array('HeimrichHannot\Submissions\Creator\SubmissionCreator', 'getRelatedNews') Provide a valid options_callback that returns the options for the submissionField.
find_entity_callback array('HeimrichHannot\Submissions\Creator\SubmissionCreator', 'findRelatedNewsEntity') A valid callback that returns the entity object model.
setDefaultFromRequest true Set the submissionField from $_GET request parameter. Set to false if you don`t want this behavior.
request_parameter 'rel' Provide a custom request parameter that will be taken for setting the default relation entity from request or leave empty, than the submissionField value will taken as Request parameter ($_GET).
insertTagLink '{{news_submission_link::PAGE_ID::MODULE_ID::ENTITY_ID}}' The inserttag that will be available to link to the submission from outside. PAGE_ID, MODULE_ID, ENTITY_ID must be definied as String like provided in the Example.
useAutoItem true Set the request parameter as auto_item and generate a readable alias and append to the submission page url.
entity_tokens array('submission_form' => array('recipients' => array('news_'),'email_subject' => array('news_'),'email_text' => array('news_*'), Add your custom submission notification entity tokens.

Callbacks

Name Arguments Expected return value Description
options_callback \DataContainer $dc, $arrRelation $arrOptions Return the submissionField options as array for both front and back end.
find_entity_callback $varId, $arrRelation, $objModule Return the entity Model or null if not found.
addTokens_callback $objItem, $arrTokens, $arrRelation, $objNotification, $strLanguage, $objGatewayModel / Add custom notification tokens. Callback have to return $arrTokens.

InsertTags

Tag Arguments Example Description
news_submission_link PAGE_ID :: MODULE_ID :: NEWS_ID {{news_submission_link::55::77::308}} Return the link to a related news submission
event_submission_link PAGE_ID :: MODULE_ID :: EVENT_ID {{event_submission_link::15::55::306}} Return the link to a related event submission
news_submission_active MODULE_ID :: NEWS_ID {{news_submission_active::77::308}} Determine that the related news submission is active, within submission period.
event_submission_active MODULE_ID :: EVENT_ID {{event_submission_active::55::306}} Determine that the related event submission is active, within submission period.

The Versions

25/05 2018

dev-master

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

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

25/05 2018

3.1.1

3.1.1.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

25/05 2018

3.1.0

3.1.0.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

14/05 2018

3.0.1

3.0.1.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

06/02 2018

3.0.0

3.0.0.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

23/11 2017

2.0.0

2.0.0.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

07/11 2017

1.1.2

1.1.2.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

02/11 2017

1.1.1

1.1.1.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

25/07 2017

1.1.0

1.1.0.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

09/05 2017

1.0.17

1.0.17.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

02/03 2017

1.0.16

1.0.16.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

23/02 2017

1.0.15

1.0.15.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

08/02 2017

1.0.14

1.0.14.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

18/01 2017

1.0.13

1.0.13.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

16/01 2017

1.0.12

1.0.12.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

05/12 2016

1.0.11

1.0.11.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

11/11 2016

1.0.10

1.0.10.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

10/11 2016

1.0.9

1.0.9.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

09/11 2016

1.0.8

1.0.8.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

12/10 2016

1.0.7

1.0.7.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

16/09 2016

1.0.6

1.0.6.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

12/09 2016

1.0.5

1.0.5.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

25/08 2016

1.0.4

1.0.4.0 https://github.com/heimrichhannot/contao-submissions_creator

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

25/08 2016

1.0.3

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

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

05/08 2016

1.0.2

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

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

04/08 2016

1.0.1

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

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions

29/07 2016

1.0.0

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

A module for creating contao-submissions with contao-frontendedit and contao-submission.

  Sources   Download

LGPL-3.0+

The Requires

 

form module contact contao submissions