hello kentico dev i try to apply transformation to get children of page but i want get only item of cms.menuitem i try this but didnt work any idea thanks
nded="false" data-for="subinfo-{%x.DisplayName.Replace(" ","-").ToLower()#%}">{%x.DisplayName#%}</a> </li> {%}#%} </ul> <div class="banking-sub-menu-content"> {%foreach (x in Documents[NodeAliasPath].Children.Where(x => x.ClassName == "cms.menuitem")){ %} <div class="banking-sub-menu-content-block" data-info="subinfo-{%x.DisplayName.Replace(" ","-").ToLower()#%}"> {%Documents.WithAllData[x.NodeAliasPath].GetValue("MenuItemDescription") %} </div> {%}#%} </div>`
try this: Documents[NodeAliasPath].Children.Where("ClassName = 'cms.menuitem'")
Documents[NodeAliasPath].Children.Where("ClassName = 'cms.menuitem'")
Please, sign in to be able to submit a new answer.