Coder Social home page Coder Social logo

ofbiz-central-login's Introduction

Purpose: 
Makes a login page where all users can log on (instead of having to visit each specific application URL they have access to). Once logged-in they will see only the apps they can access (as yellow buttons with Icons -  See included screenshot)  

How it works: 
This application is mounted on the root https://localhost:8443, once logged in the app calls two CSS files that turn the existing Ofbiz applications menu into buttons with Icons. That's it! Simple and quick :)     

Note:
This was made for the default Ofbiz visual theme "Tomahawk" using the EN english language setting or ES Espanol setting. (For other languages, you will have to update the css file). Browsers tested: IE9, Firefox, Chrome. 

Instructions: 
1. Add the included "Welcome" folder to your "Ofbiz/hot-deploy" folder

2. Add the included CSS file and font-awesome folder to the Tommahawk theme's CSS folder at "ofbiz/themes/tomahawk/webapp/tomahwak/css"

3. Replace your theme's appbarOpen.ftl file with the one included at "ofbiz/themes/tomahawk/include" folder (1 line changed, see inline comments) 

4. Restart Ofbiz and visit the root Ofbiz URL https://localhost:8443 (This app is mounted to root) 

5. Login with any user account, you will only see apps that account has access to (As Yellow buttons with Icons - See included screenshot)  

6. DONE !! Enjoy :) 

How to change icons: 
Edit the css file. For a list of available icons visit the font awesome website at http://fortawesome.github.io/Font-Awesome/icons/

——————————————————————————————————————————————————————————————————————————————————————————

If you are curious as to what files I added/changed on Ofbiz, please see below: 

Folders Added:
ofbiz/hot-deploy/welcome - I used "./ant create-component" to make the welcome app in the hot-deploy folder. 
ofbiz/themes/tomahawk/webapp/tomahawk/css/font-awesome - Downloaded from font-awesome website. 

Files Added: 
ofbiz/themes/webapp/tomahawk/css/welcomeappstyle.css

Files Modified:
ofbiz/hot-deploy/welcome/widget/CommonScreens.xml - added stylesheet calls, see comments in line 18/19
ofbiz/hot-deploy/welcome/ofbiz-component.xml - Set root mount point and base-permission to "OFBTOOLS" on lines 37/38
ofbiz/themes/tomahawk/includes/appbarOpen.FTL - added <icon> tag to menu items, see comments in line 69

ofbiz-central-login's People

Contributors

alex-418 avatar

Watchers

James Cloos avatar Pradeep Kumar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.