benjaminkott / benjaminkott/bootstrap_package

Different TCA definition for rootpages in one TYPO3 instance

Open
#1,099 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

We've one TYPO3 Installation serving 4 different websites (with own siteconfiguration/domains and content).
I'm using TYPO3 10.4.20 with bootstrap_package 11.0.3 and a sitepackage for customizing and extending the bootstrap_package. The websites are structured in the same way and only have different colors and logos. We were able to do this by delivering individual CSS and simple conditions.

Now we want to add an other rootpage to TYPO3. This page will differ significantly from the previous webseites. Therefore it should get its own sitepackage.

So we disabled autoloading RTE, Backenlayouts, TCEMAIN, TCEFORM, Content Element PageTS Configuration in the configuration of the extensions and added them manually in the ressources of the siteconfiguration.

So it looks something like this

rootpage id 1
rootpage id 2
rootpage id 3
rootpage id 4
- each page is rootlevel, constants and setup ist cleared
- Include static form extension: "Bootstrap Package - Full Package and "**Sitepackage A** - Full Package"
- Include Static Page TSconfig: for "Bootstrap Package" and "**Sitepackage A**" (Backend Layouts, TCEMAIN, TCEFORM, Content Elements)

rootpage id 5
- each page is rootlevel, constants and setup ist cleared
- Include static form extension: "Bootstrap Package - Full Package and "**Sitepackage B** - Full Package"
- Include Static Page TSconfig: for "Bootstrap Package" and "**Sitepackage B**" (Backend Layouts, TCEMAIN, TCEFORM, Content Elements)

So far, so good.
We can serve different Backend Layouts, customize TCEMAIN and TCEFORM. Also customizing the templates is no problem. But changes in TCA have an effect on all rootpages.
We want to use different cropping ratios for images. When we make changes in the file 500_cropping.php in the TCA Overrides of **Sitepackage B**, e.g. for carousel images, it effects also the carousels in rootpages with **Sitepackage A**.

Now my question:
Is it possible to have different tca definitions for the same content-element (e.g. for tx_bootstrappackage_carousel_item) in one TYPO3 instance? And how can we achieve that?

Best regards
We look forward to your answers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the site configuration resources and the 500_cropping.php TCA override in Sitepackage B, then compare them with Sitepackage A. Investigate whether TYPO3 10.4.20 can scope TCA definitions for tx_bootstrappackage_carousel_item to individual rootpages. Done means establishing and documenting a supported approach, or confirming that the requested separation is not possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.