How to customize custom content elements to work for fluid typo3 6 -> 9 - typo3

What is the easiest way to change custom content elements that were created for a Typo3 6 site to a working custom content element for Typo3 9?

Related

TYPO3 6.2: How to limit the number of displayed links in Related pages (based on keywords)

In TYPO3 6.2 the Special Menu "Related pages (based on keywords)", shows a list of the selected page and all other pages, which have one or more keywords, entered in the page properties, in common.
The problem is that my site has lots of pages with the same keywords and hence in some pages the number of displayed links is excessive.
The question is how could I limit the number of displayed links?
As long as the menu is generated by typoscript, which is the case for TYPO3 6.2, you could configure the menu generation like any other typoscript menu object.
Any menu object has the property maxItems (see manual ). You need to look for the definition of the content elements which should be beneath tt_content:
tt_content.menu.20.6.maxItems = 10
For newer TYPO3 versions the place of TS-defined CEs has changed up to the realisation of CEs by fluid. But still the property maxItems is available.

After typo3 update - text does not wrap around image, images are not displayed in columns

After the typo3 update to version 8.7 I am having an issue with images.
First text is no longer wraping around images although the alignment for the image is set to wrap around the text. See here: http://www.vbl.org
Second images are no longer displayed in columns, although number of columns is set to 5. See here: http://www.vbl.org/berichte/bildberichte-2018/halbziit-2-juni-2018.html
Why is this happening?
In TYPO3 8 the extension css_styled_content has a second optional template. Add static template from extension css_styled_content: TypoScript Content Elements CSS.
I think you missed some CSS.
In your compressed CSS at least one include (gray-theme.css) results in a 404.
And maybe the markup has changed, so HTML and CSS does not match any longer.

TYPO3 replacement for "top margin" and "bottom margin" in LTS 7

With TYPO3 LTS 7 and up, top margin and bottom margin are not suported by Fluid styled content.
css styles content
My users used a lot of those margins in 6.2 LTS
How can I do to make this working again (override TCA, extension, etc)?
I think you can
install Fluid Styled Content and CSS Styled Content;
then don't add the static typoscript of css styled content.
modify the templates or partials of the Fluid Styled Content elements to use the new fields.
I don't know if this scenario has hidden drawbacks that I currently don't see.
Another scenario could be to use the CSS Styled Content also on version 7 and plan a migration to version 8 or 9 where they're used again, but the fields have become dropdown lists; plus, even the field names in database have changed: in version 6.2 they were spaceBefore and spaceAfter while since 8.7 they're called space_before_class and space_after_class.
As far as I know there are no conversion or upgrade tools between these fields.
See here and here for further details.

How to show tt_news related articles in bottom

I use tt_news 8.7 and Typo3 8.7, in news single view i like to show related news articles (same category) as Image/Teaser boxes at the bottom of the page, is this possible with tt_news ? can this be done by typoscript or changing the templates ?
Best regards,
Masmoudi M.
Yes, tt_news has an option to show related news by category in the single view. You can activate it by setting plugin.tt_news.showRelatedNewsByCategory = 1 in TypoScript. In your single template you have to have the marker ###NEWS_RELATED_BY_CATEGORY###. It will replace this with a list view of the related items.
More on this can be found here: https://docs.typo3.org/typo3cms/extensions/tt_news/Manual/Index.html#related-news-by-category

Show File size in RTE Text in TYPO3 7.6

The extension ml_links is not supported anymore.
Which is the recommended way to automatically display a file's size and type for links to files made in the RTE?
I'm not referring to fluid templating for a FAL link, just regular RTE text that's output via fluid_styled_content or:
<f:format.html parseFuncTSPath="lib.parseFunc_RTE">{data.bodytext}</f:format.html>