Kentico | Mega Menu Query -
i have setup basic mega menu following steps outlined here
all works fine except couple issues:
- i can image display in menu if hardcode img src link i.e. menuitemteaserimage won't work using 4 variations of following: (note: uploaded teaser img form tab relevant page also)
<img src="<%#getfileurl("menuitemteaserimage")%>" alt="" /> <img src="<%# getimage("menuitemteaserimage", 200, 200, 100, "image alternate text") %>" alt="" /> {%menuitemteaserimage.tostring()==""?"":"<img src='~/getattachment/" + menuitemteaserimage + "/" + documentname + "?maxsidesize=20' style='margin: 0 5px 0 0; float: left;' />"#%} <%# ifempty(eval("menuitemteaserimage"), "", "<img src='" +getfileurl("menuitemteaserimage") + "?maxsidesize=20' style='margin: 0 5px 0 0; float: left;' />") %>
- my sub sub pages in menu appear beside sub pages want them fall below them per normal mega menu convention. tried creating tier in tree hierarchy same settings tier level 1 (from same article) no joy?
you can see img menu teaser img not displaying , 'cafe test subpage' appears left of 'cafe test' though subpage of , likewise 'cafe sub subpage' appears after 'north america' though subpage of menu item.
appreciate above issues , particular based on fact used procedure article
thx
the menuitemteaserimage attachment can call getattachmenturl or getfileurl methods retrieve url or getimage image directly.
Kentico 12 migration I would like to say that this blog really convinced me to do it! Thanks, very good post.
ReplyDelete