2020-11-08, 23:59:28
(This post was last modified: 2020-11-09, 08:30:53 by vixrealitum.)
I found a solution that works on the principle I asked above.
This piece of code is enough..
The solution allows you to change the content in one place / section and then it can be repeatedly downloaded to different templates. It don't need to edit the same content multiple times on different tabs.
Custom Fields + I18N plugins are required for proper operation.
This piece of code is enough..
PHP Code:
<?php if ($language == 'pl') { ?><?php getPageContent('index', 'section1');?><?php } ?>
<?php if ($language == 'en') { ?><?php getPageContent('index_en', 'section1');?><?php } ?>
The solution allows you to change the content in one place / section and then it can be repeatedly downloaded to different templates. It don't need to edit the same content multiple times on different tabs.
Custom Fields + I18N plugins are required for proper operation.