Hi, im manually procesing some elements, and I have the piece of code inside a chunk
[[+normalMenuTitle:strlen:isgreaterthan=`0`:then=`
<base-dropdown tag="li" class="nav-item">
<a slot="title" href="#" class="nav-link" data-toggle="dropdown" role="button">
<i class="ni ni-collection d-lg-none"></i>
<span class="nav-link-inner--text">[[+normalMenuTitle]]</span>
</a>
[[!getImageList?
&tvname=`menuBigItems`
&tpl=`@CODE:<a to="/landing" class="dropdown-item">Landing</a>`]]
</base-dropdown>
`]]
</ul>
But after processing I’m getting
<base-dropdown tag="li" class="nav-item">
<a slot="title" href="#" class="nav-link" data-toggle="dropdown" role="button">
<i class="ni ni-collection d-lg-none"></i>
<span class="nav-link-inner--text">Por aca</span>
</a>
[[!getImageList?
&tvname=`menuBigItems`
&tpl=
</ul>
<ul class="navbar-nav align-items-lg-center ml-lg-auto">
Where it correctly process the first part of the logic, but removes the CODE part and brokes the html.
If I put a chunk on the tpl field, it works as expected.
I’m still on a old version (2.8.1) will update and see if the problem persist on latest 2x
The issue only happens when the CODE was inside a preprocesor, when it’s not nested, it works as expected
[[!getImageList?
&tvname=`socialMediaList`
&tpl=`@CODE:
<li class="nav-item">
<a class="nav-link nav-link-icon" href="https://www.facebook.com/creativetim" target="_blank" rel="noopener"
data-toggle="tooltip" title="Like us on Facebook">
<i class="fa fa-facebook-square"></i>
<span class="nav-link-inner--text d-lg-none">Facebook</span>
</a>
</li>
`]]