Bug #89187
closedSlug recreation is not available for generator fields with type=inline
100%
Description
Issue¶
If a element of type=slug has a single generator field with type=inline defined, Slug recreation in the Form engine is not possible. This is because the recreation button will be disabled if the generator fields are not available for proposal generation.
Repro¶
Create a field with the following configuration and make it visible in the backend:
'slug' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:pages.slug',
'config' => [
'type' => 'slug',
'size' => 50,
'generatorOptions' => [
'fields' => ['image'],
'fieldSeparator' => '/',
'prefixParentPageSlug' => true,
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
'default' => '',
],
],
Now make sure you have a field with type=inline and name "image".
Check in backend if the recreate button next to the slug field is disabled (see attachment).
Files
Updated by Elias Häußler almost 5 years ago
- Subject changed from Slug recreation is not available for generator fields with type=group to Slug recreation is not available for generator fields with type=inline
- Description updated (diff)
Updated by Gerrit Code Review almost 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Joerg Kummer almost 5 years ago
To reproduce this issue, I'll post a test case as extension where you should have a look at ext_tables.php to create mentioned scenario on slug element for pages.
It requires that you set some entries for pages.media
Updated by Elias Häußler almost 5 years ago
Joerg Kummer wrote:
To reproduce this issue, I'll post a test case as extension where you should have a look at ext_tables.php to create mentioned scenario on slug element for pages.
It requires that you set some entries for pages.media
Thanks for your input, Jörg.
Updated by David Rellstab over 4 years ago
- Related to Bug #90141: Slug recreation is not availabe for generator fields that are configured as "readonly" added
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review over 4 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review about 4 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Gerrit Code Review almost 4 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61716
Updated by Oliver Bartsch almost 4 years ago
Can be tested like:
// Overrides/pages.php
$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['fields'] = [];
$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers'] = [\Vendor\Ext\Hooks\SlugPostModifier::class . '->modify'];
Or just disable defined fields in TSconfig:
TCEFORM.pages.title.disabled = 1
And the hook just adds a postfix
// Hooks/SlugPostModifier.ph
class SlugPostModifier
{
public function modify($parameters, SlugHelper $slugHelper): string
{
return $parameters['slug'] . '-slugPostFix';
}
}
Updated by Anonymous almost 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ce36139dd212c7a06c1fea6c2ccffb36670fd3c0.
Updated by Gerrit Code Review almost 4 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66415
Updated by Anonymous almost 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset 7a0249308ce3b6db48d06755bca1f768fb529fb8.
Updated by Gerrit Code Review almost 4 years ago
- Status changed from Resolved to Under Review
Updated by Benni Mack almost 4 years ago
- Status changed from Under Review to Closed