Re: Improve HTML Markup by providing useful css classes

2014-05-20 Thread Adrian Stern
Well i found a way to do this. But ofbiz shows a really strange behavior. I think this is a bug. In Common Menus i have this: menus xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://ofbiz.apache.org/dtds/widget-menu.xsd menu name=CommonAppBarMenu

Re: Improve HTML Markup by providing useful css classes

2014-05-20 Thread Adrian Stern
I've found a way to do what i want using just my theme. So no changes to ofbiz necessary. page-container in header.ftl can be extended by ${activeApp} On 20 May 2014 09:25, Adrian Stern archd...@gmail.com wrote: Well i found a way to do this. But ofbiz shows a really strange behavior. I

Re: Improve HTML Markup by providing useful css classes

2014-05-19 Thread Adrian Stern
Hi Adrian. Ok i got this and thanks for the clarification. But just in sake for a better understanding of Ofbiz. Where would i add a css Class to an Element which is defined in Xml like the bespoken Menu? On 16 May 2014 16:54, Adrian Crum adrian.c...@sandglass-software.comwrote: The current

Re: Improve HTML Markup by providing useful css classes

2014-05-19 Thread Julien NICOLAS
Hi Adrian, If I understand well, you want to add css class in menu. If I use the CommonMenus.xml located in framework/common/widget, you can see this : menu name=CommonAppBarMenu default-menu-item-name=main id=app-navigation type=simple title=${applicationTitle}amp;nbsp;

Re: Improve HTML Markup by providing useful css classes

2014-05-19 Thread Adrian Stern
Hi Nicolas Thanks for your answer. There ist this fucntions used in the CommonAppBarMenu: title=${applicationTitle}. On the same location where the value of applicationTitle is defined the is another variable called *ActiveApp* which probably contains the app name: accounting, ar, ac, warehouse,

Re: Improve HTML Markup by providing useful css classes

2014-05-16 Thread Adrian Crum
The current markup and styling follows the OFBiz HTML and CSS Best Practices: https://cwiki.apache.org/confluence/display/OFBADMIN/HTML+and+CSS+Best+Practices Having application-specific CSS classes violates the concept of visual themes. The styling should always work the same - regardless of

Re: Improve HTML Markup by providing useful css classes

2014-05-16 Thread Adrian Stern
I've found that AccountingAppBar is the actual menu dispalyed. But i did not yet figure out how i would add a css class in the same way the id is added. On 15 May 2014 17:57, Adrian Stern archd...@gmail.com wrote: I've found the file providing the app-navigation class for all views:

Improve HTML Markup by providing useful css classes

2014-05-14 Thread Adrian Stern
I've played around with visual themes and so far i really like the ease of use. But something bothers me anyways. There seems to be no CSS-classes given to elements besides some very basic ones. This makes it basically impossible to style forms relative to the Application they're in. A global