kentico_michal
-
3/2/2011 8:51:01 AM
RE:Edit Breadcrumbs Default Code
Hi,
Regrettably, this could be done only by editing the RenderedHTML property which gets/sets the rendered HTML code in code-behind (either breadcrumbs webpart or ASPX template where is it used).
You can get the rendered HTML, parse it, change it and add new div tags with classes according to your needs.
this.<name of the control>.LoadDataAutomaticaly = false; string s = this.<name of the control>.RenderedHTML; // here please change the HTML code this.<name of the control>.RenderedHTML = s;
In case of BreadCrumbs web part, this should be done in OnPreRender method.
Best regards, Michal Legen
|