2017 © Pedro Peláez
 

contao-module contao-filecredits

Contao module that adds credit support for images.

image

heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  • Tuesday, April 17, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 6 Watchers
  • 3 Stars
  • 1,070 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 54 Versions
  • 7 % Grown

The README.md

ABANDONED

Please note that this module is abandoned and not developed any further., (*1)

Filecredits

Contao module that adds credit support for images and files., (*2)

Installation

composer require heimrichhannot/contao-filecredits

Disable command scheduler (poor-mans-cron)

For performance reasons, we insist on disabling the "Command-Scheduler" (enable tl_settings.disableCron) and run the cron jobs by a dedicated cronjob within your servers crontab., (*3)

  • Contao 4: * * * * * wget -O /dev/null -q https://[DOMAIN-NAME]/_contao/cron --no-check-certificate
  • Contao 3: * * * * * wget -O /dev/null -q https://[DOMAIN-NAME]/system/cron/cron.php --no-check-certificate

Use custom cron job (contao 4)

0 3 * * * /path/to/contao/vendor/heimrichhannot/contao-filecredits/bin/indexer # every day at 03:00 

Use custom cron job (contao 3)

0 3 * * * /path/to/contao/composer/vendor/heimrichhannot/contao-filecredits/bin/indexer # every day at 03:00 

Filecredits 3.x

Filecredits 3 yields an huge performance due to credit index within cron job only. Filecredits makes usage of executeResize Hook, which is triggered every time an image is resized. If you use responsive images this Hook will be triggered not only once, but for every src-set provided. Filecredit 2.x invoked the hook within every client request, which braked down your website performance, based on number of images per page. Filecredit 3 now triggers a daily poor mans cron, or you can declare your own cron job within crontab, see Installation., (*4)

Filecredits 2.x

Filecredits 2.x is a complete redevelopment. If you attached your custom modules to filecredits 1.x, we would not recommend to upgrade., (*5)

Features

  • Copyrights can be added directly at the file within the contao file manager
  • Page occurrences for images will be added automatically, on rebuild search index, or when the page with the image will be loaded
  • A backend module is available to add custom filecredits with multiple page occurrences.
  • A copyright field can be added to any DCA as a shortcut to add copyrights directly to a file without having to go to the file manager

Technical instructions

If you want to get a shortcut copyright field next to e.g. some image field you can do this by calling the following code e.g. in your DCA:, (*6)

\HeimrichHannot\FileCredit\FileCredit::addCopyrightFieldToDca(<the DCA's table name>, <the name of the copyright field to be created>, <the name of the linked file field which copyright is being synced>);

// example:
\HeimrichHannot\FileCredit\FileCredit::addCopyrightFieldToDca('tl_news', 'detailsCopyright', 'detailsSingleSRC');

Hooks

Name Arguments Expected return value Description
{{copyright::*::,}} 1: file uuid (string) or file path, 2: credits delimiter (default: ,) string Return the file credits for a given uuid or path as delimited string.

The Versions

20/04 2016
20/04 2016
15/02 2016

2.0.4

2.0.4.0 https://github.com/heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

18/12 2015

2.0.3

2.0.3.0 https://github.com/heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

18/12 2015

2.0.2

2.0.2.0 https://github.com/heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

18/12 2015

2.0.1

2.0.1.0 https://github.com/heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

01/12 2015

2.0.0

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

03/07 2015

1.0.13

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

15/06 2015

dev-multisources

dev-multisources https://github.com/heimrichhannot/contao-filecredits

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

13/05 2015

1.0.11

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

30/04 2015

1.0.10

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

30/04 2015

1.0.9

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

28/04 2015

1.0.8

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

24/04 2015

1.0.7

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

14/04 2015

1.0.6

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

26/03 2015

1.0.5

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

23/02 2015

1.0.4

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

10/02 2015

1.0.3

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

05/01 2015

1.0.2

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

15/12 2014

1.0.1

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits

10/12 2014

1.0.0

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

Contao module that adds credit support for images.

  Sources   Download

LGPL-3.0+

The Requires

 

files images contao credits