SsrPurgeItemProvider adds the item behind Clear cache for real pages (doktype < 199) whenever the purge endpoint is configured. The callback module posts the page uid to the new vitec_ssr_purge_page ajax route, which resolves the page path through the site router, purges it via SsrPurgeService (trigger contextmenu:username, logged as usual) and reports back as a toast notification. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
37 lines
1.4 KiB
PHP
Executable File
37 lines
1.4 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Evomedien\Vitec\Controller\Backend\ProductTextImportController;
|
|
use Evomedien\Vitec\Controller\Backend\StructuredDataController;
|
|
|
|
/**
|
|
* Backend AJAX routes for the VITEC extension.
|
|
*
|
|
* vitec_structureddata_generate — generate schema.org JSON-LD for a product;
|
|
* called by the FormEngine "Structured Data generieren" button. The URL is
|
|
* available to JS via TYPO3.settings.ajaxUrls['vitec_structureddata_generate'].
|
|
*/
|
|
return [
|
|
'vitec_structureddata_generate' => [
|
|
'path' => '/vitec/structureddata/generate',
|
|
'target' => StructuredDataController::class . '::generate',
|
|
],
|
|
// Click-to-edit in the product text import's "Current value" column:
|
|
// read the full raw value / write one field through DataHandler.
|
|
'vitec_product_field_get' => [
|
|
'path' => '/vitec/product/field/get',
|
|
'target' => ProductTextImportController::class . '::fieldGet',
|
|
],
|
|
'vitec_product_field_save' => [
|
|
'path' => '/vitec/product/field/save',
|
|
'target' => ProductTextImportController::class . '::fieldSave',
|
|
],
|
|
// Context menu "Purge from SSR cache" (SsrPurgeItemProvider +
|
|
// Resources/Public/Javascript/ssr-context-menu.js).
|
|
'vitec_ssr_purge_page' => [
|
|
'path' => '/vitec/ssr/purge-page',
|
|
'target' => \Evomedien\Vitec\Controller\Backend\SsrController::class . '::purgePage',
|
|
],
|
|
];
|