Sunday, 29 May 2016

Creating Custom Backoffice Extenstion..

Custom Backoffice Extenstion:-

You can create custom backoffice extenstion by using “ybackoffice” Template.This backoffice webapplication contains new modules,widgets and UI components.By using custom backoffice extenstion you can create your own implementation and your own components.

Creating a new backoffice extension:-

  •     Create the extension with "ant extgen" for that Open the cmd and go to the platform directory of your hybris folder and execute command setantenv.bat after that execute ant extgen then it will shows like
extgen:
    [input]
    [input] Please choose a template for generation.
    [input] Press [Enter] to use the default value ([yempty], yscala, ygroovy, yatddtests, yacceleratorfulfilmentprocess,ychinaacceleratorstorefront, yaddon, ycommercewebservices, ycommercewebservicestest, ycommercewebserviceshmc, ycockpit, ybackoffice)
  •     Choose the ybackoffice template Then it will ask for the name of the extension
  [input]
  [input] Please choose the name of your extension. It has to start with a letter followed by letters and/or numbers.
  [input] Press [Enter] to use the default value [training]
  •    Type the extenstionname in cmd. Ex:-custombackoffice
[input]
 [input] Please choose the package name of your extension. It has to fulfill java package name convention.
 [input] Press [Enter] to use the default value [org.training]
  •    Type the package name ex:-org.demohybris  press enter then it will ask 
[input] Create a sample widget?
 [input] ([true], false)
Eg;true
[input] Create sample style sheets? ([false], true)
Eg:true
  •    You can also leave the values to their defaults sample widget and sample style sheet.
  •    Add new extensions into config/localextensions.xml file.
 Ex: <extension dir="${HYBRIS_BIN_DIR}/custom/customcockpit"/>
  •    Perform complete build of the platform  using "Ant all" command in cmd.  

 Import the extension project into the IDE

  •     In Eclipse Right-click in package explorer and select Import
  •     Select General|Existing Projects into Workspace and browse to the new extension YOURPATH/bin/custom/extensionname
  •     Remember to ensure that the Copy projects into workspace check box is not checked before clicking on the Finish button
  •     You should now see the extension in your Eclipse Package Explorer



1 comment:

  1. Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java EE Online Training Students.

    ReplyDelete