Project

General

Profile

Actions

Feature #88322

closed

Allow the overwriting of the slug field via PageTS

Added by Christian Hackl over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-05-09
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
PageTS, slug, generatorOptions
Complexity:
Sprint Focus:

Description

Allow the overwriting of the slug field via PageTS. Especially 'generatorOptions'.
For example like:

TCEFORM {
    tt_address {
        slug {
            config {
                generatorOptions {
                    fields = company, city
                }
            }
        }
    }
}

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #89875: slug config options should be configurable via TSConfigAccepted2019-12-06

Actions
Actions #1

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:

https://github.com/b13/masi

this way, you have the feature available already, without waiting for the next core release.

Actions #2

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?

Actions #3

Updated by Christian Eßl about 5 years ago

  • Category set to Site Handling, Site Sets & Routing
Actions #4

Updated by Benni Mack about 4 years ago

  • Related to Feature #89875: slug config options should be configurable via TSConfig added
Actions #5

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.

Actions

Also available in: Atom PDF