Loading...
Skip navigation
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

CSS Class Usage commands

Analyze used CSS classes in RTE/HTML

Summarizes all used CSS classes found in tt_content.bodytext (except CType=html and hidden/deleted records) and prints a grouped overview per content type. This is useful when preparing RTE migrations or cleaning up unused CSS.

The command writes log messages to the file log (if configured by the extension) and dumps a structured array to the console.

Usage

vendor/bin/typo3 commands:cssclassusage

Parameters

This command has no parameters.

Output

  • A PHP array listing all detected CSS classes under the key all
  • For each class you will see the related CType and a list of tt_content.uid values in which the class occurs

Example (shortened):

[
    'all' => [
        'btn' => [
            'textmedia' => [123, 456],
            'text' => [789]
        ],
        'highlight' => [
            'text' => [555]
        ]
    ]
]

Notes

  • Content elements with CType = html are skipped.
  • Only records with hidden = 0 and deleted = 0 are processed.
  • Execution time is written to the log.
Documentation
TYPO3 Commands Extension

TYPO3 Commands

This extension provides you some useful commands for the TYPO3 scheduler and console.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
_Q__________SO2______
47_____O______F___HZS
_T____MI9___NLS______
_Q_____K____2_____FFT
GFK_________OGI______

🎄 Bereits für's Weihnachtsmarketing?! 🎉

Entdecke den interaktiven Online-Adventskalender – perfekt für Websites, Shops und Kampagnen.

Gewinnspiele, Quiz, Gutscheine & mehr – alles, was Dein Weihnachtsmarketing braucht.

Für TYPO3-Websites Für andere Systeme