Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Background to Problem
- I have the below database layout, but I want to be able to have a 'menu'
- so that if you are viewing 'Cantelever' below, you have a clickable menu
- that can take you to the other parent levels.
- For example: Shimano -> Brakes -> Cantelever
- where Shimano links to /category/id/1
- Brakes links to /category/id/2
- and Cantelever (which is the current level) may or may not link
- to itself (I haven't decided).
- ## Current Database Layout (Object Levels)
- Object Level ID | Object Level Name | Object Parent ID | Object Menu Level
- 1 Shimano 0 1
- 2 Brakes 1 2
- 3 Cantelever 2 3
- 4 V-Brakes 2 3
Add Comment
Please, Sign In to add comment