Breadcrumbs (and SimpleView in general)
I've posted about this before, and you guys have done it since then in a few controls, but PLEASE just put this into the SimpleView class...I don't want every control rendering an empty BLANK span or div around the actual control
protected
override
void
Render(HtmlTextWriter writer)
RenderContents(writer);
Hello Steve,
Putting such code in SimpleView is a big risk. All widgets in Sitefinity inherit from that and some of them actually need to render a wrapper tag. Although I understand that excessive markup is not a good thing, sometimes it is needed, especially in the WebForms world which we have not ruled out entirely.
Kind regards,Okay, I'll buy that...would you consider at least giving me the OPTION (via a property) to disable instead of having to create inherited controls just to remove it?
Like
protected override void Render(HtmlTextWriter writer)
if(this.RenderWrapperTag)
RenderContents(writer);
Hello Steve,
Exposing the removal of a wrapper tag as a property on SimpleView will probably cause abuse of that property. We will discuss whether we can expose it separately on other controls where it will be safe.
Your second suggestion is valid and we will fix the default. Logging an issue in PITS, however, may speed up the process.
1) Let us toggle, and abuse it :) ...hidden in advanced I can't see many (any) users abusing it. "Oh what's this property set to True mean, perhaps I'll set it to False for no reason"?
2) Go through every control and every new control to check for empty containers and\or set wrapper classes on the containers (thats too much work for you guys right)