Our Management Area
Before you can have content in your database, you need to have a way to enter that content into the database. We are going to create a management folder which will house our main software tool that is going to allow us to manage our bookstore easily including book inventory and articles on our web page.
The finalProject folder is going to have three folders underneath it
- common
- management
- public
Here are the files which need to be in each. The directions on how to achieve that are below.
treeView-beta
"finalProject"
"common"
"management"
"dashboard.bxm"
"footer.bxm"
"header.bxm"
"index.bxm"
"manageArticles.bxm"
"manageBooks.bxm"
"managementNav.bxm"
"manageUsers.bxm"
"sessionManagement.bxm"
"public"
"articles.bxm"
"carousel.bxm" :::highlight
"details.bxm"
"footer.bxm" :::highlight
"genrenav.bxm" :::highlight
"header.bxm" :::highlight
"horizontalNav.bxm" :::highlight
"index.bxm" :::highlight
"manyResults.bxm"
"noResults.bxm"
"oneResult.bxm"
The files which are highlighted above are the ones we created when we took the index.html file and split it up into smaller parts when we discussed the <bx:include /> component of BoxLang.
In order to get all files in the correct locations, please follow these steps:
Create the folders common, public and management
If those 6 highlighted files are still in the root of your finalProject folder, move them into Public.
Copy ( don't move, copy ) the horizontalNav.bxm file from public into management and rename it managementNav.bxm.
Copy ( don't move, copy ) the index.bxm file from public into management.
Copy ( don't move, copy ) the header.bxm file from public into management.
Copy ( don't move, copy ) the footer.bxm file from public into management.
Using the tree above, create the rest of the files. Leave them mostly blank except type the name of the file in that file. For example, in the file manageBooks.bxm type the words manageBooks. We're going to be including them into other pages and we need to ensure we know what page is being displayed.