Hi Ole
I'm still thinking about the possibility of using "foreign" themes or plugins without changing them, that is, with an interface. Without understanding things in depth and knowing how big the differences between different CMS are, I came up with this possible solution:
https://www.sigada.org/ada_letters/sept2001/12-alfred.pdf
https://en.wikipedia.org/wiki/Exception_handling
So you leave the code as it is and wait for the error, then you fix it. And if it's fast, then it's no problem to fix the error again and again. For example, different variable names.
It is an approach that is somewhat contrary to our normal thinking, because we want to prevent errors in principle. But sometimes it is easier to let the error happen so that it is known and then offer the right solution. For example, to provide the right variable to the theme.
Ok, too naive?
The method is actually not unnatural and we often use it in life. For example, the pandemic, i.e. SARS-CoV-2. We think science has failed, they caused the pandemic with their research and we can no longer trust them. With exception handling there is a different solution approach. We trust, but we solve the mistakes. Example:
An article about the beginning of erroneous research in switzerland:
https://grantome.com/grant/NIH/R21-AI062246-02
Then an article by the same researcher about his "great success", with a little lie in it:
https://www.unibe.ch/news/media_news/media_relations_e/media_releases/2020/media_releases_2020/bern_coronavirus_clone_goes_viral/index_eng.html
Then a video with the truth, especially at 21:20:
http://www.croiwebcasts.org/console/player/47935?mediaType=slideVideo&
Now we know the mistake and just have to correct it, i.e. stop the yeast cell method, lock up Volker and develop good drugs:
https://www.msn.com/en-US/news/scienceandtechnology/molecule-derived-from-poisonous-plant-blocks-all-sarscov-variants-in-cell-cultures/ar-AARbAIg
But because we are not used to focusing on the errors, but on the prevention of the errors, we have a system that is so big and cumbersome that it becomes corrupt and the errors still happen, but there is no exception handling! It's a pity, isn't it?