Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include content element container setting in class attribute #423

Open
vmans opened this issue Dec 16, 2024 · 0 comments
Open

Include content element container setting in class attribute #423

vmans opened this issue Dec 16, 2024 · 0 comments

Comments

@vmans
Copy link

vmans commented Dec 16, 2024

Why is the content element setting "container" - that is, ['data']['tx_t3sbootstrap_container'] - not included in the classAttr so that it has effect in the frontend according to the Bootstrap styling? That's so for a long time, so there must be a reason. Does it interfere with general settings? Otherwise:

BootstrapProcessor.php starting at around line 392, make something roughly like this:

        $processedData['class'] = !empty($processedData['trimClass']) ? ' '.$processedData['container']' '.$processedData['trimClass'] : '';
        $processedData['classAttr'] = !empty($processedData['trimClass']) ? ' class="'.trim($processedData['class']).'"' : '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant