Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

TSConfig variables in BE preview #473

Closed intertain closed 2 years ago

intertain commented 2 years ago

Hi Gernott and Team, we developed a cool backend preview which shows the CE like in frontend view. But now we need to set a variable in TSConfig to make difference between multiple page trees. We need this variable in backend preview view. Would you be possible to update the extension to give pageTS variables (e.g. tx_mask.settings.{..}) into the preview? Would be great. We also would pay for that feature.

Yours, Michael from intertain

nhovratov commented 2 years ago

Hey Michael, it is actually pretty easy what you describe. The data row is already available. You could just make a ViewHelper, which calls BackendUtility::getPagesTSconfig($row['pid']) and get the needed information from there. I don't know if it is worth adding it from the Mask side, as it is a rather uncommon usecase.

intertain commented 2 years ago

Hi. thanks I got it and could create a Viewhelper that brings the TSConfig variables into the preview view... Thanks...