1. Go to this page and download the library: Download kohlercode/slug 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/ */
kohlercode / slug example snippets
/*
Add this to your global system configuration,
ideally in the file "typo3conf/system/additional.php"
*/
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['slug'] = [
'settings'=> [
'defaultSortfield' => 'uid',
'defaultSortby' => 'ASC',
'defaultMaxEntries' => 10,
],
'additionalTables' => [
'tx_news_domain_model_news' => [
'label' => 'News',
'slugField' => 'path_segment',
'titleField' => 'title',
'pid' => 44,
'icon' => 'ext-news-type-default' // v14: Use the Icon Identifier!
],
]
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.