GREG is developed on to of Enterprise Store. So the GREG is married to the ES Extension model.
By default ES ships few extensions. Following are the list of extensions shipped with ES.
Following is the list of additional extensions available with GREG. Following listing have GREG extensions in the left and ES extensions shipped by default on the right hand side
GREG - Store & ES - Store
(A) - App Extensions
GREG - Publisher & ES - Publisher
(C) - App Extensions
(D) - App Extensions
What is the difference between asset extensions and app extensions ?
App extensions can facilitate common functionality applicable through out each asset type.
Asset extensions defines asset type specific functionality.
Where does the common functionality to both application exists?
/modules
What is the overriding hierarchy of the extensions? How do we define it?
When we simply create a folder in the extensions/app or extensions/asset folders it becomes an app or asset extension. But we can define which extension it overrides by including a app.js or asset.js with the following line.
app.dependencies = ['default'];
The 'default' key word is the name of the folder/extension it overrides.
For an example, (A)-5 overrides (A)-11 ("greg-store" overrides "store-common"). If we open the file "store/extensions/app/greg_store/app.js" the following line is visible in the top.
app.dependencies=['store-common'];
(A)-6 overrides (B)-9. "greg-store-defaults" overrides "default" asset extension. Yes, it's possible to override asset extensions from app extensions.
By default ES ships few extensions. Following are the list of extensions shipped with ES.
Following is the list of additional extensions available with GREG. Following listing have GREG extensions in the left and ES extensions shipped by default on the right hand side
GREG - Store & ES - Store
(A) - App Extensions
GREG | ES |
---|---|
|
10. store-apis 11. store-common |
GREG | ES |
---|---|
|
10. gadget 11. site |
(C) - App Extensions
GREG | ES |
---|---|
|
12. publisher-common |
GREG | ES |
---|---|
|
13. gadget 14. site |
What is the difference between asset extensions and app extensions ?
App extensions can facilitate common functionality applicable through out each asset type.
Asset extensions defines asset type specific functionality.
Where does the common functionality to both application exists?
What is the overriding hierarchy of the extensions? How do we define it?
When we simply create a folder in the extensions/app or extensions/asset folders it becomes an app or asset extension. But we can define which extension it overrides by including a app.js or asset.js with the following line.
app.dependencies = ['default'];
The 'default' key word is the name of the folder/extension it overrides.
For an example, (A)-5 overrides (A)-11 ("greg-store" overrides "store-common"). If we open the file "store/extensions/app/greg_store/app.js" the following line is visible in the top.
app.dependencies=['store-common'];
(A)-6 overrides (B)-9. "greg-store-defaults" overrides "default" asset extension. Yes, it's possible to override asset extensions from app extensions.
Comments