Created
June 22, 2017 12:09
-
-
Save prakashcubet/e6272604f0579593e1d86c6eba874da8 to your computer and use it in GitHub Desktop.
Registering the package in Reaction commerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Reaction } from "/server/api"; | |
Reaction.registerPackage({ | |
label: "Bees Knees", | |
name: "beesknees", | |
icon: "fa fa-vine", | |
autoEnable: true, | |
registry: [ | |
{ | |
route: "/home", | |
name: "home", | |
template: "home", | |
workflow: "coreWorkflow" | |
} | |
], | |
layout: [{ | |
layout: "CoreLayoutBeesknees", | |
workflow: "coreProductWorkflow", | |
collection: "Products", | |
theme: "default", | |
enabled: true, | |
structure: { | |
template: "productsLanding", | |
layoutHeader: "layoutHeader", | |
layoutFooter: "layoutFooter", | |
notFound: "productNotFound", | |
dashboardHeader: "", | |
dashboardControls: "dashboardControls", | |
dashboardHeaderControls: "", | |
adminControlsFooter: "adminControlsFooter" | |
} | |
}] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment