PHP code example of hschottm / faqextensions
1. Go to this page and download the library: Download hschottm/faqextensions library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hschottm / faqextensions example snippets
$GLOBALS['TL_DCA']['tl_faq']['fields']['viewcount'] = array(
'sql' => "int(10) unsigned NOT NULL default '0'"
);
$GLOBALS['TL_DCA']['tl_faq']['fields']['recommended'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_faq']['recommended'],
'exclude' => true,
'filter' => true,
'eval' => array('tl_class'=>'w50 m12'),
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_faq']['fields']['helpful'] = array(
'sql' => "int(10) unsigned NOT NULL default '0'"
);
$GLOBALS['TL_DCA']['tl_faq']['fields']['nothelpful'] = array(
'sql' => "int(10) unsigned NOT NULL default '0'"
);
$GLOBALS['TL_DCA']['tl_faq']['fields']['showhelpful'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_faq']['showhelpful'],
'exclude' => true,
'filter' => true,
'eval' => array('tl_class'=>'w50 m12'),
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''"
);