Feature #88322
closedAllow the overwriting of the slug field via PageTS
0%
Description
Allow the overwriting of the slug field via PageTS. Especially 'generatorOptions'.
For example like:
TCEFORM { tt_address { slug { config { generatorOptions { fields = company, city } } } } }
Updated by Benni Mack over 5 years ago
- Status changed from New to Needs Feedback
Hi Christian,
there is an extension for that called "masi" - not in TER yet, but i'd be great to know if this works for you:
this way, you have the feature available already, without waiting for the next core release.
Updated by Christian Hackl over 5 years ago
Hi Benni,
sry but this don't work for me, i think cause i don't use it for the page-table but for the tt_address table.
Nevertheless I have tried different ways (could have been :) ):
TCEMAIN.table.tt_address.slug...
TCEMAIN.tt_address.slug...
TCEFORM.tt_address.slug...
EDIT:
@Benni Mack
I'm sorry, it works - just did not understand what I have to do = adjust the TCA / Overrides / ...
($GLOBALS['TCA']['tt_address']['columns']['slug']['config']['generatorOptions']['postModifiers'][] = \B13\Masi\SlugModifier::class . '->modifyGeneratedSlugForPage';)
Thank you ;)
But i still don't get it: the recalculate button is disabled - how do I get that active?
Updated by Christian Eßl about 5 years ago
- Category set to Site Handling, Site Sets & Routing
Updated by Benni Mack about 4 years ago
- Related to Feature #89875: slug config options should be configurable via TSConfig added
Updated by Christian Kuhn almost 3 years ago
- Status changed from Needs Feedback to Closed
Hey. I think this is a straight duplicate of #89875 - I hope it's ok to close here for now.