Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to access the values of the TYPO3 constants in the template? #214

Open
the-andyman opened this issue Jul 10, 2024 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@the-andyman
Copy link

Hello,
is it possible to access the values of the TYPO3 constants in the EditorPreview template?
In the standard Fluid template this is possible e.g. via {settings.myvar}.
In the template of the Content Blocks Extension the value remains empty.

@nhovratov
Copy link
Contributor

Hi, TypoScript settings are only available in the frontend in general.

@the-andyman
Copy link
Author

Many thanks for the quick reply.
It is a disappointment that this does not work as desired.

I had planned, for example, to make the background color of content elements maintainable by constants.
The display of the content block element is as desired in the frontend. Unfortunately, the display is different in the backend. This is irritating when maintaining the content.

If there is a workaround for this, I would be pleased to receive further information.

@nhovratov nhovratov added the question Further information is requested label Jul 11, 2024
@nhovratov
Copy link
Contributor

Maybe if it's defined in Site Settings this would be possible. We could provide the site object in the template then.

@nhovratov nhovratov added the enhancement New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants