Download the PHP package heimrichhannot/contao-submissions_creator without Composer

On this page you can find all versions of the php package heimrichhannot/contao-submissions_creator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-submissions_creator

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.

Module configuration example


Submission archive configuration example


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


News relation configuration example


Features

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;

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('submissionform' => array('recipients' => array('news'),'emailsubject' => array('news'),'emailtext' => 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.

All versions of contao-submissions_creator with dependencies

PHP Build Version
Package Version
Requires php Version ~5.6 || ~7.0 || ^8.0
contao/core-bundle Version ^3.5.1 || ~4.1
heimrichhannot/contao-submissions Version ~1.0
heimrichhannot/contao-frontendedit Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package heimrichhannot/contao-submissions_creator contains the following files

Loading the files please wait ....