Insights spotlight: news from folders 11 + 442, source editable in the menu
- Megamenu entries with the catalog or spotlight layout get two editor fields, "Data source folders" (source_pages) and "Data source categories" (source_categories); the extension stores them, the site package's listener reads them from the entry row. - ProvideInsightsSpotlight reads its news from those folders (empty = 11 + 442; the newer posts live in 442, the query only read 11) and, when set, only from those categories (Insights: Blog Post + Press Release). Newest datetime first, three cards. - Pages carrying the menu are tagged with the news and event tables, so saving such a record refreshes the menu without a cache flush. - VITEC field descriptions via a TCA override; spec v1.31, README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad1f3c179c
commit
73e4298b75
7 files changed
+142
-18
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* VITEC meaning of the megamenu's data-source fields (2026-11-05, ticket
|
||||
* 0046-FE): the Insights spotlight (ProvideInsightsSpotlight) reads its
|
||||
* "Latest news" cards from these folders and categories.
|
||||
*/
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
if (isset($GLOBALS['TCA']['tx_evomegamenujson_entry']['columns']['source_pages'])) {
|
||||
$GLOBALS['TCA']['tx_evomegamenujson_entry']['columns']['source_pages']['description']
|
||||
= 'Insights: news folders for the "Latest news" cards. Empty = 11 + 442 (like the /insights/news list).';
|
||||
$GLOBALS['TCA']['tx_evomegamenujson_entry']['columns']['source_categories']['description']
|
||||
= 'Insights: only news in one of these categories (e.g. Blog Post, Press Release). Empty = all categories.';
|
||||
}
|
||||
Reference in new issue
Block a user