Loading...
Navigation überspringen
Bitte beachte, dass sich diese Dokumentation auf die neuste Version dieser Erweiterung bezieht. Wenn eine ältere Version eingesetzt wird, kann diese abweichen. Die jeweils passende Dokumentation befindet sich im Dokumentation-Verzeichnis der Erweiterung.

Wie man die Produktnummer als URL-Slug verwendet

Ändere einfach das routeFieldName: product_no in das gewünschte Feld. Wichtig ist, dass routeValuePrefix: '' auf einen leeren String gesetzt wird. Andernfalls fügt der PersistedAliasMapper ein / als Präfix hinzu, wodurch das Produkt in der Datenbank nicht gefunden wird.

  ShopProductsPlugin:
    type: Extbase
    limitToPages:
      - 15
    extension: Shop
    plugin: Products
    routes:
      -
        routePath: '/{product_slug}'
        _controller: 'Product::show'
        _arguments:
          product_slug: product
    defaultController: 'Product::list'
    aspects:
      product_slug:
        type: PersistedAliasMapper
        tableName: tx_shop_domain_model_product
        routeFieldName: product_no
        routeValuePrefix: ''

Kontaktanfrage

Du kannst uns jederzeit kontaktieren

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
D7Q_________FBL______
4_Y____3____G_____CN2
WID___18P___32Z______
Z_K____R____I_M___YC5
SLG_________AH7______