cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4 how to get first n characters from CMS page content

Magento 2.4 how to get first n characters from CMS page content

I want to display certain CMS pages on categories and products, which the administrator assigns to the category or product. They would appear as cards. Somehow first the title of the CMS page and then as a description let's say 100 initial characters from the content. How to get those first 100 characters from page content?