Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > CMSListMenu render result View modes: 
User avatar
Member
Member
zhaojicheng-artmtech - 11/25/2009 10:17:19 AM
   
CMSListMenu render result
Hello,Everybody.

I want to append the span into the li like this.i use the cmslistmenu control.
<UL class=nawMainUL>
<LI class=nawMainLI>
<A href="/Podstrony/Aktualnosci">
<SPAN class=nawMain-left></SPAN>
<SPAN id=sAktualnosci class=nawMain-mid>Aktualno?ci</SPAN>
<SPAN class=nawMain-right></SPAN>
</A>
</LI>
</UL>
like this website
http://www.centrumhipiki.com/
thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 12/4/2009 5:52:19 PM
   
RE:CMSListMenu render result
Hello,

You need to use renderedHTML property of your CSS List Menu (~\CMSWebParts\Navigation\cmslistmenu.ascx.cs) to parse HTML code generated by this menu: http://devnet.kentico.com/docs/devguide/modifying_the_code_of_standard_web_parts.htm. You can use standard .NET functions (e.g. replace) to do that.

Best regards
Ondrej Vasil