Kentico | Mega Menu Query -


i have setup basic mega menu following steps outlined here

all works fine except couple issues:

  1. 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;' />") %> 
  1. 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?

enter image description here

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.


Comments

  1. Kentico 12 migration I would like to say that this blog really convinced me to do it! Thanks, very good post.

    ReplyDelete

Post a Comment

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -