Comments (4)
Yeah, I confirm this behavior. But it is not ext:headless bug per se, but inconsistent values from core, if you set layout via tsconfig files, you will get nice name (if you set one), but if you add record you will receive ID of record to handle on your side (in fluid context).
from headless.
@lukaszuznanski we have 2 options to match core behavior or add consistent approach in headless.
from headless.
Thanks for the reply:
In my sitepackage I loop the title through a locallang-file:
title= LLL:EXT:xzzxpackage/Resources/Private/Language/locallang_be.xlf:backendLayout.2_column.title
That is then no more working in the headless context.
Having the backend layouts in a folder in the page tree, as a record, is probably also not a good place since they should not be changed by any editor and should be clearly out of their reach.
So I assume, best practice is:
a. design the backend layouts in the backend
b. copy the code to your sitepackage (Configuration/BackendLayouts/my-backend-layout.tsconfig) import them inside a Configuration/page.tsconfig file
https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/UsingSetting/PageTSconfig.html#setting-page-tsconfig
c. change the title to a unique name for all languages
d. use this title in the Nuxt app
e. if you change the title you have to change it on both sides, TYPO3 and Nuxt
from headless.
@daUhradone what exactly is not working? Because from what I checked everything is working as expected (we match core behavior), only if you are using backend layouts as records instead of files (files in my opinion are much better solution) you have add extra step (prepare custom Typoscript) to match records to layouts same way you are doing in fluid context.
from headless.
Related Issues (20)
- Add "early if" for JSON cObjects
- Content Element with uid "xxxx" and type "xxxx" has no rendering definition! HOT 11
- FileProcessor: Exception in FileUtility while getting property width on a non-image file HOT 5
- Make some fields of JSON cObject optional
- Question about MenuSitemap and MenuSitemapPages
- Menu content elements don't output rendered tt_content JSON HOT 2
- Image on demand service HOT 8
- Preview Mode not working anymore
- v4.2.2 breakes Form json with "HEADLESS_INT_START<<" and ">>HEADLESS_INT_END" marker in TYPO3 v12 and PHP 8.2. HOT 5
- `frontendBase` ignored in SiteLanguages HOT 5
- AfterCacheableContentIsGeneratedListener overwrites TYPOSCRIPT generated meta title. HOT 6
- Unexpected `frontendBase` configuration behavior HOT 1
- Add integration with Crowdin to handle translations
- Unclear Documentation regarding Preview of Hidden Pages HOT 5
- No categories in Standard CEs HOT 4
- Custom validation errors ignored in EXT:form JSON output HOT 1
- Workspace preview uses backendUrl because headlessMode->isEnabled returns false
- Contribution of EXT:headless_mask & EXT:headless_blog HOT 2
- Option for JSON to return null instead of empty array HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headless.