Commit 913804f2 authored by Andreas Nedbal's avatar Andreas Nedbal
Browse files

[TASK] Add slug field to memberships

parent c4bbad57
......@@ -31,7 +31,7 @@ return array(
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, logo, personal_membership, no_filter',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, logo, personal_membership, no_filter, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,starttime, endtime'),
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, logo, personal_membership, no_filter, slug, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
......@@ -142,5 +142,22 @@ return array(
'type' => 'check',
),
),
'slug' => [
'label' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xlf:tx_t3omembership_domain_model_membership.slug',
'exclude' => 1,
'config' => [
'type' => 'slug',
'generatorOptions' => [
'fields' => ['name'],
'fieldSeparator' => '/',
'prefixParentPageSlug' => true,
'replacements' => [
'/' => '',
],
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
],
],
),
);
......@@ -68,6 +68,9 @@
<trans-unit id="tx_t3omembership_domain_model_membership.no_filter_option">
<source>Do not use this membership type as filter</source>
</trans-unit>
<trans-unit id="tx_t3omembership_domain_model_membership.slug">
<source>Slug</source>
</trans-unit>
<trans-unit id="tx_t3omembership_task_importmemberstask.name">
<source>Import members from CSV file</source>
......
......@@ -79,6 +79,7 @@ CREATE TABLE tx_t3omembership_domain_model_membership (
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
slug varchar(2048),
PRIMARY KEY (uid),
KEY parent (pid),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment