Adrian,Should we instead consider integrating portal server (apache Pluto) into Ofbiz and use its rich UI features instead of developing our own stuff?
Regards Anil PatelOn Jul 14, 2008, at 11:31 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote:
I don't know if we'll actually do anything like that, and our efforts are of a secondary priority for us right now anyway.If you'd like to work on this for your own needs, or for the fun of it or whatever is motivating your interest, then go for it!-DavidOn Mon, 14 Jul 2008 07:14:48 -0700 (PDT), Adrian Crum <[EMAIL PROTECTED] > wrote:Exactly.Let me know if there is anything I can do to help. I don't want to overlapanything going on in your project. -Adrian --- On Sun, 7/13/08, David E Jones <[EMAIL PROTECTED]> wrote:From: David E Jones <[EMAIL PROTECTED]> Subject: Re: OFBiz themes gallery on Confluence To: dev@ofbiz.apache.org Date: Sunday, July 13, 2008, 11:43 PM You're right Adrian, I think I did miss what you were getting at. Are you imagining a new entity called "Theme", or perhaps something more specific like "VisualTheme" or some name like that? This entity would have one or more stylesheet locations associated with it, and perhaps other information. The theme IDs would be referred to in the ProdCatalog entity, and in one or more user preference records as well. Something along those lines? -David On Jul 11, 2008, at 11:20 AM, Adrian Crum wrote:I think you missed something. Or maybe I wasn'tclear enough.eCommerce would work exactly like you described, theonly differencebeing instead of configuring a catalog or store to usea stylesheet,you configure it to use a theme. User selected themesaren't used ineCommerce. On the back office side, the user can select a themeand it ispersisted in user settings. Both eCommerce and the back office apps would sharecommon themeselection code. What they do with the themes iswhat's different.Thinking about it more, it would be better to specifythemes ineCommerce instead of specifying stylesheets - since atheme mightrequire more than a stylesheet change. -Adrian David E Jones wrote:It depends on the requirements and what we want todesign for eachthing. For ecommerce the common requirement is to let thepeople runningthe store decide what it will look like, withpossibly differentL&F for different sets of products (iedifferent catalogs).Would (does?) anyone really want user selectablestyling forecommerce? On the backend it's different altogether.Those are the toolsemployees, contractors, etc use on a regular basisand it might benice to allow them to change certain colors,fonts, etc... justlike you would do with your desktop and variousapplications on it.Different requirements, different implementationsand tools.-David On Jul 11, 2008, at 10:58 AM, Adrian Crum wrote:Agreed. But do we want duplicateimplementations?Maybe we can come up with a frameworkimplementation thateCommerce builds on. Let's say theframework has a system ofselecting themes. Then in eCommerce, insteadof specifying astylesheet in the ProdCatalog, you couldspecify a theme. Theframework theme-handling code would then usethe appropriate stylesheet. What do you think? -Adrian David E Jones wrote:The ProdCatalog thingy is really only forthe ecommerce site. Formanager application styling andpreferences it would be serioushack... -David On Jul 11, 2008, at 9:58 AM, Adrian Crumwrote:Well, the system we implemented hereis set up with an XML filethat has a selection of themes andwhere their files can befound. The XML file is also used topresent the user with a menuof styles to choose from. Theirselection is kept in userpreferences. I like your idea better though. Maybethe user preference couldcontain the primary key of aProdCatalog record. The new MyPagecomponent could have an area thatdisplays all ProdCatalogrecords for the user to choose from. -Adrian David E Jones wrote:Good question/point.... We'remainly just looking at skinningthe ecommerce application, ie theOOTB templates.Something similar for the internalapps would be interesting...are you thinking of something likea personal preference? Forthat we could do something likespecify or upload your ownstylesheet (that would overrideany styles desired in thedefault one), or perhaps even getfancier and allow people tospecify certain things that wouldgo into a dynamicallygenerated stylesheet of some sortto override the mainstylesheet... -David On Jul 11, 2008, at 9:47 AM,Adrian Crum wrote:David, That's great news! Willthere also be a way to select thetheme for the back officeapplications?-Adrian David E Jones wrote:This is really much easierthan it seems, and actually acouple of weeks ago I gota couple of people at Hotwaxstarted working on somethemes and some HTML/CSS enhancementsto make the skinning moreflexible.The plan we'rethinking of is to use the existing theProdCatalog stylesheetfield to change the stylesheet, andpossible extend that tosupport multiple stylesheets. Withthis approach all you haveto do to add a theme is add a hot-deploy component thatcontains your CSS and image files in awebapp, and some data filewith the ProdCatalog records thatwould probably be the sameas the main demo ProdCatalog andbe attached to the samestore and categories, but with adifferent stylesheet. Inthis way you could also havedifferent sets of productsthough, which would allow you toeasily do some cool democatalogs/sites for different setsand types of products. -David On Jul 11, 2008, at 9:20AM, Adrian Crum wrote:At the last developersconference, I had suggested to DavidJones that we have a"CSS Style Sheet Shootout" - wheredifferent OFBizdevelopers could submit their themes to Jiraand we could vote onthem. The one with the most votes wouldget committed to theproject. At the time there was too muchembedded styling inthe project - so it wouldn't work and,consequently, nothingwas done. Things are different now andchanging the style ofthe whole project is easier. So, I'min agreement with thataspect of this thread.Where I have a problemwith this thread has already beenmentioned - havingmultiple themes in the trunk will becomea support nightmare.My preference would be to have the*capability* to switchthemes built into the framework, butonly have one theme inthe trunk. Anyone wanting to supplyadditional themescould do so on their own. It could evendevelop into a cottageindustry.-Adrian Ashish Vijaywargiyawrote:+1 On Fri, Jul 11,2008 at 4:21 AM, Jacques Le Roux <[EMAIL PROTECTED]> wrote:Bruno, Ashish, Having them inseparated directories, why not introduce aproperty ingeneral.properties file (or somewhere else) to select thetheme at will, default beingthe one we use currently ?Jacques From:"Bruno Busco" <[EMAIL PROTECTED]>Ashish,thank youfor your comments.Well, ofcourse if the themes are taken from the gallerythereshould be ainformation on the theme that tells you with whichrelease ofOfbiz it canbe used(now we could go with the SVN rev until we havethe nextrelease).For thefile overwritting we could think to have thetheme in aspecialfolder(this is how many CMS do, for example Drupal).So forexample we could have:/framework/images/webapp/images/themes/theme1/maincss.css/framework/images/webapp/images/themes/theme2/maincss.cssthethemesX folder should never be committed. And thenhave a UIthat letus specifywhich theme between the availables must be used(this, as suggested, could bein the user preferences).-Bruno 2008/7/11Ashish Vijaywargiya <[EMAIL PROTECTED]:Sorry forwriting again on this.But Isee a loopwhole in this.Suppose you are creating new maincss.css file.Someone has downloaded your file and kept your file inimagesdirectoryandremoves the old one.Now ifuser take update of Ofbiz on regular basis or wecansay aftercertain duration of time.And ifsomeone introduce a new class in Stylesheet fileanduses itextensively in some section so in thiscaseyour file(maincss.css created by you) might not behavingthose newclasses entries.So thelayout will not be consistent.Whatdo you think about it Bruno ?-- Ashish OnFri, Jul 11, 2008 at 1:49 AM, Ashish Vijaywargiya <[EMAIL PROTECTED]> wrote:Bruno,Ilike your idea.--AshishOnFri, Jul 11, 2008 at 1:37 AM, Bruno Busco <[EMAIL PROTECTED]wrote:Hi devs,I am writing a new maincss.css file and I will submitwhen finished.I think that several other users/developers will write(or havealready)their .css files.Since the graphical theme is something very subjectiveit will bedifficultto agree with a unique theme and have it committed onSVN.So I propose to open a OFBiz Theme Gallery onconfluence where alluserscanupload their own theme with a little screenshot.All users could then browse the available theme,download it and copyontheir ofbiz installation.The standard theme format to uploaded could be afolder that containsthemaincss.css file and relative gif files.What do you think about?Many thanks,Bruno
smime.p7s
Description: S/MIME cryptographic signature