Portal Engine
Version 3.x > Portal Engine > Cmslist Menu View modes: 
User avatar
Member
Member
caspian_softdev-yahoo - 9/21/2008 9:50:43 AM
   
Cmslist Menu
i want to have my own cmslist menu same as that exist on e-comerce starter website.

i want to create my own navigation menu for my products category but i don't know how i must get products category and their sub items for populating my own Menu.
i this case i use Devexpress ASPxNaveBar control to create my own product category list.

best regards

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/22/2008 4:05:59 AM
   
RE:Cmslist Menu
You can use 'CSS list menu' webpart. You could use 'path' property to cover up your product category (folder).
Please see complete description of this webpart: http://devnet.kentico.com/downloads/KenticoCMS_WebParts.pdf

You can use CSS stylesheets and design it to be the same as on Starter site.

User avatar
Member
Member
caspian_softdev-yahoo - 9/22/2008 10:13:46 AM
   
RE:Cmslist Menu
how we can u template for each menu item in cmslistmenu?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/23/2008 9:34:49 AM
   
RE:Cmslist Menu
Hi,

The menu item is displayed according the page template of document. The web parts could be placed in design tab, if you are using a Portal Engine. If you prefer ASPX templates mode, you could develop the ASPX template for the documents. The web parts are shared for all documents with the same page template.

The Ecommerce sample site uses the Datalist web part in the page template which is used for all nodes of product tree. This web part ensures displaying of all products –the transformation for displaying the single products is specified in web part properties -> Selected item transformation.

Please let me know, if you mean something else with your question.

Best regards,
Helena Grulichova

User avatar
Member
Member
caspian_softdev-yahoo - 9/23/2008 9:53:12 AM
   
RE:Cmslist Menu
hi and tank u

i want to have this menu my my web site
please see this image http://www.Learncore.net/1.jpg

as u see in this image i can define HTML table with one row and two columns as a template of my menu item

i want to know in Kentico how we can define menuItem Template?

for clearence i say u one example:

in datalist control of ASP.NET we can define template for item(known as Item Template) in this template we design layout of our itemes and dataList repeat it for every item.

i hope i could express my purpose good enpugh.

thanks

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/23/2008 10:14:16 AM
   
RE:Cmslist Menu
Hi,

Thank you for your detailed explanation. It is now much clearer for me.

The design style could be set in CSS list menu web part properties in the Design section. There you could also assign a CSS prefix for classes in site stylesheet, which could be found in Site Manager -> Development -> CSS stylesheets.

You could inspire from the sample Ecommerce site, copy the code with LeftMenu prefix from Ecommerce CSS stylesheet and change it according your needs.

Best regards,
Helena Grulichova

User avatar
Member
Member
caspian_softdev-yahoo - 9/23/2008 10:21:26 AM
   
RE:Cmslist Menu
thns alot
now i find that how i must work on Menu

but if there are a way to have Itemtemplate in CMSListMenu it will be very very simple to use and rapid to implement menu.

best regards

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 9/23/2008 10:35:06 AM
   
RE:Cmslist Menu
Hello,
I will pass your suggestion to our developers it may be considered as feature and added to new versions of Kentico CMS.

Best Regards,
Zbysek Nemec

User avatar
Member
Member
jcrhee-mac - 10/18/2008 4:19:58 PM
   
RE:Cmslist Menu
I am trying to use the cmslist menu....

I want to have my own class within the UL tag...reason is I want to set the margins on the list, how can I do this? It keeps trying to put in a standard one and I cannot find it in my stylesheet....

<ul id="menuElem"> is what it adds.

Also want to know if I can manually add a menu item to the end of the list through the control....let me know if I need to explain more.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 10/20/2008 5:24:27 AM
   
RE:Cmslist Menu
Hello,

The simplest way how to achieve your goal with CSS designing is to define class container for your menu in 'HTML envelope' section. You can refer to your submenu link using:

.classContainer ul li ul li a
{
}

If you need exact class in your code, you can define it in 'CMS Desk -> Content -> <menu item> -> Properties tab -> Menu -> Menu item CSS class'. Then you may need to check 'Apply menu design' in menu webpart properties. It will generate appropriate class.

Another possibility is to check 'render CSS classes' in menu webpart properties, which will enforce generating CSS classes for <ul> and <li> elements: CMSListMenuUL, CMSListMenuLI and CMSListMenuLink. You can refer on them in CSS stylesheet.

For more information please see Webparts manual: http://devnet.kentico.com/downloads/KenticoCMS_WebParts.pdf on the page 129.

Best regards
Ondrej Vasil

User avatar
Member
Member
perezj-gmail - 5/24/2011 11:39:12 PM
   
RE:Cmslist Menu
Whats this request ever implemented?. I have the same need.
Would like to control the rendered html inside each list item. Out of the box the cmslistmenu renders a link. I want to render something else for example .

<a href="/air-conditioning.aspx"><span>Air Conditioning</span><small>AC Repair & Services</small></a>.

right now I get something like this.
<li class="MainNav_CMSListMenuLINavFirst"><a class="MainNav_CMSListMenuLink" href="/Air_Conditioning.aspx">Air Conditioning</a>

</li>

Having control over the item template would be great at least an event handler that we can change the output html.

I am using version 5.5. R2

Thanks!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/26/2011 3:25:49 AM
   
RE:Cmslist Menu
Hello,


You can rewrite the rendered HTML output in the <controlID>.RenderedHTML property. You can see some samples in this forum thread: http://devnet.kentico.com/Forums.aspx?forumid=36&threadid=7311


Best regards,
Helena Grulichova