0

I've used the Mask-Extension in TYPO3 to create a custom content element for news articles.
Now I want to generate a thumbnail preview on the news parent page that contains images and texts from that mask element.
This means I need to access the data inside of a custom content element of a foreign page.

I've used <f:debug> to see if I can get information from the {data} Array on the page / childpage but there is nothing with content of the mask element.

I suspect that I might need to add a new dataProcessor in my setup.typoscript, but I do not understand how those work well. Mask has its own dataProcessor but I was unable to include it inside my extension.

Do I need to work with dataProcessors here at all and if yes how do I do that?

The field names of the mask-news element are:

  • tx_mask_news_innertext

  • tx_mask_news_innerpicture The tca in mask.json looks like this:

    "tca": {
                "tx_mask_news_innerpicture": {
                    "cTypes": [
                        "image"
                    ],
                    "config": {
                        "appearance": {
                            "collapseAll": 1,
                            "enabledControls": {
                                "dragdrop": 1
                            },
                            "levelLinksPosition": "top",
                            "showAllLocalizationLink": 1,
                            "showPossibleLocalizationRecords": 1,
                            "useSortable": 1
                        },
                        "foreign_sortby": "sorting",
                        "foreign_table": "tt_content",
                        "overrideChildTca": {
                            "columns": {
                                "colPos": {
                                    "config": {
                                        "default": 999
                                    }
                                }
                            }
                        },
                        "type": "inline"
                    },
                    "description": "",
                    "key": "news_innerpicture",
                    "l10n_mode": "",
                    "name": "content"
                },
                "tx_mask_news_innertext": {
                    "config": {
                        "enableRichtext": 1,
                        "richtextConfiguration": "",
                        "type": "text"
                    },
                    "description": "",
                    "key": "news_innertext",
                    "l10n_mode": "",
                    "name": "richtext"
                },
David
  • 5,882
  • 3
  • 33
  • 44
Ilummini
  • 29
  • 6

0 Answers0