Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
ExtensionManagementUtility::addTCAcolumns(
'pages',
[
'schema_org_data' => [
'config' => [
'enableRichtext' => false,
'format' => 'json',
'renderType' => 't3editor',
'type' => 'text',
'wrap' => 'off',
],
'label' => 'LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_pages.xlf:schema_org_data',
],
'tx_headless_breadcrumbs_background_color' => [
'config' => [
'default' => null,
Expand Down Expand Up @@ -72,6 +82,12 @@
'--linebreak--,tx_headless_overview_label',
);

ExtensionManagementUtility::addFieldsToPalette(
'pages',
'seo',
'--linebreak--,schema_org_data',
);

ExtensionManagementUtility::addToAllTCAtypes(
'pages',
'--div--;LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_pages.xlf:page_config,tx_headless_config',
Expand Down
6 changes: 6 additions & 0 deletions Configuration/TypoScript/Page/Seo.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
page.10.fields.seo.fields {
schemaOrgData = TEXT
schemaOrgData {
field = schema_org_data
}
}
7 changes: 5 additions & 2 deletions Resources/Private/Language/de.locallang_pages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
<trans-unit id="footer">
<target>Footer</target>
</trans-unit>
<trans-unit id="overview_label">
<target>Übersicht Beschriftung</target>
</trans-unit>
<trans-unit id="page_config">
<target>Page Config</target>
</trans-unit>
<trans-unit id="overview_label">
<target>Übersicht Beschriftung</target>
<trans-unit id="schema_org_data">
<target>Schema.org Daten (JSON)</target>
</trans-unit>
</body>
</file>
Expand Down
7 changes: 5 additions & 2 deletions Resources/Private/Language/locallang_pages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
<trans-unit id="footer">
<source>Footer</source>
</trans-unit>
<trans-unit id="overview_label">
<source>Overview Label</source>
</trans-unit>
<trans-unit id="page_config">
<source>Page Config</source>
</trans-unit>
<trans-unit id="overview_label">
<source>Overview Label</source>
<trans-unit id="schema_org_data">
<source>Schema.org Data (JSON)</source>
</trans-unit>
</body>
</file>
Expand Down
1 change: 1 addition & 0 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CREATE TABLE tt_content (
);

CREATE TABLE pages (
schema_org_data mediumtext,
tx_headless_breadcrumbs_background_color VARCHAR(60),
tx_headless_config mediumtext,
tx_headless_footer mediumtext,
Expand Down