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.
- /_internal/velocity/Page/Helpers
- /_internal/velocity/Pages/Sections
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
This update is strongly recommended.
Step 1:
On your local WCMS site, navigate to /_internal/velocity/Page/Helpers .
If the content of this file has only the following line:
#import('site://IU-FRAME-WEBS.common/velocity/1.2.x/Page/Helpers')
Then you can skip this step. Otherwise, append the following code into this file:
Step 2:
On your local WCMS site, navigate to /_internal/velocity/Page/Sections.
If the content has only the following 3 lines:
#import('/_internal/velocity/Page/Helpers')
#import('site://IU-FRAME-WEBS.common/velocity/1.2.x/Page/Sections')
#GetSettingsBlock()
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.
Right after #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.
Step 3:
Publish the file.