This update fixes duplicated output of code chunk in attached section. If your site do not have the following 2 formats localized, you can skip this.
Otherwise, to solve the issue,
- A new variable, $IN_OR_EX, has to be set in /_internal/velocity/Page/Sections
- A new macro, #infoInternal(), has to be added in /_internal/velocity/Page/Helpers
On your local WCMS site, navigate to /_internal/velocity/Page/Helpers .
If the content of this file has only the following line:
Then you can skip this step. Otherwise, append the following code into this file:
On your local WCMS site, navigate to /_internal/velocity/Page/Sections.
If the content has only the following 3 lines:
you can skip this step as well. Otherwise, locate code of the start of section processing which should be between 270 and 274, and code for internal preview which should be between line 290 and 296.
#foreach($section in $sections), insert the following code:
#set($IN_OR_EX = '')
And right after [system-view:interna], insert the following code:
#set($IN_OR_EX = 'internal')
Click Submit to save your changes.
Publish the file.