Hi,
I correct the codes in MegaMenuTopLevel and MegaMenuSub.
I don't see the transformation error but the menu dont appear
I checked Menu item CSS class of each document and the configuration of the repeater
I don't see any problem.
The code I add in
MegaMenuTopLevel transformation
<asp:Literal ID="ltlContentBeforeDivStart" runat="server" Visible="false" Text='<div class="' />
<asp:Literal ID="ltlContentBefore" runat="server" Visible="false" Text='<%# IfEmpty(Eval("DocumentMenuClass"), "dropdown_1column", Eval("DocumentMenuClass"))%>' />
<asp:Literal ID="ltlContentBeforeDivEnd" runat="server" Visible="false" Text='">' />
<cms:CMSRepeater runat="server" ID="repSubItems" Path='<%# Eval("NodeAliasPath") + "/%" %>' ClassNames="CMS.MenuItem" TransformationName="CMS.MenuItem.MegaMenuSub" OrderBy="NodeLevel, NodeOrder, NodeName" MaxRelativeLevel="1" WhereCondition="DocumentMenuItemHideInNavigation='false'" />
<asp:Literal ID="ltlContentAfter" runat="server" Visible="false" Text="</div>" />
<script runat="server">
protected void Page_PreRender(object sender, EventArgs e)
{
if (repSubItems.Items.Count != 0)
{
ltlContentBeforeDivStart.Visible = true;
ltlContentBefore.Visible = true;
ltlContentBeforeDivEnd.Visible = true;
ltlContentAfter.Visible = true;
// ltlChildClass.Visible = true;
}
repSubItems.ReloadData(true);
}
</script>
The code I add in
MegaMenuSub transformation
<div class="<%# IfEmpty(Eval("DocumentMenuClass"), "col_1", Eval("DocumentMenuClass"))%>">
<%# IfEmpty(Eval("MenuItemTeaserImage"), "", "<img src='" + GetFileUrl("MenuItemTeaserImage") + "maxsidesize=20"; style=";margin: 0 5px 0 0; float: left;"; />") %>
<a href="<%# GetDocumentUrl() %>;"><%# Eval("DocumentName") %>
</div>
sorry about that but I still don't fix the problem completely
Please help me
Thank you