Let me give you some advice.
-
be patient no-one here is your employee and no-one here is under any obligation or pressure to answer at all, I said I would reply again after I get a chance to work on it, don't try to pressure me for faster responses, doing that makes me not want to help
-
maybe this is a cultural difference but in my culture when you call people who you don't know "friend" and you are trying to persuade or pressure them to do something it makes you sound like a pushy salesman, it does not make people feel like a friend at all.
I worked most of the day yesterday on making menu properties configurable from the theme.skin file so it is possible to control many aspects of the rendering including the CSS classes used and the ability to turn off all CSS. If you are working from the source code repository these changes are already in there, otherwise these changes will be available in the next release of mojoPortal.
This shows how to declare it in theme.skin and shows alll the default values for menu:
<portal:mojoMenu runat="server" SkinID="SiteMenu"
RenderContainerCssClass="true"
RenderCssClasses="true"
RenderAnchorSelectedCss="true"
RenderLiSelectedCss="true"
RenderImages="true"
UlCssClass="AspNet-Menu"
LiCssClassWithChildren="AspNet-Menu-WithChildren"
LiCssClassWithoutChildren="AspNet-Menu-Leaf"
LiSelectedCssClassWithChildren="AspNet-Menu-SelectedWithChildren"
LiSelectedCssClassWithoutChildren="AspNet-Menu-SelectedLeaf"
LiChildSelectedCssClass="AspNet-Menu-ChildSelected"
LiParentSelectedCssClass="AspNet-Menu-ParentSelected"
AnchorCssClass="AspNet-Menu"
AnchorSelectedCssClassWithChildren="AspNet-Menu-SelectedWithChildren"
AnchorSelectedCssClassWithoutChildren="AspNet-Menu-SelectedLeaf"
AnchorChildSelectedCssClass="AspNet-Menu-ChildSelected"
AnchorParentSelectedCssClass="AspNet-Menu-ParentSelected"
/>
this example shows how to turn off all CSS on the menu:
<portal:mojoMenu runat="server" SkinID="SiteMenu"
RenderContainerCssClass="false"
RenderCssClasses="false"
RenderAnchorSelectedCss="false"
RenderLiSelectedCss="false"
/>
Note however that the Menu control inherits from the ASP.NET Menu control and that control has javascript that adds CSS to the menu and there is no way to disable that javascript. To really get no CSS you could use a TreeView. This shows the settings I implemented to control mojoTreeView rendering with default values:
<portal:mojoTreeView runat="server" SkinID="SiteMenu"
RenderLiCssClasses="true"
RenderAnchorCss="false"
ExpandedCssClass="AspNet-TreeView-Collapse"
CollapsedCssClass="AspNet-TreeView-Expand"
LiCssClass="AspNet-TreeView-Leaf"
LiRootExpandableCssClass="AspNet-TreeView-Root"
LiRootNonExpandableCssClass="AspNet-TreeView-Root AspNet-TreeView-Leaf"
LiNonRootExpnadableCssClass="AspNet-TreeView-Parent"
LiSelectedCssClass="AspNet-TreeView-Selected"
LiChildSelectedCssClass="AspNet-TreeView-ChildSelected"
LiParentSelectedCssClass="AspNet-TreeView-ParentSelected"
AnchorCssClass="inactive"
AnchorSelectedCssClass="current"
/>
and this shows how you can turn off all CSS:
<portal:mojoTreeView runat="server" SkinID="SiteMenu"
RenderLiCssClasses="false"
RenderAnchorCss="false"
/>
In both examples to make it affect PageMenu then set the SkinID="PageMenu" instead of "SiteMenu" or create entries for both in theme.skin
So there you have it, if working from the source code is is possible to make a menu or treeview with no CSS or with custom CSS classes. And these changes will be available in the next release of mojoPortal.