-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dd9769
commit b3ef415
Showing
4 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
Steps to enable this module in your custom Broadleaf Commerce project. These steps are based on projects that are | ||
similar to the Broadleaf Commerce demo application which contains a core, site, and admin project which are all contained in a "parent project". | ||
|
||
> Note: that the 3.2 version of the demo application already has this menu module included. | ||
## Steps | ||
|
||
**Step 1.** Add the following to the dependency management section of your **parent** `pom.xml`: | ||
_The parent pom is the one located in the root directory of the Broadleaf Commerce project._ | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.broadleafcommerce</groupId> | ||
<artifactId>broadleaf-menu</artifactId> | ||
<version>1.0.0-GA</version> | ||
<type>jar</type> | ||
<scope>compile</scope> | ||
</dependency> | ||
``` | ||
|
||
**Step 2.** Pull this dependency into your `core/pom.xml`: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.broadleafcommerce</groupId> | ||
<artifactId>broadleaf-menu</artifactId> | ||
</dependency> | ||
``` | ||
|
||
**Step 3.** Update the `patchConfigLocation` files in your `admin/web.xml` file: | ||
|
||
```xml | ||
classpath:/bl-menu-applicationContext.xml | ||
classpath:/bl-menu-admin-applicationContext.xml | ||
``` | ||
> Note: This line should go before the `classpath:/applicationContext.xml` line | ||
|
||
**Step 4.** Update the `contextConfigLocation` for `DispatcherServlet` files in your `admin/web.xml` file: | ||
|
||
```xml | ||
classpath:/bl-menu-admin-applicationContext-servlet.xml | ||
``` | ||
|
||
> Note: This line should go just before the `/WEB-INF/applicationContext-servlet-admin.xml` line | ||
|
||
**Step 5.** Update the `patchConfigLocation` files in your `site/web.xml` file: | ||
|
||
```xml | ||
classpath:/bl-menu-applicationContext.xml | ||
``` | ||
> Note: This line should go before the `classpath:/applicationContext.xml` line | ||
|
||
## Data Changes | ||
|
||
### Schema Changes | ||
|
||
If you are allowing hibernate to create and modify your tables, this will be done automatically when you restart with the new configuration settings. | ||
|
||
Otherwise, you will need to generate the SQL to customize your Broadleaf implementation. See the [Broadleaf Schema Upgrade Documentation](http://docs.broadleafcommerce.org/core/current/broadleaf-data-upgrade-process) for details. | ||
|
||
### Admin Security Changes | ||
|
||
To create the Menu management section in the Broadleaf admin, you will need to load new permissions. The recommended changes are located in the following files: | ||
|
||
``` | ||
/config/bc/sql/load_menu_admin_security.sql | ||
``` | ||
|
||
> Note: In development, you can automatically load this SQL files by adding it to the blPU.hibernate.hbm2ddl.import\_files property in the development-shared.properties file. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
## Broadleaf Commerce Community Module | ||
|
||
# Menu Module | ||
|
||
Broadleaf Commerce currently offers a community abstraction Menu module that allows managing Categories and Site Navigation in | ||
terms of Menus in the Admin much easier. | ||
|
||
## Initial Configuration | ||
|
||
The `1.0.0-GA` version of the Menu module requires Broadleaf version `3.2.0-GA` or later. | ||
|
||
For detailed instructions on how to integrate the content test module into your project, see [[Module Installation]]. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
- [[Home | .]] | ||
- [[Menu Environment Setup]] | ||
- [[Module Installation]] |