2017 © Pedro Peláez
 

contao-bundle contao-be_hyperlink

This bundle offers a simple backend hyperlink form field (text link or button).

image

heimrichhannot/contao-be_hyperlink

This bundle offers a simple backend hyperlink form field (text link or button).

  • Friday, February 9, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 5 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

Backend Hyperlink Bundle

Latest Stable Version Total Downloads Travis Coveralls github, (*1)

This bundle offers a simple backend hyperlink form field (text link or button)., (*2)

For Contao 3 compability check out the contao-3 branch., (*3)

Requirements

  • Contao 4 (only tested with 4.4 LTS)
  • PHP7 (only tested with PHP ^7.1)

Technical instructions

Just add the field to some of your data container arrays as follows:, (*4)

$GLOBALS['TL_DCA']['tl_*']['fields']['myHyperlink'] = array
(
    'label'     => &$GLOBALS['TL_LANG']['tl_*']['myHyperlink'],
    'inputType' => 'hyperlink',
    'eval'      => array(
        'text' => &$GLOBALS['TL_LANG']['tl_*']['myHyperlinkText'], // string
        'linkClass'    => 'tl_submit', // use this for contao's button styling
        'tl_class' => 'long',
        'target' => '_blank',
        // the url can be specified as string, callback array ora callable function
        'url'      => 'http://www.example.org',
        'url'      => ['MyClass', 'getUrl'],
        'url'      => function(\DataContainer $objDc) {
            return sprintf('http://www.example.org?id=%s', $objDc->id);
        }
    )
);

The Versions

09/02 2018

dev-master

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

This bundle offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

bundle backend field contao developer hyperlink

09/02 2018

2.0.1

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

This bundle offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

bundle backend field contao developer hyperlink

23/01 2018

2.0.0

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

This bundle offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

bundle backend field contao developer hyperlink

19/01 2018

dev-contao-3

dev-contao-3 https://github.com/heimrichhannot/contao-be_hyperlink

This module offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0-or-later

The Requires

 

backend field contao developer hyperlink

19/01 2018

1.0.1

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

This module offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0-or-later

The Requires

 

backend field contao developer hyperlink

20/03 2017

1.0.0

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

This module offers a simple backend hyperlink form field (text link or button).

  Sources   Download

LGPL-3.0+

The Requires

 

backend field contao developer hyperlink