Skip to main navigation Skip to main content Skip to page footer

Link handler

TYPO3 +12.4

Page-TypoScript

// Page TSconfig for registering the linkhandler for "product" records
TCEMAIN.linkHandler.tx_shop_product {
    handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
    label = LLL:EXT:shop/Resources/Private/Language/locallang_db.xlf:tx_shop_domain_model_product
    configuration {
        table = tx_shop_domain_model_product
    }
    scanBefore = page
}

TYPO3 +8.7

Page-TypoScript

// Page TSconfig for registering the linkhandler for "product" records
TCEMAIN.linkHandler.tx_shop_product {
    handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
    label = LLL:EXT:shop/Resources/Private/Language/locallang_db.xlf:tx_shop_domain_model_product
    configuration {
        table = tx_shop_domain_model_product
    }
    scanBefore = page
}

Setup-TypoScript

config.recordLinks {
    tx_shop_product {
        typolink {
            parameter = {$themes.configuration.pages.shop.detail}
            additionalParams.data = field:uid
            additionalParams.wrap = &tx_shop_products[controller]=Product&tx_shop_products[action]=show&tx_shop_products[product]=|
            useCacheHash = 1
            ATagParams.data = parameters:allParams
            target.data = parameters:target
            title.data = parameters:title
            extTarget = _blank
            extTarget.override.data = parameters:target
        }
        forceLink = 1
    }
}
Shopping basket 0 Products

The Demo is build with*

EXT:bootstrap_package for site-package aka theme build on Bootsrap 5.

EXT:modules for user plugins like user-profile, registration, user-addresses, and more.

EXT:shop for the whole shop functionality.

EXT:questions for the FAQ page and FAQs attached in the product detail views.

EXT:glossaries for the glossaries and definitions.

EXT:fluid_fpdf for generating invoices, delivery-notes, product-sheets and more.

EXT:parsedown_extra for rendering the extension documentations from markdown to HTML.

* There are only build-in settings made using site-settings & TypoScript – no templates or other files were changed or overridden!