Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Using macro expressions in menu items View modes: 
User avatar
Member
Member
sharadag-zoomtra - 5/17/2009 10:35:31 PM
   
Using macro expressions in menu items
Hi,

I am currently exploring the CMSListMenu control. I was trying to write a macro expression that will pick up menu item's caption and render it as the ID or name attribute. I need something like the following:


<UL id='Bookings'>
<LI id='New-Booking'>New Booking</LI>
<LI id='My-Itenerary'>My Itenerary</LI>
<LI id='Reports'>Reports</LI>
</UL>


The only documentation that I have been able to find on this is Using macro expressions in menu items

But I couldn't find the actual syntax that would accomplish this. Also, can you please advice on where I should be looking for a comprehensive list of possible context data (macro) properties for a particular webpart or control.

Thanks in advance,
Sharada



User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/25/2009 9:00:21 AM
   
RE:Using macro expressions in menu items
Hi Sharada,

Unfortunately, it is not possible to ensure this using macros.

You could ensure this using RenderedHTML property of menu control. Please see this thread for more details.

Best Regards,

Martin Dobsicek