ASPX templates
Version 5.x > ASPX templates > Dynamic Menu & Submenu View modes: 
User avatar
Member
Member
fan4u - 9/2/2011 10:30:04 PM
   
Dynamic Menu & Submenu
Hi ,

We have a requirement for Dynamic Menu & Submenu .

submenu is horizontal submenu

Submenu should be slide in & out on menu click ( http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_slidetoggle )

& also Submenu should be scrollable like ( http://www.dyn-web.com/code/scroll/demos.php#horiz)

i can achieve the slide in & slide out using jquery & dynamic scroll divs & css classes.

But want to know what is the best way of achieveing this Menu system.

Is it CMSMenu (or) ListMenu (or) Nested Repeater

Menu & submenu related information can be retrieved from tables

Please provide me some sample examples (or) reference links which can help me to achieve this.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/5/2011 6:09:50 AM
   
RE:Dynamic Menu & Submenu
Hi,

according to your description it seems that you will need to create a custom layout. For this you could use nested repeaters, i.e. insert second repeater into transformation of the first one. In the following example is used datalist as nested control, but you can use a repeater if you want:

<strong><a href="<%# ResolveUrl(GetUrl( Eval("NodeAliasPath"), null)) %>">
<%# Eval("DocumentName") %></a></strong>
<br />

<cc1:CMSDataList ID="CMSDataList1" runat="server" ClassNames="cms.article" Path='<%# Eval("NodeAliasPath") %>'

TransformationName="cms.article.default" RepeatColumns="2" >

</cc1:CMSDataList>

<script runat="server">
protected void Page_PreRender(object sender, EventArgs e)
{
CMSDataList1.ReloadData(true);
}
</script>



This way you can create a layout which you need.

Best regards,
Ivana Tomanickova