Files
VITEC-website/packages/evo_megamenu_json/ext_tables.sql
T
orascheandClaude Opus 5.5 73e4298b75 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>
2026-11-05 10:59:56 +01:00

73 lines
2.1 KiB
SQL

#
# Megamenu entry - one item in the main navigation bar.
# Child of the "Megamenu" plugin element (tt_content).
#
CREATE TABLE tx_evomegamenujson_entry (
parentid int(11) DEFAULT '0' NOT NULL,
parenttable varchar(255) DEFAULT '' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
link varchar(1024) DEFAULT '' NOT NULL,
layout varchar(30) DEFAULT 'columns' NOT NULL,
tree_display varchar(30) DEFAULT 'columns' NOT NULL,
source_pages text,
source_categories int(11) unsigned DEFAULT '0' NOT NULL,
menu_columns int(11) DEFAULT '0' NOT NULL,
menu_teasers int(11) DEFAULT '0' NOT NULL,
featured_enable tinyint(1) unsigned DEFAULT '0' NOT NULL,
featured_kicker varchar(255) DEFAULT '' NOT NULL,
featured_title varchar(255) DEFAULT '' NOT NULL,
featured_text text,
featured_link varchar(1024) DEFAULT '' NOT NULL,
featured_image int(11) unsigned DEFAULT '0' NOT NULL,
KEY parent (parentid)
);
#
# Column inside an entry - a headline plus its list of items.
#
CREATE TABLE tx_evomegamenujson_column (
parentid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
link varchar(1024) DEFAULT '' NOT NULL,
menu_items int(11) DEFAULT '0' NOT NULL,
KEY parent (parentid)
);
#
# Item inside a column - the actual link line.
#
CREATE TABLE tx_evomegamenujson_item (
parentid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
link varchar(1024) DEFAULT '' NOT NULL,
teaser varchar(255) DEFAULT '' NOT NULL,
badge varchar(60) DEFAULT '' NOT NULL,
pending tinyint(1) unsigned DEFAULT '0' NOT NULL,
image int(11) unsigned DEFAULT '0' NOT NULL,
KEY parent (parentid)
);
#
# Teaser card inside an entry - used by the "teasers" layout.
#
CREATE TABLE tx_evomegamenujson_teaser (
parentid int(11) DEFAULT '0' NOT NULL,
kicker varchar(255) DEFAULT '' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
teasertext text,
link varchar(1024) DEFAULT '' NOT NULL,
image int(11) unsigned DEFAULT '0' NOT NULL,
KEY parent (parentid)
);
#
# Plugin element holds its entries inline.
#
CREATE TABLE tt_content (
tx_evomegamenujson_entries int(11) DEFAULT '0' NOT NULL
);