Closed artur-grigoryan-cgn closed 2 years ago
Hey, can you explain a bit more what you are trying to achieve by having two extensions for Mask content elements? How should this work?
Hey, thanks for the quick reply! I try to have the JSON-chunks in two different extensionfolders.
We have an extension "ivs_elements" for default-elements. This is the same in every project. And we have an Extension "ivs_template" with the template and some project-specific elements.
I would like to have the JSON-chunks in:
EXT:ivs_elements/Configuration/Mask/ContentElements and EXT:ivs_template/Configuration/Mask/ContentElements
Is it possible?
Hey, it is not possible by default, but you can implement your own Mask Loader.
You can just use the current JsonSplitLoader as a basis and add your own logic to load more json files from another extension. I only see this problem: You somehow need to know what your standard content elements are and what your project specific ones are. There is no distinction for that in the Mask definitions.
I'll try that. I don't need an distinction for that. I just need all them to get loaded. :) I have some more questions:
EXT:ivs_elements/Configuration/Mask/ContentElements and from EXT:ivs_template/Configuration/Mask/ContentElements anymore
Thank you for the answer. In 1. i was asking for changing the extension-key. :)
Go to LocalConfiguration.php and string replace ivs_template with ivs_elements in the EXTENSIONS => mask section
Hi, im using two extensions for content elements. Is it possible to add a second path for the JSON-files? Thanks. :)