"To the registry key we are going to add a layout entry that looks like this:"


#1

On Page: https://docs.reactioncommerce.com/reaction-docs/master/creating-a-plugin#using-custom-layouts

There is a line:

To the registry key we are going to add a layout entry that looks like this:

layout: [{
  layout: "coreLayoutBeesknees",
  workflow: "coreProductWorkflow",
  collection: "Products",
  theme: "default",
  enabled: true,
  structure: {
    template: "products",
    layoutHeader: "layoutHeader",
    layoutFooter: "layoutFooter",
    notFound: "productNotFound",
    dashboardHeader: "",
    dashboardControls: "dashboardControls",
    dashboardHeaderControls: "",
    adminControlsFooter: "adminControlsFooter"
  }
}]

I am new here, and do not know which file I should add that line too.

Thanks


#2

My Database looks likes this: Is the Registry suppose to be here?

meteor:PRIMARY> show tables;
Accounts
AnalyticsEvents
Assets
Cart
Discounts
Inventory
Jobs
Orders
Packages
Products
Sessions
Shipping
Shops
Tags
TaxCodes
Taxes
Themes
Translations
cfs.Media.filerecord
cfs._tempstore.chunks
cfs_gridfs._tempstore.chunks
cfs_gridfs._tempstore.files
cfs_gridfs.image.chunks
cfs_gridfs.image.files
cfs_gridfs.large.chunks
cfs_gridfs.large.files
cfs_gridfs.medium.chunks
cfs_gridfs.medium.files
cfs_gridfs.small.chunks
cfs_gridfs.small.files
cfs_gridfs.thumbnail.chunks
cfs_gridfs.thumbnail.files
meteor_accounts_loginServiceConfiguration
meteor_oauth_pendingCredentials
meteor_oauth_pendingRequestTokens
roles
users


#3

In the previous paragraph it says “To do that we need to create a new file called register.js and add it to the root of our plugin.”

Each package creates an entry in the Packages collection. There in your custom package you will see a registry entry.


#4

Thank you Brent,

That helps. I’ve been playing around with your platform for a couple of a hours and love it.!